Revo wrote:
I'm trying to link with libfmodex.dylib.
I have set 'other linker flags' to: -lfmodex
and have set in 'Edit Active Executable - Variables to be set in environment' 'name' as 'DYLD LIBRARYPATH' and 'value' as '/Developer/FMOD Programmers API/api/lib' which is the correct path (I think - I'm not terribly familiar with Unix (Posix paths))
You shouldn't have to mess around with DYLD LIBRARYPATH. That is for inferior operating systems. What you want to do is add '/Developer/FMOD Programmers API/api/lib' to the library search path. In command-line lingo that would be '-L/Developer/FMOD Programmers API/api/lib'. You could also just drag the library file into the Xcode window (or add it via one of the many menu items) and it should set it all up for you.
Keep in mind that the path to the library will be hard coded in the application. Your app won't run on any other computer nor will it run if you alter the path to the dynamic library. If you want, you can include the dynamic library inside your application bundle and then it will always work. I've posted instructions on how to do this.
Is there something I'm missing? Please forgive me, I'm not used to unix. And I'm pretty new to Xcode 3. I come from Windows were everything is dumbed down - set library search path in visual studio, library lib to link to, and you're good to go.
Actually, it really isn't any different in MacOS X. Both systems have pre-defined dynamic library search paths. Had you installed your library into one of those places, your original '-l' would have worked fine. Using that environment variable is an old Unix way to add user search locations for dynamic libraries. You can do the same thing on Windows.
Error Dyld Library Not Loaded Rpath Libgfortran.3.dylib Test
- Dyld: Library not loaded: @rpath/libimp5.dylib Jump to solution My student license of Intel Composer XE C 16 expired yesterday, so I downloaded the lastest Intel Composer XE C 17, only to find out it is compatible with OSX 11.0/12.0.
- Carthage: dyld: Library not loaded: @rpath/XCTest.framework/XCTest Created on 15 Sep 2015 10 Comments Source: Carthage/Carthage I use Xcode Version 7.0 (7A218) with Carthage 0.8.0.
- May 10, 2017 fixed!dyld: Library not loaded: @rpath/./libgfortran.3.dylib for install.packages('maps') for R 3.3.2 #5279 Closed Shuolongbj opened this issue May 10, 2017 4 comments.
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Library Not Loaded @rpath/libgfortran.3.dylib
Mar 12, 2008 6:49 PM