Go Down

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

amx1

Hi Jantje,

I have two further questions:

1) Is it possible to add these options to the default settings when generating new projects? Otherwise you have to edit the parameters each time individually.

2) Up to now I used the version from the marketplace. New projects are generated as cpp / h instead of ino files. I dont like the ino stuff very much. With larger projects it is really hard to work with. Is it possible to switch to the cpp / h generation?

Best

Axel

Jantje

Axel
1)  I created a github issue https://github.com/jantje/arduino-eclipse-plugin/issues/186
It contains a work around that will survive changes to the project but need to be done for each new project.
2) I'm not sure I understand you. V2.2 (from the market place) does not support ino files. As you don't like .ino that should be ok, isn't it?

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 -

amx1

Jantje,

thank you!

With respect to point 2) Yes I am fine with the marketplace version. I will continue to use that. I was just wondering if this is a different version/branch and you will focus on the ino version in the future. But to be shure , I am not against ino and especially the Arduino IDE. Maybe I am an old fashion developer used to .cpp and .h structures ;-)

Best

Axel


Jantje

ino support is a add on.
You can read my opinion on ino files here: http://blog.baeyens.it/#post13
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 -

Aelindgard

Apologies to all,

I believe that this had been solved somewhere but for some reason my searches doesn't show up anything. I seem to be still having the multiple definitions problem. I installed the latest version via git/maven on ubuntu 32bit and using Arduino 1.5.7.

Using the menu in the IDE to import the a library in this case the LiquidCrystal library adds the folders etc to the project. Once I try to verify/compile the compiler complains of the LiquidCrystal.h etc having been defined in the files in the libraries folder in the Arduino IDE folder.

The LiquidCrystal.h file does contain include guards.

Did I missed something while installing or setting the Eclipse Arduino IDE?

Thank you.

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 -

wonglokat

#471
Aug 16, 2014, 02:11 pm Last Edit: Aug 16, 2014, 02:21 pm by wonglokat Reason: 1
Hi,

I'm trying to get the Eclipse plugin to work, but somehow I get an error when I build my code.
I'm using the Eclipse Arduino Package V2.3_win32.2014-07-12_02-06-35 from the Bayens page and the Arduino IDE 1.5.7. Since I'm using Windows 7 64Bit, I also use MinGW for the compiler.
Every time I try to build, I get this error:

14:04:02 **** Incremental Build of configuration Release for project test ****
make all
'Building file: ../.ino.cpp'
'Starting C++ compile'
"H:/arduino/arduino/hardware/tools/avr/bin/avr-g++" -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=157 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR     -I"H:\arduino\arduino\hardware\arduino\avr\cores\arduino" -I"H:\arduino\arduino\hardware\arduino\avr\variants\mega" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.d" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp"  -o  ".ino.cpp.o"   -Wall
subdir.mk:18: recipe for target '.ino.cpp.o' failed
make: *** [.ino.cpp.o] Error -1073741515


Other than setting the Arduino IDE path in Eclipse, I did not do anything.
The file I'm trying to compile looks like this:

#include <test.h>
void setup(){
}
void loop() {
}


Eclipse also shows 2 errors in my project:
- make: *** [test.cpp.o] Error -1073741515
- recipe for target 'test.cpp.o'failed
The second error points to the file ./Release/subdir.mk


Am I missing some imports or something like that? I really appreciate your support!

Best regards

Jantje

@wonglokat
This is probably related to the fact arduino no longer delivers make with Arduino IDE 1.5.7
Did you install a make?
Can you try with Aduino IDE 1.5.7?
Best regards
Jante
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 -

wonglokat

#473
Aug 16, 2014, 03:07 pm Last Edit: Aug 16, 2014, 03:54 pm by wonglokat Reason: 1
Hello Jantje,

thanks for your quick reply. I installed make from MinGW and Eclipse does find it, when I remove make I get a different error.
With the Arduino IDE, I can compile fine.
What do you mean by "Can you try with Aduino IDE 1.5.7"?

Best regards

//Edit: I switched to Arduino IDE 1.5.6-r2 and with that everything seems to work fine so far. Thanks for this great plugin!

Jantje

