0
0

I’m running Mac OS X 10.6.3 with Xcode 3.2.2. When I add the FMOD library and try to run I get this error in the console at startup and my application will not run.

[code:2g1cgoqr]dyld: Library not loaded: ./libfmodex.dylib
Reason: image not found[/code:2g1cgoqr]

  • You must to post comments
0
0

You need to copy libfmodex to the same directory as your executable. This may be inside an app bundle, in which case you have to right click on the .app, select ‘display contents’ and copy libfmodex into the MacOs subdirectory.

  • You must to post comments
0
0

Out of the box the FMOD dylib should be next to your executable, if you want it to be elsewhere you will need to use install_name_tool. Check the makefiles for the provided examples if you want to see that in use.

  • You must to post comments
0
0

i am running the same configuration, and having the same issue:
iMac 27" quad-core, OSX 10.6.3, Xcode 3.2.2 (64bit)
the examples in "FMOD Programmers API Mac" load into Xcode, and "build/run" without problem, but launching, say, the "submixing" executable gives error message:

dyld: Library not loaded: ./libfmodex.dylib
Referenced from: /Developer/FMOD Programmers API Mac/examples/submixing/build/Debug/submixing
Reason: image not found
Trace/BPT trap
logout

however, libfmodex.dylib is also in that directory, as seems it should be, according to mathew’s post …

the Run Script seems to do the recommended copy procedure:
cp ../../api/lib/libfmodex.dylib .
cp -f "$TARGET_BUILD_DIR/$PRODUCT_NAME" .
cp ../../api/lib/libfmodex.dylib "$TARGET_BUILD_DIR"
cp -rf ../media "$TARGET_BUILD_DIR/../"

and even running the Make file from the Terminal App (which includes the
install_name_tool -change ./libfmodex.dylib ../../api/lib/libfmodex.dylib
command) … results in exactly the same error and logout.

SO, uh, how the heck are you supposed to build the application so that it runs outside of Xcode???

  • You must to post comments
0
0

If you run the makefile in the submixing directory you can launch the resulting example directly with ./example

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.