Go Down

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

kolban

I am new to the Eclipse plugin and got it running with Eclipse Mars, Arduino IDE 1.6.5 and Windows 7.  As I perform tasks, I write them down.  Here is a link to my notes on what I had to do to get the solution going.

http://neilkolban.com/tech/building-arduino-apps-in-eclipse/

Neil

keesbakker

@jantje The following makes a difference. In my boards.txt I have:

sodaq_mbili.build.core=arduino:arduino

With that the plugin goes to the code at line 436 in ArduinoHelpers.java, and then you'll get the "AVR" instead of the "avr".

We have this colon syntax because I was reading Arduino-IDE-1.5-3rd-party-Hardware-specification. At the end it talks about how to
Quote
use the "arduino" core from the "arduino" vendor
. And notice the
Quote
Using this syntax allow us to reduce the minimum set of files needed to define a new "hardware" to just the boards.txt file.

Jantje

have a Linux environment, and I need an IDE which is more professional than Arduino IDE
Similar to my situation.

took over maintenance of the AVR Eclipse plugin (without indepth knowledge of Java or plugins, but it turned out to be a cumbersome environment
Do you know I started from the avr eclipse plugin. I have been talking to thomas (if i recall the name correctly) theavr eclipse plugin developer in those days.
Then I decided that it was easier to drop the avr eclipse plugin. The argument was not the quality of the code but there are plenty of features in the avr eclipse plugin simply not needed for Arduino development.
The "without avr eclipse plugin included" version is V2 and can be run next to avr eclipse plugin. This makes you have kind of best of both worlds.

developer of the SODAQ libraries and board configs
I had a look at the SODAQ boards. Looks nice. I don't have any.

professional embedded software developer (35+ year, an old fart so to speak :-)
rofl. I beat you here.... by far.

Anyways arduino:arduino is not supported by the plugin see this github issue https://github.com/jantje/arduino-eclipse-plugin/issues/158

For something else and with the change for the boardsmanager I considered to implement it but it turned out that even with the changes for the boards manager, it is not that easy. So I stopped searched for an easier way found it and deleted the code.

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 -

Jantje

@niel
You documented how to make 1.6.4 compatible with the plugin.  :)
Just wondering ... why didn't you use the nightly?
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 -

Jantje

@Jantje, I'm using a fresh install of the nightly build in Juno.
The latest nightly was reported as working on the mac.

Just wanted to share a problem and workaround for an issue I had using the plugin on Mac:
I installed the plugin and accidentally selected the Arduino IDE 1.6.4 (which I'd forgotten was not supported).
I'm nit sure how you can forget 1.6.4 is not supported as the plugin tells you so  :o

I then created a new project but the build couldn't find the avr-g++ command because the Arduino.app path was missing.
This was an issue but has been fixed. Are you sure you have the latest version of the nightly?

I changed the plugin settings to use Arduino IDE 1.6.1 but the old paths were still being used to Arduino IDE 1.6.4 in the org.eclipse.cdt.core.prefs file (which I believe is used to generate the makefile).
To fix this and get the paths .....
You need to go into project properties->arduino and select apply. This should fix this.
As described here http://eclipse.baeyens.it/how_to.shtml#/n

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 -

kolban

@Jantje,
I'm a newbie but I wanted to get the thing running on the new Eclipse Mars.  Do the "nightlys" come as plugins into a bare Eclipse shell?  Is there a tutorial for getting them going?

I think I used the latest version of the plugins that were able to be found at the Eclipse repository at:

http://www.baeyens.it/eclipse/stable-win.html

Is there a repository URL for nightlys?

My primary goal is not to learn Eclipse plugin development but rather to exploit the power of the Eclipse framework.

Your project is awesome and my goal was to push the ball forward in what ever small way I could ... hence the time spent on the docs for the benefit of others.  If there are improvements I can make to the docs or web sites ... I'll be delighted to continue to donate time to that end.  Just let me know what I might be able to contribute and I'll jump right in.

Neil

Jantje

@neil
There is a build engine that builds the product and the plugin every night. if there has been a change the nightly update site and the product page get updated and the website. For linux the info of the nightly is here http://eclipse.baeyens.it/nightly-linux.html

Please read through the web site. There is already plenty of information but there is always room for more or for better.

Note that the website itself is also in the github repository. So improvements can be brought by simple pull requests.

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 -

jsaven

@Jantje
Quote
I'm nit sure how you can forget 1.6.4 is not supported as the plugin tells you so
I've installed the plugin a few times now and, well, I've become a little lazy in ready dialog boxes... I know, my fault.

Quote
This was an issue but has been fixed. Are you sure you have the latest version of the nightly?
This is the first time I've installed it in Juno, and I used this URL:
Code: [Select]
http://www.baeyens.it/eclipse/nightly.

Quote
You need to go into project properties->arduino and select apply. This should fix this.
Thanks for pointing that out, I'll be more careful to make sure I do that next time.

Everything seems to be working fine now anyway.
Thanks heaps.

keesbakker

Anyways arduino:arduino is not supported by the plugin see this github issue https://github.com/jantje/arduino-eclipse-plugin/issues/158

For something else and with the change for the boardsmanager I considered to implement it but it turned out that even with the changes for the boards manager, it is not that easy. So I stopped searched for an easier way found it and deleted the code.
Ah, thanks for point to issue #158.

Hmm, too bad that you have given up on it, because it makes the plugin unusable for me :-(
Well, OK, I can find a work-around for myself. But it will be a hard to explain work-around for other SODAQ users. And Sparkfun, and Adafruit, etc.

But hey, this is open source. If you want something you can do it yourself. :-) The only(!) problem is to find time.

Go Up