Building QT without "built-in" properties
-
Hi,
I'm trying to build a custom version of QT to compile against. Typically in our build system, we compile our binaries, publish the executables and clean the build directories.
With the QT builds we've created, the executables do not run properly unless they are in the folder they were originally compiled in.
Ideally I'd like to copy the build output and use it on another machine, but unless it's placed in the exact same folder, it won't function properly.
I can't find any way around this. How does the version of QT from the website get around this?
Thanks,
Andy -
Hi,
What do you mean by the executables do not run properly? It does'nt start? Is there any message?
PS: it's Qt, not QT, which is the short for QuickTime ;).
-
Basically, the built-in variables shown here:
http://qt-project.org/doc/qt-5.1/qmake/qmake-environment-reference.htmlThese all point to the directory where they were compiled, and that directory no longer exists.
I'm running on OSX and I'm learning here that it seems like I will need to run install_name_change on the Qt binaries to get them to run in the new folder?
Does that sound right?
-
Hi and welcome to devnet,
Have a look at the "Mac Deployment Guide":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-mac.html you'll find there what you need to know to deploy a Qt application on OS X