Taglib taking static build path on mac .how to make it dynamic .
-
Hello,
I am facing a problem with taglib on mac OSX. This is taking static path where I was compiled taglib,
Step to compile libtag.dylib
Step 1: I download the Taglib 1.6.3 and save this on disktop under folder taglibDy13
/user/ngtech/desktop/taglibDy13/Taglib
Step 2: I open the cmake 2.8 GUI and select the above path in source and same path in Output and set this conditions.
CMAKE_BUILD_TYPE=Release
CMAKE_OSX_ARCHITECTURE=x86_64
CMAKE_OSX_DEPLOYMENT_TARGET=10.6
Enable static = false
Then I click on generate button .
Step 3 : I open terminal and run this commands
Cd /user/ngtech/desktop/taglibDy13/taglib
Make
Then I found a libtag.dylib at this path
user/ngtech/desktop/taglibDy13/taglib
Now I again build taglib with this condition
CMAKE_BUILD_TYPE=Release
CMAKE_OSX_ARCHITECTURE=x86_64
CMAKE_OSX_DEPLOYMENT_TARGET=10.6
Enable static = true
Now I copies the copy the taglib folder and put it in my project , this is working fine on my machine , but when I delete “taglibDy13” from location this is creating Error
Library not loaded: /user/ngtech/desktop/taglibDy13/taglib/libtag.1.dylib.
Can some one tell me how can I make this library distributed so that this will take dynamic path when I install my project on other machines.
I already set paths in .pro file@1. INCLUDEPATH +="taglib-1.6.3/include"
2. LIBS += "taglib-1.6.3/libtag.1.6.3.dylib"
@