Page 1 of 1

newbie trying to compile with arduino problems

Posted: Tue Oct 07, 2014 7:04 pm
by bsharpe
HI all,
just installed an e3dv6 hotend on my orion...now on the learning curve with modifying the firmware for thermister and maxtem parameters.
downloaded and installed arduino code blocks.....
following instructions at this link to build and upload: http://www.repetier.com/documentation/r ... tallation/
in configuration.h made these changes:
* #define MAXTEMP 300
* #define EXT0_TEMPSENSOR_TYPE 8
* #define MOTHERBOARD 301 (rambo)
Board set to "Arduino Mega 2560"...

Now tried to compile for 1st time and getting error:
||=== Build: Arduino Mega 2560/ADK in Repetier (compiler: GNU AVR GCC Compiler) ===|
.objs\Repetier.o||No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===|

in the instructions at the link above there is nothing said about defining directories??
NEWBIE NEEDS HELP!! :oops:

Re: newbie trying to compile with arduino problems

Posted: Tue Oct 07, 2014 7:08 pm
by teoman
Do you have experience with arduino?

You usually have to place the projects inside the arduino folder ehich was created inside your documents folder.

Re: newbie trying to compile with arduino problems

Posted: Tue Oct 07, 2014 7:12 pm
by bsharpe
1 hours worth of experience!!
my arduino directory is C:\data\3d printer\Arduino\CodeBlocks
my project directory is C:\data\3d printer\Arduino\Repetier-Firmware-master
I'll move "repetier-Firmware-master" into "codeblocks" and try again...

Re: newbie trying to compile with arduino problems

Posted: Tue Oct 07, 2014 7:17 pm
by bsharpe
no luck...same error

Re: newbie trying to compile with arduino problems

Posted: Tue Oct 07, 2014 7:20 pm
by bsharpe
i can't find any "objs" directory...

Re: newbie trying to compile with arduino problems

Posted: Tue Oct 07, 2014 7:27 pm
by teoman
Mac or windows?

I use it on a mac and i can have a look when i get to my printer tomorrow.

Re: newbie trying to compile with arduino problems

Posted: Tue Oct 07, 2014 9:08 pm
by bsharpe
Win 64 bit...

Re: newbie trying to compile with arduino problems

Posted: Tue Oct 07, 2014 10:46 pm
by bsharpe
so it looks like i downloaded the wrong ide?? Arduino 1.0.6 "codeblocks" IDE.....??
I downloaded Arduino 1.5.8 BETA and looks like I can compile in this one...
what's the difference between the two? The 1.0.6 looks like it has a more modern interface...

Re: newbie trying to compile with arduino problems

Posted: Tue Oct 07, 2014 11:32 pm
by bsharpe
ok, so I downloaded Arduino 1.5.8...windows installer, installed OK
downloaded Orion firmware from here.... https://github.com/seemecnc/Repetier-091-ORION
Loaded up Repetier.ino
No changes to any file, straight into "compile"
Get these messages and errors at the end:

Arduino: 1.5.8 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Build options changed, rebuilding all

Using library SPI in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI



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\build4900353575422888629.tmp\Commands.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\Commands.cpp.o

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\build4900353575422888629.tmp\Communication.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\Communication.cpp.o

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\build4900353575422888629.tmp\Eeprom.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\Eeprom.cpp.o

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\build4900353575422888629.tmp\Extruder.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\Extruder.cpp.o

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\build4900353575422888629.tmp\gcode.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\gcode.cpp.o

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\build4900353575422888629.tmp\HAL.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\HAL.cpp.o

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\build4900353575422888629.tmp\motion.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\motion.cpp.o

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\build4900353575422888629.tmp\Printer.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\Printer.cpp.o

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\build4900353575422888629.tmp\Repetier.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\Repetier.cpp.o

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\build4900353575422888629.tmp\SDCard.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\SDCard.cpp.o

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\build4900353575422888629.tmp\SdFat.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\SdFat.cpp.o

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\build4900353575422888629.tmp\ui.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp.o

C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp: In member function 'bool<anonymous struct>::showEntry() const':
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.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\build4900353575422888629.tmp\ui.cpp:120:35: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.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\build4900353575422888629.tmp\ui.cpp:120:29: error: expected ')' before 'const'
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.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\build4900353575422888629.tmp\ui.cpp:123:36: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.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\build4900353575422888629.tmp\ui.cpp:123:30: error: expected ')' before 'const'
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp: In member function 'void UIDisplay::adjustMenuPos()':
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.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\build4900353575422888629.tmp\ui.cpp:1952:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.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\build4900353575422888629.tmp\ui.cpp:1952:41: error: expected ')' before 'const'
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp: In member function 'void UIDisplay::nextPreviousAction(int8_t)':
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.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\build4900353575422888629.tmp\ui.cpp:2015:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.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\build4900353575422888629.tmp\ui.cpp:2015:41: error: expected ')' before 'const'
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.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\build4900353575422888629.tmp\ui.cpp:2019:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.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\build4900353575422888629.tmp\ui.cpp:2019:43: error: expected ')' before 'const'
Error compiling.

Re: newbie trying to compile with arduino problems

Posted: Wed Oct 08, 2014 8:51 am
by teoman
Are you able to see the project in your sketchbook?

Re: newbie trying to compile with arduino problems

Posted: Wed Oct 08, 2014 9:01 am
by guanu
I replied to the other post you made, but I'll reply here too.... you need to extract the zip to a directory first before loading the repetier.ino file.. seeing all your errors being from a temp looks like it wasnt extracted first and you were working from inside the zip

Guanu

Re: newbie trying to compile with arduino problems

Posted: Fri Oct 10, 2014 6:58 am
by Brinawa
Hi, having somewhat similar issue on Rostock 0.91 can't compile although I can compile the examples in the Arduino (v 1.05) it all seems to revolve around the ui.cpp section of the code. I am new to Arduino can anybody point me in the right direction? The Repetier does appear in the sketchbook. In my case I have extracted the main zip file into the sketchbook directory.

Any help most appreciated. :)



ui.cpp: In member function 'bool<anonymous struct>::showEntry() const':
ui.cpp:120:35: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
f = HAL::readFlashByte((const prog_char*)&filter);
^
ui.cpp:120:35: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:120:29: error: expected primary-expression before 'const'
f = HAL::readFlashByte((const prog_char*)&filter);
^
ui.cpp:120:29: error: expected ')' before 'const'
ui.cpp:123:36: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
f2 = HAL::readFlashByte((const prog_char*)&nofilter);

Re: newbie trying to compile with arduino problems

Posted: Fri Oct 10, 2014 7:06 am
by Renha
Looks like i had same issue many times, and has been successfully resolved. It was Arch Linux version of Arduino, which used Arch's compilator and libraries, and then i download anotwer version with own things, and all was ok. Try another version of Arduino IDE (you may use old one)

Re: newbie trying to compile with arduino problems

Posted: Wed Oct 15, 2014 6:09 am
by Brinawa
Renha wrote:Looks like i had same issue many times, and has been successfully resolved. It was Arch Linux version of Arduino, which used Arch's compilator and libraries, and then i download anotwer version with own things, and all was ok. Try another version of Arduino IDE (you may use old one)

Thanks Renha, You pointed us in the right direction. I had to use an older version of Arduino 1.04. Version 1.05 was installed on my Fedora 20 distro by default. It compiled and loaded correctly under the 1.04 version.

I think the version changed to the ANSI version during the 1.05 release. I don't think the Repetier firmware is written to be ANSI complient

Thank you again for your help it is most appreciated.

Cheers
Brinawa