We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › can someone please compile a java library for me
Page Index Toggle Pages: 1
can someone please compile a java library for me? (Read 2187 times)
can someone please compile a java library for me?
Aug 15th, 2009, 7:11pm
 
I have a lot to learn about working with Java, including how to compile a library.

There is a library someone made that is a wrapper for a dll that can interface to an ftdi chip. This can be used so that Processing can talk to a large array of leds via a simple ftdi chip.

The link to the code source is here: https://jd2xx.dev.java.net/source/browse/jd2xx/

The examples of using the library (and links to compiled windows code):
http://bleyer.org/jd2xx/

However I need a version compiled for OSX. Can anyone do this for me?? Please http://processing.org/discourse/yabb2/yabbfiles/Templates/Forum/processing_one/grin.gif

(it could be useful for other people too)
Re: can someone please compile a java library for me?
Reply #1 - May 18th, 2010, 12:49pm
 
I'd like to bump this topic. I'm not interested in this particularly library, but like intellijel I'd love to learn how to compile a java library. Is it only possible in Eclipse?
Re: can someone please compile a java library for me?
Reply #2 - May 18th, 2010, 2:25pm
 
Quote:
I'd love to learn how to compile a java library.

Do you mean compile code created by someone else into a library or are you interested in creating your own?

Quote:
Is it only possible in Eclipse?

the short answer is no but (isn't there always a but? Roll Eyes ) the nice people at Processing have made it easier to use Eclipse by providing a nice Eclipse library starter project.



Re: can someone please compile a java library for me?
Reply #3 - May 19th, 2010, 4:30pm
 
To answer your first question. Both. I've rewritten some of the Java on some people's libraries (notably Penner's Easing albeit is out of date now) and would like to see the changes I made. Ha! But also, I'd like to extend the MidiBus / proMidi libraries for other purposes.

I noticed the Eclipse library to make it easier under tools. I guess I'll just have to get it and tinker with it. I use the Processing Bundle for textmate, which is great for making projects, but am not really sure how i would go about writing a library for it.

Thanks for the advice Quark
Re: can someone please compile a java library for me?
Reply #4 - May 20th, 2010, 1:49am
 
Although most people provide the source code for their libraries it is not always made available in a format that can easily be imported into Eclipse.

In this case I would recommend creating a new Eclipse project using the libray template from http://dev.processing.org/libraries/template.html and then copy the library source files into this project.

To create your own library then download the Eclipse template from the link above and then create your code.

To build your library in Eclipse then from the menus select Window | Show View | Ant this will open a pane on the right hand side. Drag the build.xml file from the Project view under resources to the Ant pane , click on the + to expand the view and double click on the Build target. This will ultimatetly create the zip file that can distribute to others.

Before doing this you will want to edit the build.xml file for your specific library settings.

Also the the Eclipse project settings must be Java 1.5 compliant (not 1.6) if you want to be able to make it available for others to use.

Also JRE System Library in the Eclipse project must point to a jdk not a jre for the build to work. Otherwise it will hang up when it tries to build the javadocs.

Hope this helps.
Page Index Toggle Pages: 1