Pages: 1 ... 29 30 [31]   Go Down
Author Topic: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches  (Read 99670 times)
0 Members and 1 Guest are viewing this topic.
Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1903
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.baeyens.it/eclipse/Arduino%20eclipse%20plugin%20FAQ.html#spaces
Logged

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 -

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for your help

I change the arduino installation path.

right now, the error message  as below.


make all
Building file: ../.ino.cpp
Starting C++ compile
"D:/Arduino/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-g++" -c -g -Os -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=156-r2 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Due"' "-ID:/Arduino/hardware/arduino/sam/system/libsam" "-ID:/Arduino/hardware/arduino/sam/system/CMSIS/CMSIS/Include/" "-ID:/Arduino/hardware/arduino/sam/system/CMSIS/Device/ATMEL/"   -I"D:\Arduino\hardware\arduino\sam\cores\arduino" -I"D:\Arduino\hardware\arduino\sam\variants\arduino_due_x" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.d" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp"  -o  ".ino.cpp.o"   -Wall
In file included from ../.ino.cpp:15:
../test.ino: In function 'void setup()':
../test.ino:2: error: redefinition of 'void setup()'
../.ino.cpp:7: error: 'void setup()' previously defined here
../test.ino: In function 'void loop()':
../test.ino:8: error: redefinition of 'void loop()'
../.ino.cpp:10: error: 'void loop()' previously defined here
make: *** [.ino.cpp.o] Error 1
Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1903
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

can you share the files test.ino and .ino.cpp?
Do you use the product or the plugin?
Which version did you install ?
Which os are you running?

Best regards
Jantje

Logged

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 -

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

can you share the files test.ino and .ino.cpp?
Do you use the product or the plugin?
Which version did you install ?
Which os are you running?

Best regards
Jantje



OS: WIN 7 64bit
case 1: Eclipse Juno sr2 (use nightly plugin)
case 2:  win64.2014-07-01_02-06-34.tar.gz
Adruino 1.5.6-r2

case 1 and case 2 display same error message.

I just create a empty sketch named "test" and not edit it yet.


thank you.


Add project file as attacment

* test.zip (14.65 KB - downloaded 3 times.)
« Last Edit: July 01, 2014, 08:35:06 am by ccko » Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1903
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

funny
I just build win64.2014-07-01_02-06-34.tar.gz  because when testing the due build, I noticed there was a error introduced in the due build due to issue34.
But the error was at link time not at compile time (like in your case).

So win64.2014-07-01_02-06-34.tar.gz  should get you to a build due sketch.

Note that you are using the "nightly build" which means you are at the "bleeding edge" or "things have not been tested in depth"
If you want to be sure it works you should take the latest stable. In your case at the time of writing that is http://eclipse.baeyens.it/download/product/V2.2_win64.2014-01-19_15-16-30.tar.gz
If you are new to the tool please start using the latest stable version.
Best regards
Jantje
Logged

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 -

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, stable version works fine for me.

when I use Serial.begin(9600)

it display error message as below

error: 'Serial' was not declared in this scope



Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1903
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.html
Logged

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 -

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, stable version works fine for me.

when I use Serial.begin(9600)

it display error message as below

error: 'Serial' was not declared in this scope





If I don't run the batch file in the last of http://eclipse.baeyens.it/installAdvice.shtml.

Serial.begin(9600) will verify success.

is it necessary to run the batch file?

Thank you.

By the way, when declare
USBHost Usb; ( I add arduino libaraies path at C/C++ General ->Paths and Symbols)

Eclipse will display warning
->undefined reference to `USBHost::USBHost()'

then cause the Serial.print("some text") not work.

It means serial monitor view not print the message.

if mark "USBHost usb;" everything works fine.

Any idea how to resolve this?
Thanks for your help.

Finally, I create a libraries folder in my project and move the UsbHost related *.cpp *.h to this folder.
it works fine.
But I want to know is there any other solution?

thanks

« Last Edit: July 02, 2014, 11:05:57 am by ccko » Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1903
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


If I don't run the batch file in the last of http://eclipse.baeyens.it/installAdvice.shtml.

The batch file i only needed with some  libraries. Depending on the arduino IDE version it can be nearly all libraries or none.

I'm sorry but I can't make sense out of the other comments.

Jantje
Logged

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 -

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I include Google ADK 2012 library in the project

when verify project. it display following error message.

please give me some advices. thank you.

E:/myProgram/Arduino/hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a(uotghs.o): In function `UOTGHS_Handler':
uotghs.c:(.text.UOTGHS_Handler+0x0): multiple definition of `UOTGHS_Handler'
./libraries/ADK2/usbh.c.o:E:\myProgram\eclipseArduino\workspace\test\Release/../libraries/ADK2/usbh.c:684: first defined here

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I try to install Eclipse IDE for Arduino Due (ARM Cortex ATSAM3X8E uC) on Windows Vista Business, I installed Sketch 1.5.7.
I followed your instructions and installed Indigo Reliease 2.
I am stacked at step 3.6, I cannot unzipp any of the files for Windows 32 bit from this site, I tried 6 different files, and received error message
*.gz file is corrupt, CRC failure for each one.

I located Arduino plugin on 'Eclipse market' but the installation doe not work:
Error message
Cannot complete the install because one or more required items could not be found.
  Software being installed: Arduino eclipse extensions 2.2.0.1 (it.baeyens.arduino.feature.feature.group 2.2.0.1)
  Missing requirement: Arduino eclipse plugin 2.2.0.1 (it.baeyens.arduino.core 2.2.0.1) requires 'package org.eclipse.cdt.core.language.settings.providers 0.0.0' but it could not be found
  Cannot satisfy dependency:
    From: Arduino eclipse extensions 2.2.0.1 (it.baeyens.arduino.feature.feature.group 2.2.0.1)
    To: it.baeyens.arduino.core [2.2.0.1]

 Any idea? Thanks very much for your help.
Regards
Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1903
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Any idea? Thanks very much for your help.
Regards

Install the "Eclipse IDE for C/C++ Developers" version and try again with the marketplace.

Jantje
Logged

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 -

Pages: 1 ... 29 30 [31]   Go Up
Jump to: