PDA

View Full Version : having both static and dynamic libraries?



gfunk
12th January 2007, 21:55
I have a project that links to Qt through shared libraries, and another project that I want to link to Qt with static libraries. It seems that if I want to build both though, I will have to call configure -static/-shared and nmake before each particular build. Is there a better way to set this up without having to do the costly configure/nmake operation on the entire Qt src?

camel
13th January 2007, 00:11
Is there a better way to set this up without having to do the costly configure/nmake operation on the entire Qt src?

Make and install Qt once to prefix "qt_install/static", and once to "qt_install/shared". Then just switch the path variable so that the right qmake binary is found?

b1
7th May 2007, 08:33
gfunk,

For what its worth I wanted the same result for windows and Linux. I have documented my procedure at http://rag.com.au/linux/qt4howto.html

I hope it is of some help...

Regards, B1.