Designlab 1.0.5 sketch compilation problem.


Juhizo

Recommended Posts

So, tried the example. And results as:

 

In file included from C:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/HardwareSerial.h:4,                 from C:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/Arduino.h:8,                 from C:\DesignLab-1.0.5\hardware\zpuino\libraries\LiquidCrystal\LiquidCrystal.cpp:6:C:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: conflicting declaration 'typedef struct __zFILE FILE'C:/DesignLab-1.0.5/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: 'FILE' has a previous declaration as `typedef struct __FILE FILE'C:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/DesignLab-1.0.5/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/DesignLab-1.0.5/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/DesignLab-1.0.5/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:26: error: declaration of C function `void fclose(FILE*)' conflicts withC:/DesignLab-1.0.5/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:172: error: previous declaration `int fclose(FILE*)' hereC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected unqualified-id before '--' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected `)' before '--' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected `,' or `;' before '--' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected unqualified-id before '--' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected `)' before '--' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected `,' or `;' before '--' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: conflicting declaration 'typedef int fpos_t'C:/DesignLab-1.0.5/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: 'fpos_t' has a previous declaration as `typedef _fpos_t fpos_t'C:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: declaration of `typedef int fpos_t'C:/DesignLab-1.0.5/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: conflicts with previous declaration `typedef _fpos_t fpos_t'C:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: declaration of `typedef int fpos_t'C:/DesignLab-1.0.5/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: conflicts with previous declaration `typedef _fpos_t fpos_t'C:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:41: error: declaration of C function `int fsetpos(FILE*, fpos_t*)' conflicts withC:/DesignLab-1.0.5/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:207: error: previous declaration `int fsetpos(FILE*, const fpos_t*)' hereC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected `)' before '->' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected init-declarator before '->' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected `,' or `;' before '->' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected `)' before '->' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected init-declarator before '->' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected `,' or `;' before '->' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected `)' before '->' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected init-declarator before '->' tokenC:/DesignLab-1.0.5/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected `,' or `;' before '->' tokenC:\DesignLab-1.0.5\hardware\zpuino\libraries\LiquidCrystal\LiquidCrystal.cpp:85: warning: unused parameter 'cols'Virhe käännettäessä.
Link to comment
Share on other sites

Hello Juhizo,

 

I tried the LiquidCrystal - Hello Word example.

 

I assume you tried it on the Papilio Duo ? For me it only compiles for the Papilio One, if I want to use the ZPUno.

 

IF I change the board to Papilio DUO-AVR-USB , to use the AVR chip it compiles just fine.

 

Filip.

Link to comment
Share on other sites

Hello Juhizo,

 

I tried the LiquidCrystal - Hello Word example.

 

I assume you tried it on the Papilio Duo ? For me it only compiles for the Papilio One, if I want to use the ZPUno.

 

IF I change the board to Papilio DUO-AVR-USB , to use the AVR chip it compiles just fine.

 

Filip.

Board is the Papilio PRO. It seems that Designlab just doesn't work with this board.

Link to comment
Share on other sites

  • 2 months later...

Hello Juhizo,

 

I just finished checking all of the changes needed to get Retrocade working again in DesignLab with ZPUino 2.0. Please watch for DesignLab 1.0.6 release with working RetroCade code.

 

Thanks!

Jack.

Designlab 1.0.7 and still got errors:

 

Arduino: 1.0.7 (Windows 7), Kortti:"Papilio Pro - ZPUino"Found smallfs directoryC:\DesignLab-1.0.7/hardware/tools/zpu/bin/mksmallfs C:\Users\Juhizo\AppData\Local\Temp\build2810356164267746887.tmp/smallfs.dat C:\DesignLab-1.0.7\examples\Audio_RetroCade_Synth/smallfs SmallFS: Packed 11 files sucessfully!!!Audio_RetroCade_Synth.ino: In function `void setup()':Audio_RetroCade_Synth.ino:139: warning: unused variable 'input'C:/DesignLab-1.0.7/hardware/zpuino/libraries/MIDI/MIDI.hpp: At global scope:C:/DesignLab-1.0.7/hardware/zpuino/libraries/MIDI/MIDI.hpp:784: warning: unused parameter 'inChannel'C:/DesignLab-1.0.7/hardware/zpuino/libraries/MIDI/MIDI.hpp:1115: warning: unused parameter 'inChannel'C:/DesignLab-1.0.7/hardware/zpuino/libraries/MIDI/MIDI.hpp:784: warning: unused parameter 'inChannel'C:/DesignLab-1.0.7/hardware/zpuino/libraries/MIDI/MIDI.hpp:1115: warning: unused parameter 'inChannel'Audio_RetroCade_Synth.ino:388: warning: unused parameter 'velocity'Audio_RetroCade_Synth.ino:342: warning: unused parameter 'velocity'RetroCade.cpp: In member function `void RETROCADE::smallfsModFileJoystick(unsigned char)':RetroCade.cpp:407: warning: 'playing' might be used uninitialized in this functionC:\DesignLab-1.0.7\libraries\SID\sid.cpp:127: warning: unused parameter 'address'C:\DesignLab-1.0.7\libraries\SID\sid.cpp:127: warning: unused parameter 'address'C:\DesignLab-1.0.7\libraries\SID\sid.cpp:76: warning: unused parameter 'slot'C:\DesignLab-1.0.7\libraries\SID\sid.cpp:76: warning: unused parameter 'slot'C:\DesignLab-1.0.7\libraries\YM2149\YM2149.cpp:91: warning: unused parameter 'active'C:\DesignLab-1.0.7\hardware\zpuino\zpu20\libraries\SmallFS\SmallFS.cpp:400: warning: missing initializer for member `zfops::fstat'In file included from C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/HardwareSerial.h:4,                 from C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/Arduino.h:8,                 from C:\DesignLab-1.0.7\hardware\zpuino\libraries\LiquidCrystal\LiquidCrystal.cpp:6:C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: conflicting declaration 'typedef struct __zFILE FILE'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: 'FILE' has a previous declaration as `typedef struct __FILE FILE'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:26: error: declaration of C function `void fclose(FILE*)' conflicts withC:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:172: error: previous declaration `int fclose(FILE*)' hereC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected unqualified-id before '--' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected `)' before '--' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected `,' or `;' before '--' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected unqualified-id before '--' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected `)' before '--' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected `,' or `;' before '--' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: conflicting declaration 'typedef int fpos_t'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: 'fpos_t' has a previous declaration as `typedef _fpos_t fpos_t'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: declaration of `typedef int fpos_t'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: conflicts with previous declaration `typedef _fpos_t fpos_t'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: declaration of `typedef int fpos_t'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: conflicts with previous declaration `typedef _fpos_t fpos_t'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:41: error: declaration of C function `int fsetpos(FILE*, fpos_t*)' conflicts withC:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:207: error: previous declaration `int fsetpos(FILE*, const fpos_t*)' hereC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected `)' before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected init-declarator before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected `,' or `;' before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected `)' before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected init-declarator before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected `,' or `;' before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected `)' before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected init-declarator before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected `,' or `;' before '->' tokenC:\DesignLab-1.0.7\hardware\zpuino\libraries\LiquidCrystal\LiquidCrystal.cpp:85: warning: unused parameter 'cols'Virhe käännettäessä.  Tässä raportissa olisi enemmän tietoa  "Näytä yksityiskohtaiset tiedot käännettäessä"  sallittu Tiedosto > Asetuksissa
Link to comment
Share on other sites

  • 2 weeks later...

