Pooyan

Papilio DUO Gameduino sketches not compiling

4 posts in this topic

Hi,

I'm new here so I hope I'm not breaking any rules by just writing a post to ask a beginner question.

Wat I'm trying to do is build the Gameduino examples delivered with Designerstudio 1.0.8 (I tried 1.0.7 and 1.0.5 too), the FPGA circuit runs fine, but the C code won't compile.
The errors I get are pasted below :

I'm running Designer lab on Mint linux 18.2 

Kind regards, Paul

###################################################################################################################33

Arduino: 1.0.8 (Linux), Board: "Papilio DUO - AVR - No USB - ISP"

In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:17:0:
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.h:50:39: error: 'prog_uchar' has not been declared
   static void copy(unsigned int addr, prog_uchar *src, int count);
                                       ^
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.h:61:25: error: 'prog_uchar' has not been declared
   static void microcode(prog_uchar *src, int count);
                         ^
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.h:62:45: error: 'prog_uchar' has not been declared
   static void uncompress(unsigned int addr, prog_uchar *src);
                                             ^
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:129:47: error: 'prog_uchar' has not been declared
 void GDClass::copy(unsigned int addr, PROGMEM prog_uchar *src, int count)
                                               ^
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:151:33: error: variable or field 'microcode' declared void
 void GDClass::microcode(PROGMEM prog_uchar *src, int count)
                                 ^
In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:14:
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:151:25: error: expected primary-expression before '__attribute__'
 void GDClass::microcode(PROGMEM prog_uchar *src, int count)
                         ^
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:151:50: error: expected primary-expression before 'int'
 void GDClass::microcode(PROGMEM prog_uchar *src, int count)
                                                  ^
In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:242:0:
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/font8x8.h:1:16: error: 'prog_uchar' does not name a type
 static PROGMEM prog_uchar font8x8[] = {
                ^
In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:14:
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: In static member function 'static void GDClass::ascii()':
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:258:28: error: 'font8x8' was not declared in this scope
     byte b = pgm_read_byte(font8x8 + i);
                            ^
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: At global scope:
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:346:14: error: 'prog_uchar' has not been declared
   void begin(prog_uchar *s) {
              ^
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:368:3: error: 'prog_uchar' does not name a type
   prog_uchar *src;
   ^
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: In member function 'void GDflashbits::begin(int*)':
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:347:5: error: 'src' was not declared in this scope
     src = s;
     ^
In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:14:
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: In member function 'byte GDflashbits::get1()':
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:351:34: error: 'src' was not declared in this scope
     byte r = (pgm_read_byte_near(src) & mask) != 0;
                                  ^
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:355:7: error: 'src' was not declared in this scope
       src++;
       ^
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: At global scope:
/home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:374:45: error: 'prog_uchar' has not been declared
 void GDClass::uncompress(unsigned int addr, prog_uchar *src)
                                             ^
Error compiling.

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

Share this post


Link to post
Share on other sites

Hi,

I did some more testing, and when I downloaded the newest version of the Gameduino library and set the board type correctly to 'AVR - No USB', I did get the source to compile.

Could it be that an old version of the Gameduino library has been included with Designlab 1.0.8 ?

Kind regards, Paul

Share this post


Link to post
Share on other sites

Although putting the 'new' Gameduino library in, this results in graphics not being rendered correctly. (black sprites, characters instead of graphics).

Share this post


Link to post
Share on other sites

Hello, 

Did you get this to work?

I think the important thing is that you need to have the selected board as the AVR board and not the FPGA board.

Jack.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now