|
Post by neuroflux on Jun 30, 2015 1:53:56 GMT -8
Errors, errors, errors.
All I wanted to do was migrate my Gameduino2 project onto a new pc. Now I'm getting a bunch of errors in Arduino Software v1.6.4 as so:
Arduino: 1.6.4 (Windows 7), Board: "Arduino Uno"
In file included from pipboy.ino:5:0:
pipboy.ino: In function 'void setup()':
assets.h:215: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'const char*' [-fpermissive]
#define LOAD_ASSETS() GD.copy(__assets, sizeof(__assets))
^
pipboy.ino:15:3: note: in expansion of macro 'LOAD_ASSETS'
In file included from pipboy.ino:3:0:
C:\Program Files (x86)\Arduino\libraries\Gameduino2/GD2.h:329:8: error: initializing argument 1 of 'void GDClass::copy(const char*, int)' [-fpermissive]
void copy(const char *src, int count);
^
invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'const char*' [-fpermissive]
It's been driving me insane. I cannot get any of my assets to show - they worked before on the old Arduino platform I had set up. This one is the same but no dice.
|
|
|
Post by jamesbowman on Jun 30, 2015 6:14:10 GMT -8
Hmm, checking the current library from this page: excamera.com/sphinx/gameduino2/code.htmlIt has a different, fixed, version of line 329: void copy(const PROGMEM uint8_t *src, int count);
So I think you must be compiling with an outdated GD2 library. Installing the one from the link above should fix this.
|
|
|
Post by neuroflux on Jun 30, 2015 9:05:10 GMT -8
That worked a treat, thanks very much. I guess I must of overwritten the one I downloaded with the one backed up in my dropbox! As a side note, do you know whether I can get a CRT TV style boot effect with the Gameduino2? Kind of like this: www.youtube.com/watch?v=-MH6JZdGZcI
|
|