PDA

View Full Version : deploying centrally custom-build Qt libs to different developer PCs



tangens
30th April 2010, 16:52
Hi,

I am trying to deploy a centrally build custom version of Qt to different developer pcs.
This means I want to build Qt once on 1 machine (it needs some custom compilation/linker options to be compatible with our legacy code),
and then deploy that to all our developers.
I do not want that every developer has to build that tweaked Qt on his/her PC.

We even need to have different flavours of Qt on a single PC (32bit and 64 bit for example).

Does somebody have experience with this?
It looks that Qt (qmake for example) has some hardcoded directories in it.
I thought that I could overrule them by putting a qt.conf into the directory where qmake.exe resides, but this doesn't seem to help...
Any ideas?

Thanks!

squidge
30th April 2010, 17:03
By far the easiest way would be to compile on one PC and then simply copy that directory to each other PC. If you really want Qt to be installed into different directories then you can use qt.conf to specify the installation directory by placing it in the "bin" directory. A typical content file might be:



[Paths]
Prefix = "c:\\Qt\\my2009.03Static\\qt\\"

tangens
3rd May 2010, 12:33
first tests seem to work.
I also have to set following environment variable apparently:

set QMAKESPEC=win32-msvc2005

Thanks!