nksreera / rush-osd-development

Automatically exported from code.google.com/p/rush-osd-development
0 stars 0 forks source link

Compile Error #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Compile v2.3
2. Get Error:
Arduino: 1.5.7 (Windows 7), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 
MHz)"

In file included from KV_Team_OSD.ino:28:0:
GlobalVariables.h:681:32: error: variable 'item_table' must be const in order 
to be put into read-only section by means of '__attribute__((progmem))'
 PROGMEM const char *item_table[] =
                                ^

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

3.
4.

What is the exact brand and model of hardware you´r using?

What is the expected output? What do you see instead?

What official version of the product are you using?
2.3

Have it been modified in any way?
No

Please provide any additional information below.

Original issue reported on code.google.com by DHDo...@gmail.com on 18 Sep 2014 at 5:52

GoogleCodeExporter commented 9 years ago
I get a similar error. Also v2.3 but with Arduino 1.0.5 on a OpenSuse Linux

  In file included from Max7456.cpp:2:0:
  KV_Team_OSD.h:180:40: error: variable 'item_table' must be const in order to be
  put into read-only section by means of '__attribute__((progmem))'
  extern PROGMEM const char *item_table[];

Original comment by bejo5...@googlemail.com on 26 Sep 2014 at 4:06

GoogleCodeExporter commented 9 years ago
I could solve the problem with the use of an older Arduino version 1.0.1.
I guess the error depends on the integrated gcc compiler which also has changed 
the version. But it would be quite nice if the code would be adapted to the new 
compiler version.

Original comment by bejo5...@googlemail.com on 29 Sep 2014 at 1:49

GoogleCodeExporter commented 9 years ago
Has anyone figured our how to fix this?

Original comment by ajb...@gmail.com on 2 Apr 2015 at 4:26

GoogleCodeExporter commented 9 years ago
Same Problem here, 
Arduino: 1.6.3 (Windows 7), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 
MHz)"

Build options changed, rebuilding all

In file included from EEPROM.cpp:5:0:

KV_Team_OSD.h:180:40: error: variable 'item_table' must be const in order to be 
put into read-only section by means of '__attribute__((progmem))'

  extern PROGMEM const char *item_table[];

                                        ^

Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

Original comment by rens.toe...@gmail.com on 4 Apr 2015 at 1:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Same problem here.

++++++++++++++

Arduino: 1.6.2 (Windows 7), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 
MHz)"

Build options changed, rebuilding 
allC:\Users\Alan\AppData\Roaming\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-
arduino2/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections 
-fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L 
-DARDUINO=10602 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR 
-IC:\Users\Alan\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\co
res\arduino 
-IC:\Users\Alan\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\va
riants\eightanaloginputs 
C:\Users\Alan\AppData\Local\Temp\build4254549908884914337.tmp\EEPROM.cpp -o 
C:\Users\Alan\AppData\Local\Temp\build4254549908884914337.tmp\EEPROM.cpp.o In 
file included from 
C:\Users\Alan\AppData\Local\Temp\build4254549908884914337.tmp\EEPROM.cpp:5:0:C:\
Users\Alan\AppData\Local\Temp\build4254549908884914337.tmp\KV_Team_OSD.h:180:40:
 error: variable 'item_table' must be const in order to be put into read-only 
section by means of '__attribute__((progmem))'  extern PROGMEM const char 
*item_table[];                                        ^Error compiling.

Original comment by alan.kub...@gmail.com on 11 Apr 2015 at 7:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
same problem here !!!

--------------------
Arduino: 1.6.3 (Windows 8), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 
MHz)"

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w 
-fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics 
-MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10603 -DARDUINO_AVR_PRO 
-DARDUINO_ARCH_AVR -IC:\Program Files 
(x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files 
(x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs 
C:\Users\gg\AppData\Local\Temp\build2908002897883449585.tmp\EEPROM.cpp -o 
C:\Users\gg\AppData\Local\Temp\build2908002897883449585.tmp\EEPROM.cpp.o 

In file included from 
C:\Users\gg\AppData\Local\Temp\build2908002897883449585.tmp\EEPROM.cpp:5:0:

C:\Users\gg\AppData\Local\Temp\build2908002897883449585.tmp\KV_Team_OSD.h:180:40
: error: variable 'item_table' must be const in order to be put into read-only 
section by means of '__attribute__((progmem))'

  extern PROGMEM const char *item_table[];

                                        ^

Error compiling.

Original comment by ggeorg...@gmail.com on 14 Apr 2015 at 5:50

GoogleCodeExporter commented 9 years ago
I get the same problem on 1.6.1

Original comment by leviticu...@gmail.com on 21 Apr 2015 at 11:56

GoogleCodeExporter commented 9 years ago
Here's a fix for the latest android version:

in KV_Team_OSD.h:

change this: 'extern PROGMEM const char *item_table[];'
to this: 'extern PROGMEM const char * const item_table[];'

in KV_Team_OSD.cpp:
change this: 'PROGMEM const char *item_table[] ='
to this: 'PROGMEM const char * const item_table[] ='

and everything will compile, good luck!

Original comment by MichaelT...@gmail.com on 24 Apr 2015 at 4:41

GoogleCodeExporter commented 9 years ago
Also here is a fork of the 2.3 build with the fix already in place:

https://github.com/slacker87/rush-osd-development/archive/master.zip

Original comment by MichaelT...@gmail.com on 24 Apr 2015 at 4:52