Wiring Forum
http://wiring.org.co/cgi-bin/yabb/YaBB.pl
Discussion >> General Discussion, Status >> Adding Libraries on OSX
http://wiring.org.co/cgi-bin/yabb/YaBB.pl?num=1277779306

Message started by noumenon on 06/29/10 at 02:41:46

Title: Adding Libraries on OSX
Post by noumenon on 06/29/10 at 02:41:46
I am trying to add libraries from another folder into a file via #include but I cannot find the correct path to store the files in order to add them.  I have tried within the package contents and in Documents/Wiring/Libraries but the program appears to be unable to find the correct files.
I am using version 26.

Where do the library, or any .h files need to be placed?

Title: Re: Adding Libraries on OSX
Post by barragan on 07/01/10 at 17:51:59
hi libraries can be stored in Documents/Wiring/libraries
The distributed Wiring libraries can be found by holding the control key selecting the Wiring icon, then click on Show package contents then open Contents / Resources / Java / libraries you could also put your library in there if that's what you want. Let me know.


Title: Re: Adding Libraries on OSX
Post by noumenon on 07/05/10 at 17:41:48
I have tried placing the libraries in Documents/Wiring/libraries as well as within the package and both times the only way to point to them properly within the code is by using the exact path ie) #include </Users/craig/Documents/Wiring/libraries/file.h>

This is not ideal because I am working on the code on my home computer and would like to be able to transfer it easily to another computer to coordinate work with another student.

Title: Re: Adding Libraries on OSX
Post by barragan on 07/05/10 at 18:21:13
That's odd, this is not the way libraries work, could you please send me by email a zip file with the library you are using? Just a minimum code to reproduce the problem. Include files etc.
Wiring libraries work as you expect them to work, so it is strange for me what you're describing.
Please let me know.

Wiring Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.