PDA

View Full Version : Static build of Qt-4.6.3 fails with MinGW



gib
18th September 2010, 03:32
I'm trying to make a static build of Qt-4.6.3 on Windows with MinGW tools (i.e. opensource). I get this compile error:

mingw32-make[3]: Entering directory `C:/Qt/4.6.3/src/activeqt/container'
c:\Qt\4.6.3\bin\uic.exe qaxselect.ui -o ui_qaxselect.h
g++ -c -Os -momit-leaf-frame-pointer -Wall -fno-exceptions -fno-rtti -DUNICODE -
DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPO
RT -DQT_NO_DYNAMIC_CAST -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -
I"..\..\..\include" -I"c:\Qt\4.6.3\include\ActiveQt" -I"tmp\moc\release_static"
-I"." -I"c:\Qt-static\mkspecs\win32-g++" -o tmp\obj\release_static\qaxbase.o qax
base.cpp
In file included from qaxbase.cpp:45:
qaxobject.h:44:30: error: ActiveQt/qaxbase.h: No such file or directory

Is it possible to build Qt statically with MinGW? If so, how? If it isn't possible to build with ActiveQt (which I don't need), is there a way to exclude it?

Thanks
Gib