Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCode and DYLD_LIBRARY_PATH




I have a large application that I have been porting to Mac OS X. I have been playing with making a native XCode project for this application. The application depends on several 3rd party shared libraries. I normally use DYLD_LIBRARY_PATH to define the location of the shared libraries during the development process. XCode doesn't pick up the environment variables in my .profile and I was given a tech note that describes setting up the environment variables


http://developer.apple.com/qa/qa2001/qa1067.html

I thought I had this working but it seems to still have problems.

Failure linking new module: @executable_path/libacisstep.dylib: dyld: /Users/kgmerk/build/mac_claro/claro/claro.app/Contents/MacOS/claro can't open library: @executable_path/libacisstep.dylib (No such file or directory, errno = 2)

Indeed the specified dynamic library does not exist in the application framework. That's what DYLD_LIBRARY_PATH is for!

My environment.plist looks like

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
<key>DYLD_LIBRARY_PATH</key>
<string>/usr/local/eng_sci/cubit/verdict/verdict1.1.2/lib:/usr/local/ eng_sci/cubit/VTK/VTK-4.2.2/bin:/usr/local/eng_sci/cubit/acis/acis14.1/ bin/macho:/usr/local/eng_sci/cubit/mesquite/mesquite_08c1/lib/Mac</ string>
</dict>
</plist>


If I run the application built in XCode from a bash shell it runs correctly. Anybody have any ideas as to what I am doing wrong?

     Karl


_______________________________________________ Do not post admin requests to the list. They will be ignored. Unix-porting mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.