Re: Problem compiling v1.09 in EclipseArduinoIDE March 03, 2016 09:47AM |
Registered: 10 years ago Posts: 665 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 03, 2016 10:09AM |
Registered: 8 years ago Posts: 75 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 03, 2016 10:26AM |
Registered: 10 years ago Posts: 665 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 04, 2016 05:15AM |
Registered: 10 years ago Posts: 14,672 |
Building file: ../DDA.cpp' 'Starting C++ compile' "C:/Arduino-1.5.8/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -std=gnu++11 -O2 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=158 -DARDUINO_SAM_DUE -DARDUINO_ARCH_ -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-IC:/Arduino-1.5.8/hardware/arduino/sam/system/libsam" "-IC:/Arduino-1.5.8/hardware/arduino/sam/system/CMSIS/CMSIS/Include/" "-IC:/Arduino-1.5.8/hardware/arduino/sam/system/CMSIS/Device/ATMEL/" -IC:/Arduino-1.5.8/hardware/arduino/sam/cores/arduino -IC:/arduino-1.5.8/hardware/arduino/sam/system/libsam/include -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\EMAC" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\Lwip" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\MCP4461" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SamNonDuePin" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SD_HSMCI" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SD_HSMCI\utility" -I"C:\Arduino-1.5.8\hardware\arduino\sam\libraries\Wire" -I"C:/Arduino-1.5.8/hardware/arduino/sam/variants/arduino_due_x" -I"C:/Arduino-1.5.8/hardware\tools/gcc-arm-none-eabi-4.8.3-2014q1/lib/gcc/arm-none-eabi/4.8.3/include" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\Flash" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SPI" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\MAX31855" -MMD -MP -MF"DDA.cpp.d" -MT"DDA.cpp.d" -x c++ "../DDA.cpp" -o "DDA.cpp.o" -Wall -O2 -std=gnu++11 'Finished building: ../DDA.cpp'
Re: Problem compiling v1.09 in EclipseArduinoIDE March 04, 2016 09:39AM |
Registered: 8 years ago Posts: 75 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 04, 2016 11:20AM |
Registered: 10 years ago Posts: 665 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 04, 2016 03:36PM |
Registered: 10 years ago Posts: 14,672 |
Quote
derek5a
-IC:/arduino-1.5.8/hardware/arduino/sam/system/libsam/include
-I"C:\Arduino-1.5.8\hardware\arduino\sam\libraries\Wire"
-I"C:/Arduino-1.5.8/hardware\tools/gcc-arm-none-eabi-4.8.3-2014q1/lib/gcc/arm-none-eabi/4.8.3/include"
Though I can't see them in the "Import" section... Any ideas how I go about adding them?
Re: Problem compiling v1.09 in EclipseArduinoIDE March 07, 2016 06:41AM |
Registered: 8 years ago Posts: 75 |
Quote
dc42
btw I am currently restructuring the build system to make the Eclipse project files more portable.
Re: Problem compiling v1.09 in EclipseArduinoIDE March 07, 2016 06:53AM |
Registered: 10 years ago Posts: 665 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 07, 2016 07:05AM |
Registered: 8 years ago Posts: 75 |
Quote
chrishamm
Quote
chrishamm
Add this to your C compiler flags: -std=gnu11
And this to your C++ compiler flags: -std=gnu++11
IIRC dc42 uses -std=c99 in his CFLAGS, but gnu11 should do the trick too. That's what I've been using in my makefiles.
Re: Problem compiling v1.09 in EclipseArduinoIDE March 07, 2016 08:29AM |
Registered: 10 years ago Posts: 665 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 07, 2016 12:01PM |
Registered: 8 years ago Posts: 75 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 07, 2016 12:15PM |
Registered: 10 years ago Posts: 665 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 07, 2016 03:07PM |
Registered: 8 years ago Posts: 75 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 07, 2016 04:25PM |
Registered: 10 years ago Posts: 665 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 07, 2016 04:39PM |
Registered: 8 years ago Posts: 75 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 07, 2016 06:18PM |
Registered: 10 years ago Posts: 14,672 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 08, 2016 05:51AM |
Registered: 8 years ago Posts: 75 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 08, 2016 07:57AM |
Registered: 10 years ago Posts: 14,672 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 08, 2016 08:31AM |
Registered: 8 years ago Posts: 75 |
Quote
dc42
I recall that in the build variables, you removed the definitions of the USB variables that were causing trouble. But you need 3 of them. USBCON just needs to be defined e.g. as 1. USBPID and USBVID need to have the correct values so that the board is recognised as an Arduino Due.
Re: Problem compiling v1.09 in EclipseArduinoIDE March 08, 2016 08:56AM |
Registered: 8 years ago Posts: 75 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 08, 2016 05:03PM |
Registered: 10 years ago Posts: 14,672 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 09, 2016 06:41AM |
Registered: 8 years ago Posts: 75 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 09, 2016 07:25AM |
Registered: 10 years ago Posts: 2,472 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 09, 2016 09:56AM |
Registered: 10 years ago Posts: 665 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 09, 2016 11:08AM |
Registered: 10 years ago Posts: 14,672 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 09, 2016 12:27PM |
Registered: 8 years ago Posts: 75 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 09, 2016 01:43PM |
Registered: 10 years ago Posts: 14,672 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 09, 2016 02:43PM |
Registered: 8 years ago Posts: 75 |
Re: Problem compiling v1.09 in EclipseArduinoIDE March 09, 2016 02:58PM |
Registered: 8 years ago Posts: 75 |
Quote
dc42
I don't get any warning from either of those files. I suggest you post your warning and error lists.
If you want to try my new build system:
1. In Eclipse create a new workspace in C:/Eclipse/Firmware. Then exit Eclipse.
2. Download and unzip the latest versions of my github RepRapFirmware and CoreDuet projects, so that in C:/Eclipse/Firmware you have folders RepRapFirmware and CoreDuet.
3. Load Eclipse. It should show that you have those two projects in that workspace.
4. Set up the path to the gcc tools. If you installed Arduino 1.5.8 in C:/Arduino-1.5.8 then they should be correct anyway. All the other project settings should be correct already.
5. Build project CoreDuet first, then RepRapFirmware.