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

slobrewer
Thanks for the extensive explanation. It makes more sense now to me.
I don't understand why the old versions don't want to download. I'll take a look into that but that is very low priority.
Probably not related but you should not do step 8. Basically setting this option should set the paths to the default options which doesn't seem to work on mac.
As to debugging: Can you provide me the info in the "error log" in eclipse (window->show view->other->general->error log) there should be some info popping up there each time you click the edit button.

If someone knows a good legal vmware image I could download which has a mac preinstalled; let me know. This way I can test it myself and get rid of the malfunctions on mac. It has to be compatible with vmware version 7 as I do not own a license for 8.

Best regards
Janje
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: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, that surfaces the error.  Looks like it's an NPE.

Message:
Unhandled event loop exception

Exception Stack Trace:

java.lang.NullPointerException
   at it.baeyens.avreclipse.ui.preferences.PathSettingDialog.addSystemPage(PathSettingDialog.java:177)
   at it.baeyens.avreclipse.ui.preferences.PathSettingDialog.createDialogArea(PathSettingDialog.java:141)
   at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
   at org.eclipse.jface.window.Window.create(Window.java:431)
   at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
   at org.eclipse.jface.dialogs.StatusDialog.create(StatusDialog.java:203)
   at org.eclipse.jface.window.Window.open(Window.java:790)
   at it.baeyens.avreclipse.ui.preferences.AVRPathsFieldEditor$ButtonSelectionListener.widgetSelected(AVRPathsFieldEditor.java:94)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4134)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
   at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3980)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3619)
   at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
   at org.eclipse.jface.window.Window.open(Window.java:801)
   at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215)
   at org.eclipse.ui.internal.handlers.ShowPreferencePageHandler.execute(ShowPreferencePageHandler.java:58)
   at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
   at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
   at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
   at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210)
   at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
   at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
   at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:145)
   at org.eclipse.e4.ui.workbench.renderers.swt.cocoa.CocoaUIHandler.runCommand(CocoaUIHandler.java:799)
   at org.eclipse.e4.ui.workbench.renderers.swt.cocoa.CocoaUIHandler.access$9(CocoaUIHandler.java:787)
   at org.eclipse.e4.ui.workbench.renderers.swt.cocoa.CocoaUIHandler$8.widgetSelected(CocoaUIHandler.java:618)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4134)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
   at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3980)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3619)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

Session Data:

eclipse.buildId=I20120608-1400
java.version=1.6.0_33
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.cpp.product -keyring /Users/dlouw/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.cpp.product -keyring /Users/dlouw/.eclipse_keyring -showlocation

Let me know if there's anything else I can do to help troubleshoot.
Logged

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

slobrewer
A quick update
The stacktrace you send indicated that the fix :"Fixed a bug on MAC when AVRPaths searches for the location of G++ AvrDude and others. (no MAC search as been added but the POSIX is no longer used in case of mac)"  is the root cause for your problem.
It must be with all macs, as you fail to download the previous version I consider this as an urgent patch.
Unfortunately I have been working to get Leonardo to work with the plugin and those are some serious changes. So I can't just revert and release.
in short I plan to release a version late tonight (CET), failing that somewhere this weekend.
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: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Awesome, thanks for the help.
Logged

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

Has anyone set this up on Ubuntu successfully?  I'm running 12.04, Eclipse Indigo (from the Eclipse website, not the repos) and did get the plugin installed, but need some help configuring it.  For instance, what is the Private Library Path?

Thanks,
Matt
Logged

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

Matt
I know people have it installed on Ubuntu.

I updated the installation section and added something on "Private Library Path". It is not yet published so I put it here for you:
Note that the instructions are a bit outdated from 1.2.2 onwards.
   For instance in the settings page a private library folder is requested. This setting should point to a location where you down loaded Arduino libraries.
   If you haven't down loaded Arduino libraries yet do as follows
   1) Consider using the Arduino IDE. (strongly advised)
   2) Point it to a location where you can download Arduino libraries. (Strongly disadviced)
   
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: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry if I'm being obtuse, but are you advising me to use the Arduino IDE instead of Eclipse, or use the path to the IDE in the "Private Library Path" field?
Logged

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

All
I released version 1.2.4.
This version has Leonardo support and should be configurable on Mac again.

Matt
Eclipse is a heavy IDE. Basically if you do not use private libraries I see no reason to go to eclipse. The features will be more a burden than a help.
For small simple programs I still tend to use the Arduino IDE.

Best regards
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 -