oeps that had to be duino IDE 1.5.6 as that one comes with the makefile.
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 -

ankur6ue

Which AVR compiler (avr-g++, avg-gcc) does this plug-in use? The one in the WinAVR directory:

On my computer:
C:\WinAVR-20100110\bin

or the one that comes with the Arduino installation?
C:\Arduino\hardware\tools\avr\bin

It should use the one that comes with ARduino otherwise the binaries generated are different and more importantly, work differently. I verified this by spending a lot of time trying to debug the MPU6050 calibration program that was being compiled using the WINAVR compiler and was behaving erratically. The same code worked fine when compiled with the Arduino compiler.

Jantje

The plugin uses arduino provided stuff.
However if you have in your path programs with the same name those may be preferred.
In most cases the FQN is used but it may be there are cases that do not use FQN in which case program with teh same name in the path may take precedence.
You can always look at the console output to verify.

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 -

Dagger2

Quote
This software sends non personalised activity data (build/upload/open serial monitor/open scope) to baeyens.it for statistical analyses of the usage of the plugin.


Where's the code that implements this? I wanted to take a look at it, but I'm not having much luck finding it.

AndyTF

Hi Jantje,

First off, I can't believe your the only person in the world who is providing software to be able to program the Duet/Due!
I found you whilst trying to follow instructions on the Duet forum about uploading configs to the board, needing to install eclipse, your plugin, etc.. so thankfully you exist and this software helps forward cutting edge hardware and software, well done!

I use MacOSX 10.9.5, downloaded Arduino IDE 1.5.8, Eclipse C/C++ Luna 4.4.1 (then finally realized I need Java SDK, not JRE, 7+!), and then from eclipse downloaded and installed the latest stable version of the arduino eclipse plugin V2 (2.2.0.1),... however when I tried to fill in the Arduino paths, the button was always greyed out and an error message came up saying it wasn't right (see attached screen captures)...  I tried installing a few different versions of Eclipse, and Java, and finally tried the nightly build of the plugin, 2.4.0.xxx, and it is finally working!

I'm not really a programmer, I know enough to find my way around the principal tabs of Marlin Fw for Arduino, to set up my 3D printers, so Duet is quite new for me (although I have a Smoothieboard too, very easy, and fast!), and the config files are so far a bit limited, I am needing to adjust varios settings in the FW Platform.h, but so far there is no easy way to upload those changes, so here I am!

Anyway, this is more of a FYI, especially seeing as the latest build does not show the issue, but I'll be making up a short Mac install post for ReprapPro (who made the Duet), so others can do it and hopefully not get stumped by this small issue as I was for a day or so!

Great work; Wish I could really take more advantage of it (although I do have a big interest in learning robotics and programming them will need something like this I'm sure!), and if you have a bitcoin address I'd love to send you the amount for an Arduino ;-)

Cheers!
Andy
:-)

PD If you prefer you could send me the address via PM, but I'd even go so far to say that maybe it would be a good idea for you to add it to your signature in your posts: if there are many others who realize that it if it wasn't for you, they wouldn't be able to connect to Arduino so easily from Eclipse, they might like to show you their appreciation that way too!

Jantje

Andy
Thanks for the nice words. Indeed it seems Duet is only compilable with the Arduino eclipse plugin. I made this plugin because I feel there is a need for more professional source code development tools with arduino that give flexibility that can not offered by the arduino IDE due to its target audience. I read up a bit on the install instructions and they proved my point.

The path issue in mac has been solved lately. It is due to a change in pathnames made by Arduino (in 1.5.7). The hard thing to fix for me was that now I needed 2 possible locations for a given platform. But it works now :-) More detailed info can be found here https://github.com/jantje/arduino-eclipse-plugin/issues/195

As to the mac install. I posted a comment on the blog and it got picked up in less than a hour :-) http://blog.think3dprint3d.com/2014/03/Setting-up-Eclipse-for-Arduino-Due-and-Duet.html

As to bitcoin. No, I do not have a bitcoin account nor do I plan to take one. I do have a paypal account and a donations page. http://www.eclipse.baeyens.it/donate.html

Enjoy your printing
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 -

Go Up