Hi,

I have a program using the QLibrary to load some libraries dynamically in code. At first, I copied the program and its libraries to a directory, created a script file to set some environment variables like PATH, DYLD_LIBRARY_PATH,... then run that script file from Terminal window to start the application, it works well.

But now, I want my application is able to be started from Finder window by double-clicking. So, I copied all libraries of the application to the Frameworks directory and used install_name_tool as mentioned in the document of Trolltech. Everything is ok but the libraries loaded by QLibrary don't work more, the QLibrary::load() method always return false. I have tried some different paths to those libraries in code but nothing changes.

Is there anyway to load the libraries in Frameworks directory using QLibrary?

Any help is appreciated.

Thanks very much.