0
0

Hi,

I got some difficulty to fix a pb that seems linked with Fmod installation.

Some information about the context :
[list:186m6c1r]- application is coming from an iOS version
– we are noob in macOS dev
– we are using Xcode 4
– I follow/adapt the link [url:186m6c1r]http://www.fmod.org/forum/viewtopic.php?f=7&t=14404[/url:186m6c1r] to install Fmod in our macOS project
– all is compiling fine (no warning)
[/list:u:186m6c1r]

Here is the pb when I launch our application (= lib is not found) :

[code:186m6c1r]tty /dev/ttys001
sharedlibrary apply-load-rules all
warning: Unable to read symbols for ./libfmodex.dylib (file not found).
warning: Unable to read symbols from "libfmodex.dylib" (not yet mapped into memory).
warning: Unable to read symbols for ./libfmodevent.dylib (file not found).
warning: Unable to read symbols from "libfmodevent.dylib" (not yet mapped into memory).
[Switching to process 15798 thread 0x0]
dyld: Library not loaded: ./libfmodex.dylib
Referenced from: /Users/Florent/Library/Developer/Xcode/DerivedData/squids_mac-avrukodbfbkjepaohfsauxxiveun/Build/Products/Debug/squids_mac.app/Contents/MacOS/squids_mac
Reason: image not found[/code:186m6c1r]

In project, libfmodex.dylib is added in "SRC_ROOT/libs/fmod/fmodex/lib". And project’s Library Path are pointing to this place too.

Could you give me some clue to find a solution ?

Thx

Florent

  • You must to post comments
0
0

According to the errors the linker is looking for libfmodex.dylib sitting next to the executable. If the library is not in this location you must tell the executable where to find it.

To do this you need to use the ‘install_name_tool’ application. If you check out any of our mac examples, in the Makefile you will see we do this to tell the executable that the FMOD dylib is in the libs directory. You can also do ‘install_name_tool’ as part of a post build process in Xcode if need be.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.