I was able to get it to compile by changing:  #include "zstdio.h" to  #include "stdio.h" in HardwareSerial.h and ptplay.cpp

 

Should mention your fix is probably for 1.06 and the person is asking about 1.07, and 1.06 is missing from the list of downloadable prior releases.  

 

Compiling Audio_RetroCade_Synth still fails on 1.07 (attached error messages below) with same error with FILE redefinition. Looks pretty trivial to fix and I'll post if I have time to find a workaround. 

 

Non-devs could get pretty frustrated and a little incomplete info can be worse than no information.

 

rabit

Arduino: 1.0.7 (Windows 8), Board: "Papilio Pro - ZPUino"Found smallfs directory..In file included from C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/HardwareSerial.h:4,                 from C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/Arduino.h:8,                 from C:\sdk\DesignLab-1.0.7\hardware\zpuino\libraries\LiquidCrystal\LiquidCrystal.cpp:6:C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: conflicting declaration 'typedef struct __zFILE FILE'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: 'FILE' has a previous declaration as `typedef struct __FILE FILE'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:26: error: declaration of C function `void fclose(FILE*)' conflicts withC:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:172: error: previous declaration `int fclose(FILE*)' hereC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected unqualified-id before '--' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected `)' before '--' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected `,' or `;' before '--' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected unqualified-id before '--' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected `)' before '--' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected `,' or `;' before '--' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: conflicting declaration 'typedef int fpos_t'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: 'fpos_t' has a previous declaration as `typedef _fpos_t fpos_t'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: declaration of `typedef int fpos_t'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: conflicts with previous declaration `typedef _fpos_t fpos_t'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: declaration of `typedef int fpos_t'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: conflicts with previous declaration `typedef _fpos_t fpos_t'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:41: error: declaration of C function `int fsetpos(FILE*, fpos_t*)' conflicts withC:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:207: error: previous declaration `int fsetpos(FILE*, const fpos_t*)' hereC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected `)' before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected init-declarator before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected `,' or `;' before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected `)' before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected init-declarator before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected `,' or `;' before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected `)' before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected init-declarator before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected `,' or `;' before '->' tokenC:\sdk\DesignLab-1.0.7\hardware\zpuino\libraries\LiquidCrystal\LiquidCrystal.cpp:85: warning: unused parameter 'cols'Error compiling.  This report would have more information with  "Show verbose output during compilation"  enabled in File > Preferences.
Link to comment
Share on other sites

I just finished checking all of the changes needed to get Retrocade working again in DesignLab with ZPUino 2.0. Please watch for DesignLab 1.0.6 release with working RetroCade code.

 

So with the new designlab 1.0.7, all of the stuff for retrocade is ported and running with all fixes ?

I have papilio pro+retrocade, but seemed like the retrocade project derailed for some time ago, but since Duo is finished, maybe there is hope that retrocade will work again. 

 

And, is the retrocade compatible with the Duo?

Link to comment
Share on other sites

I did make all of the changes to the retrocade sketch to make it work with DesignLab so people could move forward with new code in the latest environment. But unfortunately it looks like I missed a change in a library file... I'm doing some consulting work now but will try to get a fix out ASAP.

 

I think the only retrocade piece of hardware missing for the DUO is the MIDI input. 

 

Jack.

Link to comment
Share on other sites

Ok, so there was a conflict with two versions of the LiquidCrystal library. The one that was active did not get updated with the correct zstdio.h include.

 

I have a fix checked in here:

https://github.com/GadgetFactory/DesignLab/commit/4b5be1128d00bb4d2331b26429803fe14ac1e022

 

Just open "hardware/zpuino/libraries/LiquidCrystal/LiquidCrystal.cpp" and change stdio to zstdio and the RetroCade sketch should compile.

 

I'm working on a new release with this fix, I have one other item to look into, the AVR Wishbone Bridge example not working.

 

Jack.

 

 

 

Should mention your fix is probably for 1.06 and the person is asking about 1.07, and 1.06 is missing from the list of downloadable prior releases.  

 

Compiling Audio_RetroCade_Synth still fails on 1.07 (attached error messages below) with same error with FILE redefinition. Looks pretty trivial to fix and I'll post if I have time to find a workaround. 

 

Non-devs could get pretty frustrated and a little incomplete info can be worse than no information.

 

rabit

Arduino: 1.0.7 (Windows 8), Board: "Papilio Pro - ZPUino"Found smallfs directory..In file included from C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/HardwareSerial.h:4,                 from C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/Arduino.h:8,                 from C:\sdk\DesignLab-1.0.7\hardware\zpuino\libraries\LiquidCrystal\LiquidCrystal.cpp:6:C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: conflicting declaration 'typedef struct __zFILE FILE'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: 'FILE' has a previous declaration as `typedef struct __FILE FILE'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:26: error: declaration of C function `void fclose(FILE*)' conflicts withC:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:172: error: previous declaration `int fclose(FILE*)' hereC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected unqualified-id before '--' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected `)' before '--' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected `,' or `;' before '--' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected unqualified-id before '--' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected `)' before '--' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected `,' or `;' before '--' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: conflicting declaration 'typedef int fpos_t'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: 'fpos_t' has a previous declaration as `typedef _fpos_t fpos_t'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: declaration of `typedef int fpos_t'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: conflicts with previous declaration `typedef _fpos_t fpos_t'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: declaration of `typedef int fpos_t'C:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: conflicts with previous declaration `typedef _fpos_t fpos_t'C:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:41: error: declaration of C function `int fsetpos(FILE*, fpos_t*)' conflicts withC:/sdk/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:207: error: previous declaration `int fsetpos(FILE*, const fpos_t*)' hereC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected `)' before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected init-declarator before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected `,' or `;' before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected `)' before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected init-declarator before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected `,' or `;' before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected `)' before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected init-declarator before '->' tokenC:/sdk/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected `,' or `;' before '->' tokenC:\sdk\DesignLab-1.0.7\hardware\zpuino\libraries\LiquidCrystal\LiquidCrystal.cpp:85: warning: unused parameter 'cols'Error compiling.  This report would have more information with  "Show verbose output during compilation"  enabled in File > Preferences.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.