Skip to content

Reference libraries in hardware addon #1445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Lauszus opened this issue May 30, 2013 · 10 comments
Closed

Reference libraries in hardware addon #1445

Lauszus opened this issue May 30, 2013 · 10 comments
Assignees
Labels
Component: IDE The Arduino IDE
Milestone

Comments

@Lauszus
Copy link
Contributor

Lauszus commented May 30, 2013

I have written a Sanguino addon for the Arduino IDE: https://github.com/Lauszus/Sanguino that both works with Arduino 1.0.x and 1.5.x, but the problem is that there is no way to reference the Arduino libraries in version 1.5.x.
This means that you will have to include all the standard Arduino libraries within the addon in the dedicated libraries folder: https://github.com/Lauszus/Sanguino/tree/master/avr/libraries.

Wouldn't it be possible to create some kind of text file so you could tell the IDE to include the Arduino libraries for you architecture, like Wire, SPI, Servo etc for AVR, just like you can reference the Arduino core?

Regards
Lauszus

@626Pilot
Copy link

This has my vote! I wish the Arduino suite just had support for the ATMega644 from the start. The Sanguino (644-based Arduino) is used in lots of 3D printers and other things where the ATMega is a perfect platform, but you need more RAM or pins or whatever.

@damellis
Copy link
Contributor

This should be possible, I think. Have you tried with the latest 1.5.x in
GitHub (1.5.2 is missing some recent improvements and bug fixes). If it
doesn't work there, it's definitely something that should be fixed.

Cristian, do you know what the status is?

On Fri, May 31, 2013 at 3:07 AM, 626Pilot [email protected] wrote:

This has my vote! I wish the Arduino suite just had support for the
ATMega644 from the start. The Sanguino (644-based Arduino) is used in lots
of 3D printers and other things where the ATMega is a perfect platform, but
you need more RAM or pins or whatever.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1445#issuecomment-18727130
.

@Lauszus
Copy link
Contributor Author

Lauszus commented May 31, 2013

@damellis I can't actually compile the Android IDE 1.5.x after you merged the "lib-1.5-cores" branch.
I'm running Mac OS X 10.8.3. Every time I try to compile the icon just appears briefly and then it closes again.

@cmaglie
Copy link
Member

cmaglie commented Jun 3, 2013

@Lauszus
I count to solve this issue by moving the libraries from the "internal" folder hardware/arduino/avr/libraries/* to the top level folder libraries/*. Let's say that the internal folder was a temporary solution until library metadata becomes stable.

Its weird that you can't compile the latest, may you try to do both "git clean" and "ant clean" before? Also starting the IDE from command line may give some more information.

@Lauszus
Copy link
Contributor Author

Lauszus commented Jun 3, 2013

@cmaglie It's fine with me :) Any idea when you will have it done?

Yes I do exactly that. I'm using "ant run" to start the IDE the icon simply just pops up shortly and then goes away again.

When I run it it print:

BUILD SUCCESSFUL
Total time: 6 seconds

At the end, so it seems like everything has been build with success, but it clearly hasn't.

Is there any log I can send you that might help solving the issue?

@Lauszus
Copy link
Contributor Author

Lauszus commented Jun 3, 2013

When I click on the builded application the following gets printed in my console:

03/06/13 14.36.43,571 Dock[192]: no information back from LS about running process
03/06/13 14.36.44,726 com.apple.launchd.peruser.501[179]: ([0x0-0x58058].cc.arduino.Arduino[1114]) Exited with code: 3

Note that the "Dock" error only comes once in a while.

@Lauszus
Copy link
Contributor Author

Lauszus commented Oct 24, 2013

This issue is solved after all libraries was converted to the new format.

@Lauszus Lauszus closed this as completed Oct 24, 2013
@cmaglie
Copy link
Member

cmaglie commented Oct 27, 2013

Unfortunately we have to step back with the new library format format. I'l make a fix for the library search path for referenced cores for 1.5.5 release.

@cmaglie
Copy link
Member

cmaglie commented Nov 3, 2013

The latest commit should solve the issue.

@Lauszus
Copy link
Contributor Author

Lauszus commented Nov 4, 2013

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE
Projects
None yet
Development

No branches or pull requests

4 participants