lance Guest |
Quote
|
2018-09-17 11:51:47 |
|
Good Day
I get the following error at run time
dyld: Library not loaded: /usr/local/lib/libirrklang.dylib Referenced from: /goinfre/lchant/Desktop/Bomerman-1/build/./Bomberman Reason: image not found when running the example makefiles as well as trying to link to the libraries with cmake.
|
niko Moderator |
Quote
|
2018-09-17 17:34:36 |
|
See here: https://ambiera.com/forum.php?t=...
|
lance Guest |
Quote
|
2018-09-18 07:34:47 |
|
That is mostly for xcode I am not compiling with xcode at all but compiling with the terminal on mac which compiles ok then when i run the program it fails, I have tried to do what was said for xcode but still doesn't work when compiling on terminal
|
lance Guest |
Quote
|
2018-09-18 07:39:33 |
|
>$ g++ main.cpp -o example -I"../../include" -L"/usr/lib" ../../bin/macosx-gcc/libirrklang.dylib -pthread
>$ ./example dyld: Library not loaded: /usr/local/lib/libirrklang.dylib Referenced from: /goinfre/user/Downloads/irrKlang-64bit-1.6.0/examples/01.HelloWorld/./example Reason: image not found zsh: abort ./example
this is the output from the example projects
|
lance Guest |
Quote
|
2018-09-18 08:27:12 |
|
Ok
I managed to figure out what needs to be done I need to run this command after the executable is made
install_name_tool -change /usr/local/lib/libirrklang.dylib @executable_path/_deps/irrklang/bin/macosx-gcc/libirrklang.dylib a.out
thanks for the reference to the other thread
|