newbie trying to compile with arduino problems

Having a problem? Post it here and someone will be along shortly to help
Post Reply
bsharpe
Plasticator
Posts: 14
Joined: Fri Sep 12, 2014 12:54 pm

newbie trying to compile with arduino problems

Post 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:
User avatar
teoman
ULTIMATE 3D JEDI
Posts: 1770
Joined: Sat May 24, 2014 5:43 pm

Re: newbie trying to compile with arduino problems

Post 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.
When on mobile I am brief and may be perceived as an arsl.
bsharpe
Plasticator
Posts: 14
Joined: Fri Sep 12, 2014 12:54 pm

Re: newbie trying to compile with arduino problems

Post 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...
bsharpe
Plasticator
Posts: 14
Joined: Fri Sep 12, 2014 12:54 pm

Re: newbie trying to compile with arduino problems

Post by bsharpe »

no luck...same error
bsharpe
Plasticator
Posts: 14
Joined: Fri Sep 12, 2014 12:54 pm

Re: newbie trying to compile with arduino problems

Post by bsharpe »

i can't find any "objs" directory...
User avatar
teoman
ULTIMATE 3D JEDI
Posts: 1770
Joined: Sat May 24, 2014 5:43 pm

Re: newbie trying to compile with arduino problems

Post by teoman »

Mac or windows?

I use it on a mac and i can have a look when i get to my printer tomorrow.
When on mobile I am brief and may be perceived as an arsl.
bsharpe
Plasticator
Posts: 14
Joined: Fri Sep 12, 2014 12:54 pm

Re: newbie trying to compile with arduino problems

Post by bsharpe »

Win 64 bit...
bsharpe
Plasticator
Posts: 14
Joined: Fri Sep 12, 2014 12:54 pm

Re: newbie trying to compile with arduino problems

Post 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...
bsharpe
Plasticator
Posts: 14
Joined: Fri Sep 12, 2014 12:54 pm

Re: newbie trying to compile with arduino problems

Post 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.
User avatar
teoman
ULTIMATE 3D JEDI
Posts: 1770
Joined: Sat May 24, 2014 5:43 pm

Re: newbie trying to compile with arduino problems

Post by teoman »

Are you able to see the project in your sketchbook?
Attachments
Screen Shot 2014-10-08 at 15.49.35.png
When on mobile I am brief and may be perceived as an arsl.
guanu
SeeMeCNC Staff
Posts: 392
Joined: Mon Mar 26, 2012 1:54 pm

Re: newbie trying to compile with arduino problems

Post 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
Brinawa
Noob
Posts: 2
Joined: Thu Oct 09, 2014 3:52 am

Re: newbie trying to compile with arduino problems

Post 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);
User avatar
Renha
Printmaster!
Posts: 280
Joined: Fri Apr 11, 2014 2:18 am
Location: Balashikha, Russian Federation
Contact:

Re: newbie trying to compile with arduino problems

Post 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)
3D printing is magic!

Sorry my engrish :-/ you could PM me in Russian.
Brinawa
Noob
Posts: 2
Joined: Thu Oct 09, 2014 3:52 am

Re: newbie trying to compile with arduino problems

Post 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
Post Reply

Return to “Troubleshooting”