PDA

View Full Version : Erroneous paths of qt libraries on Mac



Feoggou
27th October 2011, 09:15
Hello.

I'm having the following situation: I have built a Qt application on my Mac (it uses certain Qt libraries, like QtSql - it links to them dynamically). The problem is that when I ship the application to another computer (or perhaps it is only "other user"), the application won't execute because of an error, which says that QtSql.framework is missing. The most annoying thing is that the expected path is /Users/MyUserName/QtSDK/path_to_the_lib_folder. I've gotten to the point where I don't know what I can do anymore to fix it. I've heard that I can change the default hardcoded paths using a qt.conf file (and added the frameworks into the application bundle). I used it, and in a log file, the QLibraryInfo tells me the correct, modified path. But when I ship it to another computer, I still see the error with "/Users/MyUserName/QtSDK/the_rest_of_the_path" that tells me that the qt framework was not found. I thought that perhaps I should add the .la file of the framework too, and then thought that I must modify it, etc. but everything I tried, nothing worked!

Please, help me! I'm desperate. I need to solve this in a rather short time, and I'm out of ideas. I've also googled for help, but didn't find anything useful.

Feoggou
4th November 2011, 08:40
I have found the answer to my problem: macdeployqt.