• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: problems linking with dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems linking with dylib


  • Subject: Re: problems linking with dylib
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 1 Jul 2005 10:53:48 -0700

On Jul 1, 2005, at 1:12 AM, Kaveh Kardan wrote:

/usr/local/lib/gauche/0.8.4/powerpc-apple-darwin7.8.0/libgauche.dylib


which I drag into the External Frameworks and Libraries of XCode, but when building, I get the following error:


Libtool /Users/kaveh/Development/bronze/build/libbronze.a

    cd /Users/kaveh/Development/bronze

    /usr/bin/libtool -static -o /Users/kaveh/Development/bronze/build/libbronze.a -L/Users/kaveh/Development/bronze/build -L/usr/lib/gcc/darwin/3.3 -L/usr/local/lib/gauche/0.8.4/powerpc-apple-darwin7.8.0 /usr/lib/libstdc++.a -framework OpenGL -framework QuickTime -framework GLUT -framework CoreServices -framework OpenAL -framework Foundation gauche -framework Carbon -filelist /Users/kaveh/Development/bronze/build/bronze.build/bronzelib.build/Objects-normal/bronze.LinkFileList

/usr/bin/libtool: can't open file: gauche (No such file or directory)


As was pointed out, the build like should have -lgauche, not just 'gauche'.  Could you provide me with your project file so I can see why this is happening?

Two questions:


1) Is there some other way of linking with a dylib?


You seem to be doing things the right way as far as you describe.

2) I also tried to manually create a Framework for the dylib, but XCode ignores it when linking.  Is there a command-line way of generating a Framework from a dylib?  Apple's developer site contains no documentation to this effect, only explaining how to build a Framework using XCode.


A framework is just a naming and file organization convention.  Given FOO.dylib, a framework is just a folder and symlink structure like this:

FOO.framework
    FOO -> ./Versions/Current/FOO
    Headers -> ./Versions/Current/Headers
    Versions
        Current  -> A
        A
            FOO
            Headers
                FOO.h
                OtherFooHeader.h

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >problems linking with dylib (From: Kaveh Kardan <email@hidden>)

  • Prev by Date: Copy Headers Build Phase is Flattening my directories
  • Next by Date: Re: Xcode 2.1 debugger hanging at breakpoint
  • Previous by thread: Re: problems linking with dylib
  • Next by thread: Re: Don't understand this compiler warning [solved]
  • Index(es):
    • Date
    • Thread