Any ideas about how to override the install_name of /usr/local/lib on that
library ?
On Wed, Sep 21, 2011 at 1:52 AM, amine bezzarga abezz...@gmail.com wrote:
Yes I think I get it, I tried that but it doesn't work either:
install_name_tool -change /usr/local/lib/libirrklang.dylib
Use install_name_tool to do that assuming that who ever built the library
used the correct linker flags to allow you to do that. If not then you are out
of luck.
___
Mike Jackson www.bluequartz.net
Principal Software
Yes I think I get it, I tried that but it doesn't work either:
install_name_tool -change /usr/local/lib/libirrklang.dylib
./Dependencies/IrrKLangAudioEngine/bin/macosx-gcc/
./Dependencies/IrrKLangAudioEngine/bin/macosx-gcc/libirrklang.dylib
Can you tell me, what can I do to fix the problem ?
On
My guess is that the audio library has an install path of /usr/local/lib
encoded in it. Try posting tue output of otool for the actual audio
library.
-
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jack...@bluequartz.net
BlueQuartz Software
Yeah, I tried the NO_DEFAULT_PATH option but without success.
My target_link_library command look like this:
target_link_libraries(${CMAKE_PROJECT_NAME} ${OGRE_LIBRARIES}
${OGRE_PLUGIN_LIBRARIES} ${Boost_LIBRARIES} ${OIS_LIBRARIES}
${IrrKlang_LIBRARIES})
Here is the otool output of the sound
Yes. Who ever built the irrklang library has set an install_name of
/usr/local/lib on that library. So it does not matter where the library is
located. OS X thinks it is in /usr/local/lib.
You need to fix how that library is compiled and linked. Does that make
it clear what is going on?
-
Hello guys,
I added a sound library to my project, So I first created a cmake module to
find it
MESSAGE(STATUS Looking for IrrKlang...)
find_library(IrrKlang_LIBRARIES irrKlang
${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/IrrKLangAudioEngine/bin/macosx-gcc
)
find_path(IrrKlang_INCLUDE_DIRS
The issue is not about finding the library at built time, event if my
library is found in
${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/IrrKLangAudioEngine/bin/macosx-gcc and
after building is done, my app is still looking for the library in
/usr/local/lib at runtime as you can see with the otools
ok i get your point.
mmm. In others words you need something equivalent to rpath command, im
pretty sure cmake can handle this easily let me know if the following helps.
have you tried adding more options to the find_library command ??
for example have you tried this (also, with the PATHS command