[Qt-interest] Qt4 from *NIX to Windows w/static library

Andreas Pakulat apaku at gmx.de
Sun Dec 14 20:34:29 CET 2008


On 14.12.08 13:10:57, Miguel Cardenas wrote:
> 3. If it is possible to create static libs to statically link my program, do
> I need to install Qt on the other computers am gonna test my program?

Even if you link your application dynamically to Qt you don't have to
install Qt on the target machines. You just need to package the Qt library
with your app. I believe the Qt documentation on
http://doc.trolltech.com/4.4/ has a chapter about deploying your
application.

However if you find problems on those test machines you might want to have
a development environment installed to debug those problems.

> It should not be a problem to compile Qt in
> every computer, except that it takes over 3 hours at 3GHz and if I do it on
> 3 computers for windows it makes 9 hours!

Thats quite long, probably because you also built the examples and demos
which take quite some time. Under linux building just the debug version
takes about 10 minutes on my 1.7GHz machine, on windows it takes maybe 30
minutes. On windows you can only disables the examples by removing the
related lines from the projects.pro file before running configure or by
using nmake sub-src sub-tools instead of plain nmake to only build the src
and tools subdirectories.

Andreas

-- 
Beware of a tall black man with one blond shoe.



More information about the Qt-interest-old mailing list