Page 1 of 1

What version Arduino will repetier files for ORION compile?

Posted: Wed Oct 08, 2014 1:06 am
by bsharpe
I downloaded the stock Repetier firmware files...."Repetier-Firmware-master.zip"
that compiles successfully in Arduino 1.5.8

I downloaded the Orion firmware files ....."Repetier-091-ORION-master.zip" from githum here...
https://github.com/seemecnc/Repetier-091-ORION
That gives me compile errors in ui.cpp....using Arduino 1.0.6, and 1.5.8

The stock ORION files obviously should compile in some version of Arduino....but not for me!
Errors are shown below.
any and all help appreciated....


C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp.o

C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp: In member function 'bool<anonymous struct>::showEntry() const':
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:120:35: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
f = HAL::readFlashByte((const prog_char*)&filter);
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:120:35: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:120:29: error: expected primary-expression before 'const'
f = HAL::readFlashByte((const prog_char*)&filter);
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:120:29: error: expected ')' before 'const'
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:123:36: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
f2 = HAL::readFlashByte((const prog_char*)&nofilter);
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:123:36: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:123:30: error: expected primary-expression before 'const'
f2 = HAL::readFlashByte((const prog_char*)&nofilter);
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:123:30: error: expected ')' before 'const'
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp: In member function 'void UIDisplay::adjustMenuPos()':
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:1952:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:1952:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:1952:41: error: expected primary-expression before 'const'
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:1952:41: error: expected ')' before 'const'
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp: In member function 'void UIDisplay::nextPreviousAction(int8_t)':
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:2015:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:2015:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:2015:41: error: expected primary-expression before 'const'
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:2015:41: error: expected ')' before 'const'
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:2019:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
uint8_t entType = HAL::readFlashByte((const prog_char*)&(ent->menuType));// 0 = Info, 1 = Headline, 2 = submenu ref, 3 = direct action command
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:2019:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:2019:43: error: expected primary-expression before 'const'
uint8_t entType = HAL::readFlashByte((const prog_char*)&(ent->menuType));// 0 = Info, 1 = Headline, 2 = submenu ref, 3 = direct action command
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build7855876795234742609.tmp\ui.cpp:2019:43: error: expected ')' before 'const'
Error compiling.

Re: What version Arduino will repetier files for ORION compi

Posted: Wed Oct 08, 2014 1:07 am
by bsharpe
oh, and i'm using win 7 64 bit machine....

Re: What version Arduino will repetier files for ORION compi

Posted: Wed Oct 08, 2014 8:39 am
by guanu
I use arduino 1.0.5-r2 and the firmware direct from the git when I program all the orions.. how are you grabbing it from git? using the link you provided, on the right hit download zip.. after it is downloaded, extract the zip.. looking at your error report you didnt extract the zip since its grabbing everything from your temp dir... extract it and you should be fine

Guanu

Re: What version Arduino will repetier files for ORION compi

Posted: Wed Oct 08, 2014 10:31 am
by bsharpe
HI Guanu,
I agree it looks like by the error messages I did not extract the files from the zip. However, I did!!
the zip was in my "download" directory, and I extracted directly from there to another directory on another logical drive. (D:)
Anyway, I did this.
1- Reinstalled Ardiuno 1.0.6 ( could not find 1.0.5r )
2- deleted the Orion firmware directory I extracted on D drive
3- reextracted the orion firmware onto the D: drive
4- Loaded Ardiuno, and the ORion project
5- and it compiled nicely!

I don't know what happened, but I swear i did extract them to the D: drive, and I loaded the project from the D: drive.
Seems to be working now.
Thanks for the help!
Rgds, Bob

Re: What version Arduino will repetier files for ORION compi

Posted: Wed Oct 08, 2014 11:58 am
by bsharpe
i check the recycle bin to see if the source folder i deleted on D: drive was zipped, it wasn't.
the only possible explanation I can think of is that I loaded the project from the download directory ( but I know i didn't! ) :oops: