SpaceInvaders

Store Forums Hackvision Bugs/Problems SpaceInvaders

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #726
    paulusV
    Member

    Downloaded the stand-alone version and the Controllers library
    Downloaded the Google TVout library
    But I get a whole bunch of errors:

    In file included from SpaceInvaders.ino:17:0:
    SpaceInvaders.ino:60:16: error: variable ‘s0’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
    SpaceInvaders.ino:61:16: error: variable ‘s1’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
    SpaceInvaders.ino:62:16: error: variable ‘s2’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
    SpaceInvaders.ino:63:16: error: variable ‘s3’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
    SpaceInvaders.ino:64:16: error: variable ‘s4’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
    SpaceInvaders.ino:65:16: error: variable ‘s5’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
    SpaceInvaders.ino:66:16: error: variable ‘s6’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
    SpaceInvaders.ino:67:16: error: variable ‘s7’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
    SpaceInvaders.ino:68:16: error: variable ‘s8’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
    SpaceInvaders.ino:71:29: error: variable ‘strings’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’

    How can I solve this?

    #2069
    Michael
    Keymaster

    What version of the Arduino IDE are you using. I’ve seen those problems with the 1.5.x beta. You should use 1.0.x.

    #2071
    paulusV
    Member

    hi Michael,
    I’m using 1.0.5.
    In the meantime I solved almost all of the issues (apart from the last error with the ” strings’) by putting the word ‘const’ in front of the line that gave an error. But the last error remains 🙁

    #2073
    Michael
    Keymaster

    I am using Arduino 1.0.5 and have no problem compiling this, so I can’t explain why it does not compile for you.

    Try changing the declaration of strings to:

    const char *strings[] = {s0, s1, s2, s3, s4, s5, s6, s7, s8};
    #2202
    uditrana
    Member

    I think I am having a similar error. I am using the standalone Space Invaders with the Google Code Libraries

    Arduino: 1.6.0 (Windows 8), Board: “Arduino Uno”

    SpaceInvaders.ino:57:7: error: ‘prog_uint16_t’ does not name a type
    SpaceInvaders.ino:60:1: error: ‘prog_char’ does not name a type
    SpaceInvaders.ino:61:1: error: ‘prog_char’ does not name a type
    SpaceInvaders.ino:62:1: error: ‘prog_char’ does not name a type
    SpaceInvaders.ino:63:1: error: ‘prog_char’ does not name a type
    SpaceInvaders.ino:64:1: error: ‘prog_char’ does not name a type
    SpaceInvaders.ino:65:1: error: ‘prog_char’ does not name a type
    SpaceInvaders.ino:66:1: error: ‘prog_char’ does not name a type
    SpaceInvaders.ino:67:1: error: ‘prog_char’ does not name a type
    SpaceInvaders.ino:68:1: error: ‘prog_char’ does not name a type
    SpaceInvaders.ino:71:29: error: variable ‘strings’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
    SpaceInvaders.ino:71:34: error: ‘s0’ was not declared in this scope
    SpaceInvaders.ino:71:38: error: ‘s1’ was not declared in this scope
    SpaceInvaders.ino:71:42: error: ‘s2’ was not declared in this scope
    SpaceInvaders.ino:71:46: error: ‘s3’ was not declared in this scope
    SpaceInvaders.ino:71:50: error: ‘s4’ was not declared in this scope
    SpaceInvaders.ino:71:54: error: ‘s5’ was not declared in this scope
    SpaceInvaders.ino:71:58: error: ‘s6’ was not declared in this scope
    SpaceInvaders.ino:71:62: error: ‘s7’ was not declared in this scope
    SpaceInvaders.ino:71:66: error: ‘s8’ was not declared in this scope
    SpaceInvaders.ino: In function ‘void drawBitmap(byte, byte, unsigned int)’:
    SpaceInvaders.ino:827:9: error: ‘prog_uint16_t’ does not name a type
    In file included from SpaceInvaders.ino:17:0:
    SpaceInvaders.ino:847:24: error: ‘index’ was not declared in this scope
    Error compiling.

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

    #2203
    Michael
    Keymaster

    What version of Arduino are you using?
    They made changes in the 1.5.x versions that broke a lot of code. Use version 1.0.x.

    #9404
    Michael
    Keymaster

    I’ve updated the original Hackvision firmware to work with the newest version of Arduino IDE, and have put a patched, working version of TVout on GitHub.

    https://github.com/nootropicdesign/arduino-tvout
    https://github.com/nootropicdesign/hackvision
    https://github.com/nootropicdesign/arduino-asteroids
    https://github.com/nootropicdesign/hackvision-controllers

    #11365
    cskordis
    Participant

    Micahel,

    here are the compiled HEX listings for the games on the Hackvision?

    Compiling the code in the 1.8.9 IDE is giving errors:

    Arduino: 1.8.9 (Windows 10), Board: “Arduino/Genuino Uno”

    C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\conne\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\conne\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\conne\OneDrive\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0403_6001 -ide-version=10809 -build-path C:\Users\conne\AppData\Local\Temp\arduino_build_733970 -warnings=more -build-cache C:\Users\conne\AppData\Local\Temp\arduino_cache_735050 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino
    C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\conne\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\conne\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\conne\OneDrive\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0403_6001 -ide-version=10809 -build-path C:\Users\conne\AppData\Local\Temp\arduino_build_733970 -warnings=more -build-cache C:\Users\conne\AppData\Local\Temp\arduino_cache_735050 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino
    Using board ‘uno’ from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
    Using core ‘arduino’ from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
    Detecting libraries used…
    “C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino” “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\sketch\\Hackvision.ino.cpp” -o nul
    “C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino” “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\TVout” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\sketch\\Hackvision.ino.cpp” -o nul
    “C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino” “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\TVout” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\TVoutfonts” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\sketch\\Hackvision.ino.cpp” -o nul
    “C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino” “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\TVout” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\TVoutfonts” “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\EEPROM\\src” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\sketch\\Hackvision.ino.cpp” -o nul
    “C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino” “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\TVout” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\TVoutfonts” “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\EEPROM\\src” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\Controllers” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\sketch\\Hackvision.ino.cpp” -o nul
    Using cached library dependencies for file: C:\Users\conne\OneDrive\Documents\Arduino\libraries\TVout\TVout.cpp
    Using cached library dependencies for file: C:\Users\conne\OneDrive\Documents\Arduino\libraries\TVout\TVoutPrint.cpp
    Using cached library dependencies for file: C:\Users\conne\OneDrive\Documents\Arduino\libraries\TVout\video_gen.cpp
    Using cached library dependencies for file: C:\Users\conne\OneDrive\Documents\Arduino\libraries\TVoutfonts\font4x6.cpp
    Using cached library dependencies for file: C:\Users\conne\OneDrive\Documents\Arduino\libraries\TVoutfonts\font6x8.cpp
    Using cached library dependencies for file: C:\Users\conne\OneDrive\Documents\Arduino\libraries\TVoutfonts\font8x8.cpp
    Using cached library dependencies for file: C:\Users\conne\OneDrive\Documents\Arduino\libraries\TVoutfonts\font8x8ext.cpp
    Using cached library dependencies for file: C:\Users\conne\OneDrive\Documents\Arduino\libraries\Controllers\ButtonController.cpp
    Using cached library dependencies for file: C:\Users\conne\OneDrive\Documents\Arduino\libraries\Controllers\Nunchuk.cpp
    Using cached library dependencies for file: C:\Users\conne\OneDrive\Documents\Arduino\libraries\Controllers\Paddle.cpp
    Using cached library dependencies for file: C:\Users\conne\OneDrive\Documents\Arduino\libraries\Controllers\SNESController.cpp
    Using cached library dependencies for file: C:\Users\conne\OneDrive\Documents\Arduino\libraries\Controllers\i2c.c
    Generating function prototypes…
    “C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino” “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\TVout” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\TVoutfonts” “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\EEPROM\\src” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\Controllers” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\sketch\\Hackvision.ino.cpp” -o “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\preproc\\ctags_target_for_gcc_minus_e.cpp”
    “C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags” -u –language-force=c++ -f – –c++-kinds=svpf –fields=KSTtzns –line-directives “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\preproc\\ctags_target_for_gcc_minus_e.cpp”
    Compiling sketch…
    “C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++” -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino” “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\TVout” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\TVoutfonts” “-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\EEPROM\\src” “-IC:\\Users\\conne\\OneDrive\\Documents\\Arduino\\libraries\\Controllers” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\sketch\\Hackvision.ino.cpp” -o “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\sketch\\Hackvision.ino.cpp.o”
    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino: In function ‘void runSchedule()’:

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:280:57: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

    if ((mysteryShipX == W) || (eraseMysteryScoreTime != -1)) {

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino: In function ‘void enterInitials()’:

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:623:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    initials[index]++;

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:626:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    if (initials[index] == ‘0’) {

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:627:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    initials[index] = ‘ ‘;

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:629:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    if (initials[index] == ‘!’) {

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:630:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    initials[index] = ‘A’;

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:632:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    if (initials[index] == ‘[‘) {

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:633:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    initials[index] = ‘0’;

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:635:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    if (initials[index] == ‘@’) {

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:636:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    initials[index] = ‘!’;

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:640:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    initials[index]–;

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:642:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    if (initials[index] == ‘ ‘) {

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:643:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    initials[index] = ‘?’;

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:645:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    if (initials[index] == ‘/’) {

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:646:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    initials[index] = ‘Z’;

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:648:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    if (initials[index] == 31) {

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:649:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    initials[index] = ‘/’;

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:651:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    if (initials[index] == ‘@’) {

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:652:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    initials[index] = ‘ ‘;

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino: In function ‘void advanceInvaders()’:

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:1058:46: warning: operation on ‘invaderTypeToggle’ may be undefined [-Wsequence-point]

    invaderTypeToggle = ++invaderTypeToggle % 2; // toggle between 0 and 1

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino: In function ‘void drawLaser()’:

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:1226:40: warning: suggest parentheses around ‘-‘ inside ‘<<‘ [-Wparentheses]

    invaders[r] &= ~(1 << 15 – c);

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:1227:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

    if (eraseExplosionTime != -1) {

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:1299:143: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

    if ((laserY < 5) && (laserY >= 0) && (laserX >= mysteryShipX) && (laserX < mysteryShipX + MYSTERY_SHIP_WIDTH) && (eraseMysteryScoreTime == -1)) {

    ^

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino: In function ‘void dropBomb()’:

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:1386:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]

    if (invaders[r] & (1 << (15 – c))) {

    ^

    In file included from C:\Users\conne\OneDrive\Documents\Arduino\libraries\TVout/TVout.h:40:0,

    from C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:12:

    C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino: At top level:

    C:\Users\conne\OneDrive\Documents\Arduino\libraries\TVout/video_gen.h:63:20: warning: ‘wait_until(unsigned char)’ declared ‘static’ but never defined [-Wunused-function]

    static void inline wait_until(uint8_t time);

    ^

    In file included from C:\Users\conne\OneDrive\Documents\Arduino\libraries\Controllers/Controllers.h:5:0,

    from C:\Users\conne\OneDrive\Documents\Arduino\Projects\hackvision-master\Hackvision\Hackvision.ino:17:

    C:\Users\conne\OneDrive\Documents\Arduino\libraries\Controllers/Nunchuk.h:16:16: warning: ‘dataBuffer’ defined but not used [-Wunused-variable]

    static uint8_t dataBuffer[6]; // array to store nunchuck data

    ^

    Compiling libraries…
    Compiling library “TVout”
    Using previously compiled file: C:\Users\conne\AppData\Local\Temp\arduino_build_733970\libraries\TVout\TVout.cpp.o
    Using previously compiled file: C:\Users\conne\AppData\Local\Temp\arduino_build_733970\libraries\TVout\TVoutPrint.cpp.o
    Using previously compiled file: C:\Users\conne\AppData\Local\Temp\arduino_build_733970\libraries\TVout\video_gen.cpp.o
    Compiling library “TVoutfonts”
    Using previously compiled file: C:\Users\conne\AppData\Local\Temp\arduino_build_733970\libraries\TVoutfonts\font4x6.cpp.o
    Using previously compiled file: C:\Users\conne\AppData\Local\Temp\arduino_build_733970\libraries\TVoutfonts\font8x8.cpp.o
    Using previously compiled file: C:\Users\conne\AppData\Local\Temp\arduino_build_733970\libraries\TVoutfonts\font6x8.cpp.o
    Using previously compiled file: C:\Users\conne\AppData\Local\Temp\arduino_build_733970\libraries\TVoutfonts\font8x8ext.cpp.o
    Compiling library “EEPROM”
    Compiling library “Controllers”
    Using previously compiled file: C:\Users\conne\AppData\Local\Temp\arduino_build_733970\libraries\Controllers\i2c.c.o
    Using previously compiled file: C:\Users\conne\AppData\Local\Temp\arduino_build_733970\libraries\Controllers\Paddle.cpp.o
    Using previously compiled file: C:\Users\conne\AppData\Local\Temp\arduino_build_733970\libraries\Controllers\ButtonController.cpp.o
    Using previously compiled file: C:\Users\conne\AppData\Local\Temp\arduino_build_733970\libraries\Controllers\SNESController.cpp.o
    Using previously compiled file: C:\Users\conne\AppData\Local\Temp\arduino_build_733970\libraries\Controllers\Nunchuk.cpp.o
    Compiling core…
    Using precompiled core: C:\Users\conne\AppData\Local\Temp\arduino_cache_735050\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a
    Linking everything together…
    “C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc” -Wall -Os -g -flto -fuse-linker-plugin -Wl,–gc-sections -mmcu=atmega328p -o “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970/Hackvision.ino.elf” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\sketch\\Hackvision.ino.cpp.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\libraries\\TVout\\TVout.cpp.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\libraries\\TVout\\TVoutPrint.cpp.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\libraries\\TVout\\video_gen.cpp.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\libraries\\TVoutfonts\\font4x6.cpp.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\libraries\\TVoutfonts\\font6x8.cpp.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\libraries\\TVoutfonts\\font8x8.cpp.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\libraries\\TVoutfonts\\font8x8ext.cpp.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\libraries\\Controllers\\ButtonController.cpp.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\libraries\\Controllers\\Nunchuk.cpp.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\libraries\\Controllers\\Paddle.cpp.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\libraries\\Controllers\\SNESController.cpp.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970\\libraries\\Controllers\\i2c.c.o” “C:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970/..\\arduino_cache_735050\\core\\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a” “-LC:\\Users\\conne\\AppData\\Local\\Temp\\arduino_build_733970” -lm
    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s: Assembler messages:

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:189: Error: unknown opcode `delay2′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:245: Error: unknown opcode `delay1′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:247: Error: unknown opcode `delay2′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:250: Error: unknown opcode `delay2′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:253: Error: unknown opcode `delay2′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:256: Error: unknown opcode `delay2′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:259: Error: unknown opcode `delay2′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:262: Error: unknown opcode `delay1′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:267: Error: unknown opcode `delay1′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:270: Error: unknown opcode `delay3′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:320: Error: unknown opcode `svprt’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:324: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:328: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:329: Error: unknown opcode `delay2′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:331: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:332: Error: unknown opcode `delay2′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:334: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:335: Error: unknown opcode `delay2′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:337: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:338: Error: unknown opcode `delay2′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:340: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:341: Error: unknown opcode `delay2′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:343: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:344: Error: unknown opcode `delay1′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:347: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:349: Error: unknown opcode `delay1′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:351: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:352: Error: unknown opcode `svprt’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:354: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:403: Error: unknown opcode `svprt’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:407: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:410: Error: unknown opcode `delay1′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:412: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:413: Error: unknown opcode `delay3′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:415: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:416: Error: unknown opcode `delay3′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:418: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:419: Error: unknown opcode `delay3′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:421: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:422: Error: unknown opcode `delay3′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:424: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:425: Error: unknown opcode `delay3′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:427: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:428: Error: unknown opcode `delay3′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:430: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:433: Error: unknown opcode `delay2′

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:435: Error: unknown opcode `o1bs’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:436: Error: unknown opcode `svprt’

    C:\Users\conne\AppData\Local\Temp\ccSKzy5X.s:438: Error: unknown opcode `o1bs’

    lto-wrapper.exe: fatal error: C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc returned 1 exit status

    compilation terminated.

    c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed

    collect2.exe: error: ld returned 1 exit status

    Using library TVout at version 1.0.1 in folder: C:\Users\conne\OneDrive\Documents\Arduino\libraries\TVout
    Using library TVoutfonts in folder: C:\Users\conne\OneDrive\Documents\Arduino\libraries\TVoutfonts (legacy)
    Using library EEPROM at version 2.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM
    Using library Controllers in folder: C:\Users\conne\OneDrive\Documents\Arduino\libraries\Controllers (legacy)
    exit status 1
    Error compiling for board Arduino/Genuino Uno.

    #11370
    Michael
    Keymaster

    Sure, I put the .hex files I use to preload the chips here:

    https://nootropicdesign.com/downloads/hackvision/games/Hackvision.ino.hex

    https://nootropicdesign.com/downloads/hackvision/games/Asteroids.ino.hex

    I’m not sure why you are having compilation problems. I’ll look into it.

    • This reply was modified 5 years, 5 months ago by Michael. Reason: edited path to downloads due to restructuring my site
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.