Go Down

Topic: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches (Read 113 times) previous topic - next topic

hamiljf

Thanks... that seems to have worked fine.  Strange the way that Eclipse only shows that item with those specific settings, but that is the way it is.
By the way... the configuration guidance shows a screen different to the attached (I hope it is attached) ...
what should one put in 'private library path' ?
And... (sorry to be dumb) but where does one get 'Serial' from when running in Eclipse?

Jantje

hamiljf
Note from  http://eclipse.baeyens.it/Install.html
Quote
Note that the instructions are a bit outdated from 1.2.2 onwards.

If you feel the page should be 100% up to date please fork the project on github and update the website. I'll verify and post it when you are ready.

For the private library see the FAQ http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#Private_Library
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Bryanpl

Hello:

Having an issue getting the Arduino wire library  to compile. I have followed the instructions at the recommended thread in the FAQ file to no avail.

http://arduino.cc/forum/index.php/topic,86344.0.html

Win 7 64 bit
Arduino 1.0.1
Eclipse Indigo Release 2
Arduino eclipse plugin 1.2.5.5

Code: [Select]
**** Build of configuration Release for project Blink ****

make all
Building file: C:/Reef_Angel/libraries/Wire/utility/twi.c
Invoking: AVR Compiler
avr-gcc -I"C:\Reef_Angel\hardware\arduino\cores\arduino" -I"C:\Reef_Angel\hardware\arduino\variants\standard" -I"C:\Users\Bryan\workspace\Blink" -I"C:\Reef_Angel\libraries\EEPROM" -I"C:\Reef_Angel\libraries\Ethernet" -I"C:\Reef_Angel\libraries\Firmata" -I"C:\Reef_Angel\libraries\LiquidCrystal" -I"C:\Reef_Angel\libraries\SD" -I"C:\Reef_Angel\libraries\Servo" -I"C:\Reef_Angel\libraries\SoftwareSerial" -I"C:\Reef_Angel\libraries\SPI" -I"C:\Reef_Angel\libraries\Stepper" -I"C:\Reef_Angel\libraries\Wire" -D__IN_ECLIPSE__=1 -DARDUINO=101 -DUSB_PID= -DUSB_VID= -Wall -Os -g -mmcu=atmega328p -DF_CPU=16000000UL -MMD -MP -MF"Wire/utility/twi.d" -MT"Wire/utility/twi.d"  -c -o "Wire/utility/twi.o" "C:/Reef_Angel/libraries/Wire/utility/twi.c"
C:/Reef_Angel/libraries/Wire/utility/twi.c:115: error: conflicting types for 'twi_readFrom'
C:/Reef_Angel/libraries/Wire/utility/twi.h:81: error: previous declaration of 'twi_readFrom' was here
C:/Reef_Angel/libraries/Wire/utility/twi.c:192: error: conflicting types for 'twi_writeTo'
C:/Reef_Angel/libraries/Wire/utility/twi.h:82: error: previous declaration of 'twi_writeTo' was here
make: *** [Wire/utility/twi.o] Error 1


Could anybody assist in what I need to do next?
-=Bryan=-

Jantje

Bryan
I tried to compile an arduino sketch with the wire library using the exact same setup as you do.
There is a regression bug; which is that the utility folder is not added to the include path. (The same problem exists for the ethernet library and SD library). Once this one is fixed it works fine.
The link you referred to is no longer valid. I have worked around that in the eclipse settings.

My guess is that you bumped in the regression bug and tried to fix it and that results in the problem you have.
I propose to change back to the original Arduino code and work around the regression bug as follows:
Select your project->properties->C/C++ general->Paths and symbols select the includes path click add; click workspace; select the utility folder in the ethernet folder. select ok; make sure you have "add to all languages" and "add to all configurations" on. Select OK
Following libraries will need this: Wire;SD and Ethernet

I hope this helps you out.
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Bryanpl

Thanks Jantje.

Your help worked. Project compiled fine. Much appreciated.
-=Bryan=-

Go Up