SpaceInvaders

Store Forums Hackvision Bugs/Problems SpaceInvaders

This topic contains 6 replies, has 3 voices, and was last updated by  Michael 9 months, 3 weeks ago.

Viewing 7 posts - 1 through 7 (of 7 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

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.