Static Qt libs PET

I have created a PET package with static Qt libs. This is for use in Quirky and Wary.

It enables a Qt-based application to be linked with static Qt libs (meaning that the Qt shared libs are not needed at run-time).

The package is 'qt4_static_DEV-4.5.3.pet', but I won't put it into the 'devx' as it is 23MB. I will upload it soon to ibiblio.org.

I tested it by compiling a couple of applications, but I had to do the final link step in both cases manually. I had to add this:

-lpthread -lz -lm -lgthread-2.0 -lrt -lglib-2.0 -ldl -L/usr/X11R7/lib -lpng -lfreetype -lSM -lICE -lXrender -lfontconfig -lXext -lX11 -lgobject-2.0

I don't know how to force the Qt configure/make enviroment to automatically apply these. It seems, as they are static libraries, the shared library dependency information provided in the .la and .pc files is ignored.


Posted on 18 Jun 2010, 23:18


No comments posted yet.