Auckland, NZ
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If anyone else is trying to make all this work with Attiny ICs or Teensy boards I got it working and documented my technique here http://mrkimi01.blogspot.com/2012/07/eclipse-avr-attiny-teensy.html. It wasn't too hard, but it took me a little while to work through.
Logged

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

Sorry to be the dumbest guy around here, but I can't get going at all, because I can't download the plugin because none of the links seem to work...

from the original post November 20 ...

2.1) download the code from here http://www.eclipse.org/downloads/

gives a short page of plugins for Juno none of which seem to be this one, and
from post on July 11 the following lines all give 404s...

http://www.baeyens.it/eclipse/update
http://www.baeyens.it/eclipse/update site
http://eclipse.baeyens.it/update (does not seem to work)
http://eclipse.baeyens.it/update site

I'm running Firefox in Xubuntu and have installed Eclipse Indigo and Arduino IDE 1.0 and would much appreciate a pointer on what to do next.
Logged

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

By the way... ref the advice above... the reason I want to use the Eclipse plugin is that Eclipse provides excellent navigation around source files with more than a few classes/methods. I've used Eclipse for Java and Python for ages and found the Arduino IDE a decade or two behind (in terms of user interface: no complaints about support for the products). 
Logged

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

hamiljf
2.1) download the code from here http://www.eclipse.org/downloads/
the link points to the latest versions to download. The latest version is Juno but Juno does not seem to work on all OSes.
On the page(on the left) there is a section related links that point to older versions. There you'll find a link to "Eclipse Indigo (3.7)" pointing to the indigo page where you can click the download where you can select the C++ version leading you to http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr2

from post on July 11 the following lines all give 404s...

http://www.baeyens.it/eclipse/update
http://www.baeyens.it/eclipse/update site
http://eclipse.baeyens.it/update (does not seem to work)
http://eclipse.baeyens.it/update site
Once you have downloaded eclipse go and read the pages at http://eclipse.baeyens.it/ on how to install the plugin.
Basically you should not point your browser to these locations but the eclipse installer.
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 -

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

Roger
Thanks for the blog post.
I'll look into making it easier with the plugin when I have some free time.
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 -

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

Jantje

Thanks for the clarification... figured out what you meant and tried it...

the source site was set to
Code:
http://www.baeyens.it/eclipse/update site/
found 1.2.0 under Arduino

and got the following error messages...

Code:
An error occurred while collecting items to be installed
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Artifact not found: osgi.bundle,it.baeyens.arduino.common,1.1.0.5.
http://www.baeyens.it/eclipse/update%20site/plugins/it.baeyens.arduino.common_1.1.0.5.jar
Artifact not found: osgi.bundle,it.baeyens.arduino.core,1.1.1.
http://www.baeyens.it/eclipse/update%20site/plugins/it.baeyens.arduino.core_1.1.1.jar
Artifact not found: org.eclipse.update.feature,it.baeyens.arduino.feature,1.2.0.
http://www.baeyens.it/eclipse/update%20site/features/it.baeyens.arduino.feature_1.2.0.jar
Artifact not found: osgi.bundle,it.baeyens.avreclipse.core,1.0.6.
http://www.baeyens.it/eclipse/update%20site/plugins/it.baeyens.avreclipse.core_1.0.6.jar
Artifact not found: osgi.bundle,it.baeyens.avreclipse.core.managedbuildsystem,1.0.4.
http://www.baeyens.it/eclipse/update%20site/plugins/it.baeyens.avreclipse.core.managedbuildsystem_1.0.4.jar
Artifact not found: osgi.bundle,it.baeyens.avreclipse.ui,4.0.6.
http://www.baeyens.it/eclipse/update%20site/plugins/it.baeyens.avreclipse.ui_4.0.6.jar

So tried the uncategorized node and found version 1.2.4 and that seems to have worked.
Logged

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

Further clarification, using xubuntu
1.  Arduino IDE under linux is /usr/share/arduino
2.  Private library path is /usr/share/arduino/libraries (correct? - see below)
3.  In setting up a new sketch, you have to specify a port eg '/dev/ttyACM1' otherwise it won't finish, even though you don't need a port until later

The private library path is required, even if you don't have one, so now I have two ways to access the Arduino libraries.

So finally got a more or less clean compilation, but found (and this surely is not your problem) that 'Wire.cpp' cannot find 'twi.h' . I think the source should have specified "utility/twi.h" but I'm not sure yet.
Logged

Pages: 1 ... 6 7 [8] 9 10 ... 31   Go Up
Jump to: