Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How do I get an openSource Library to compile as a .dylib?

How do I get an openSource Library to compile as a .dylib?
Thread Tools
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Oct 7, 2004, 08:01 AM
 
I know so little about the command line compiler tools -

I want to run a Mac OS X executable that I've got hold of - but the docs for it say that I need LibUSB (http://libusb.sourceforge.net/)

I've downloaded the source and run:
Code:
./configure make sudo make install
which installed the library into /usr/local/lib - but the executable is not happy - it appears to want the lib as a .dylib:
Code:
dyld: ./gbalink can't open library: /usr/local/lib/libusb-0.1.4.dylib (No such file or directory, errno = 2)
I've looked in the lib dir and indeed the file is not there.

Code:
Widebook:/usr/local/lib diggory$ ls -al total 15976 drwxr-xr-x 20 root staff 680 7 Oct 13:38 . drwxr-xr-x 11 root wheel 374 31 Aug 15:25 .. -rwxr-xr-x 1 root staff 2099824 4 Jul 13:55 libSDL-1.2.0.7.0.dylib lrwxr-xr-x 1 root staff 22 22 Jul 17:18 libSDL-1.2.0.dylib -> libSDL-1.2.0.7.0.dylib -rw-r--r-- 1 root staff 1304360 4 Jul 13:55 libSDL.a lrwxr-xr-x 1 root staff 22 22 Jul 17:18 libSDL.dylib -> libSDL-1.2.0.7.0.dylib -rwxr-xr-x 1 root staff 830 4 Jul 13:55 libSDL.la -rw-r--r-- 1 root staff 38036 4 Jul 13:54 libSDLmain.a -rw-r--r-- 1 root staff 77260 13 Aug 16:15 libconv_common.a -rw-r--r-- 1 root staff 1834972 13 Aug 16:15 libdirac_common.a -rw-r--r-- 1 root staff 690940 13 Aug 16:15 libdirac_decoder.a -rw-r--r-- 1 root staff 793144 13 Aug 16:15 libdirac_encoder.a -rw-r--r-- 1 root staff 1179440 13 Aug 16:15 libdirac_motionest.a lrwxr-xr-x 1 root staff 22 2 Aug 17:06 libdl.0.dylib -> /usr/lib/libdl.0.dylib lrwxr-xr-x 1 root staff 20 2 Aug 17:06 libdl.dylib -> /usr/lib/libdl.dylib lrwxr-xr-x 1 root staff 16 7 Oct 13:38 libusb -> libusb-0.1.4.4.0 lrwxr-xr-x 1 root staff 16 7 Oct 13:38 libusb-0.1.4 -> libusb-0.1.4.4.0 -rwxr-xr-x 1 root staff 46076 7 Oct 13:38 libusb-0.1.4.4.0 -rw-r--r-- 1 root staff 66024 7 Oct 13:38 libusb.a -rwxr-xr-x 1 root staff 741 7 Oct 13:38 libusb.la Widebook:/usr/local/lib diggory$
What have I done wrong? How do I get the .dylib as well
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Oct 7, 2004, 09:15 AM
 
I happened to email the author of the executable - he's since compiled libUSB into it - and sent me that version.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:14 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2