Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, April 2008
Loading library onto application


Message 1 in thread

I've created my application bundle with qtdeploy and it works fine on the
developement envirement. But when I execute it on test enviroment I've a
problem to load a library that I'm using in my application. I'm on Mac OS X
10.4 Tiger 

In my application I must load library but with the QLibrary load method
returns always false otherwise the application find the library in the right
path.

I've tried to link the library with the application with :

 

install_name_tool -id @executable_path/secure.dylib
Autonome.app/Contents/MacOS/secure.dylib

 

install_name_tool -change
/Volumes/Data/subversion/RijnDaelEncryptionDLL/build/Release/secure.dylib
@executable_path/secure.dylib Autonome.app/Contents/MacOs/Autonome

 

install_name_tool -change
/Volumes/Dev/Library/Frameworks/QtCore.framework/Versions/4.0/QtCore
@executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
Autonome.app/Contents/MacOS/secure.dylib

 

install_name_tool -change
/Volumes/Dev/Library/Frameworks/Qt3Support.framework/Versions/4.0/Qt3Support
@executable_path/../Frameworks/Qt3Support.framework/Versions/4.0/Qt3Support
Autonome.app/Contents/MacOS/secure.dylib

 

and I've the library referenced to the application but I always have this
error :

QLibrary::load_sys: Cannot load
/Volumes/Data/Autonome_/Autonome.app/Contents/MacOS/secure
(dlopen(/Volumes/Data/Autonome_/Autonome.app/Contents/MacOS/libsecure.dylib,
1): image not found)

 

Do's anyone hava an idea.

Many thanks