Results 1 to 1 of 1

Thread: Loading library from application

  1. #1
    Join Date
    Mar 2008
    Posts
    55
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Loading library from application

    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 using XCode on Mac OS X 10.4 Tiger and Qt 4.3
    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 :

    Qt Code:
    1. install_name_tool -id @executable_path/secure.dylib Autonome.app/Contents/MacOS/secure.dylib
    2.  
    3. install_name_tool -change /Volumes/Data/subversion/RijnDaelEncryptionDLL/build/Release/secure.dylib @executable_path/secure.dylib Autonome.app/Contents/MacOs/Autonome
    4.  
    5. 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
    6.  
    7. 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
    To copy to clipboard, switch view to plain text mode 
    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
    Last edited by jpn; 2nd April 2008 at 20:45. Reason: missing tags

Similar Threads

  1. Please Help-->have few doubts with Static build in Windows !
    By Krish in forum Installation and Deployment
    Replies: 1
    Last Post: 17th March 2008, 14:37
  2. Loading Of Fonts In Application ???
    By Gaurav K SIngh in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 23rd July 2007, 14:17
  3. Replies: 11
    Last Post: 18th May 2007, 10:38
  4. Replies: 2
    Last Post: 22nd February 2007, 08:08

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.