Giter Site home page Giter Site logo

Comments (11)

yoshadow avatar yoshadow commented on July 16, 2024

Hi Peetz0r
I have a question, how could you downgrade to avr-g++ 4.5.3, I coludn't find it on Internet.

Please!! =D

from arduino-tv-b-gone.

Peetz0r avatar Peetz0r commented on July 16, 2024

I don't remember exactly, and haven't seen this issue for almost a year.
But it's possible that I used a package for an older version of my distribution:
http://packages.ubuntu.com/search?keywords=gcc-avr&searchon=names
Possibly the 12.04 package, which is 4.5.3

from arduino-tv-b-gone.

ElectricRCAircraftGuy avatar ElectricRCAircraftGuy commented on July 16, 2024

It sounds like when you install the Arduino IDE on a Linux machine it does not come with gcc attached? I'm only a light Linux user, so I didn't know that.

In Windows, the Arduino IDE does come with gcc attached. So, in Windows, if you try to use Arduino IDE 1.5.7 or later, the TVBGone code will NOT compile due to changes in how PROGMEM works. However, if you use Arduino IDE 1.5.6-r2 Beta, or earlier, this code compiles just fine!
If running Windows, simply download the 1.5.6-r2 Beta installer here, and it will compile for you: http://arduino.cc/en/Main/OldSoftwareReleases

Notes: According to the release notes (http://arduino.cc/en/Main/ReleaseNotes), 1.5.7 Beta uses gcc 4.8.1, which we know is NOT compatible with the current TVBGone code. The Arduino versions just prior to that used perhaps gcc 4.5.1 or something like that--not entirely sure.

--Also, I plan on fixing the TVBGone code here when I get the chance, to make it compatible with the latest Arduino IDE version, and the newer gcc, but I have not had the chance yet. Life is busy, and I'm working on many projects at once as well.

from arduino-tv-b-gone.

Peetz0r avatar Peetz0r commented on July 16, 2024

On Windows, everything comes with everything because there is no package management. On Linux (most distro's anyway), the arduino ide package doesn't come with everything, but instead says "Hey, I need avr-gcc (and a bunch of other things)". There are pros and cons for both systems. But on most linuxes it's the distributions package management which dictates which version of gcc is used, not the arduino package (unless the arduino package specifies a minimum and/or maximum or even an exact version in it's dependencies. But it doesn't).

Anyway, on Ubuntu, in some cases it's entirely possible to install older or newer versions of packages from other Ubuntu versions without everything going weird so that can fix problems sometimes. Warning: sometimes this makes things worse, trough dependencies on specific versions of many libraries. So be careful when installing packages that are packaged for a different version of your distro.

Also, the last time I did this has been almost a year ago so I wouldn't know if and what issues I may have had and if so, how I fixed those.

from arduino-tv-b-gone.

yoshadow avatar yoshadow commented on July 16, 2024

Hi again =)
Thanks for the info, I'll try install Arduino 1.5.6-r2 on Windows XP in a virtual machine and compile de TVBGone, I'll tell you if that works.

from arduino-tv-b-gone.

yoshadow avatar yoshadow commented on July 16, 2024

Well... it didn't work =( I'm still looking for this issue, thanks again and if I know something I'll post it here.

from arduino-tv-b-gone.

Peetz0r avatar Peetz0r commented on July 16, 2024

You could try an VM with Ubuntu 12.04 instead. Should come with gcc-avr 4.5.3.

from arduino-tv-b-gone.

yoshadow avatar yoshadow commented on July 16, 2024

Hi!! Me again.
This is what I did. I installed ubuntu 12.04 in a virtual machine but I don't know why ubuntu didn't start...
So looking for something else I found a guy who was able to make his TVBGone succesfully four months ago, in this video https://www.youtube.com/watch?v=Aeg00SNtTVI he is using Arduino 1.0.6 version, I didn't notice that I was using the 1.0.5 version in ubuntu 14.04 (I think that's the version default) I just downloaded the 1.0.6 version and everything compiled, now my question is, has Arduino diferent versions of avr-gcc on their own versions?

Thanks a lot for your support. =D

from arduino-tv-b-gone.

sbf- avatar sbf- commented on July 16, 2024

Well, maybe a little late, but it might be helpful for others. Had the same issue with Atmel Studio 7 (Windows)

variable 'NApowerCodes' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
variable 'EUpowerCodes' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

Make following changes to main.c and WORLDcodes.c

extern const PGM_P* const NApowerCodes[] PROGMEM;
extern const PGM_P* const EUpowerCodes[] PROGMEM;

from arduino-tv-b-gone.

Hitechcomputergeek avatar Hitechcomputergeek commented on July 16, 2024

I can't find what to change in WORLDcodes.cpp - could you give line numbers?

Trying to compile with the changes above put only in main.c gives the following error:

TVB:79: error: duplicate 'const'
 extern const PGM_P* const NApowerCodes[] PROGMEM;
              ^
TVB:80: error: duplicate 'const'
 extern const PGM_P* const EUpowerCodes[] PROGMEM;
              ^
exit status 1
duplicate 'const'

from arduino-tv-b-gone.

ElectricRCAircraftGuy avatar ElectricRCAircraftGuy commented on July 16, 2024

I have just merged a version 1.3 of the code, with improvements, including this PROGMEM fix. Should compile fine for everyone now.

from arduino-tv-b-gone.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.