Hello,
I try to make static build QT 4.7.2 on windows XP (SP3, 32bit).
I downloaded http://get.qt.nokia.com/qt/source/qt...-src-4.7.2.zip and just run:
configure -opensource -confirm-license -no-exceptions -release -static -platform win32-g++ -openssl -nomake examples -nomake demos -no-style-motif -no-style-cde -no-qt3support -I c:\usr\OpenSSL-Win32\include -L c:\usr\OpenSSL-Win32\lib\MinGW
and than:
mingw32-make
After some time I got this error:g++ -static -static-libgcc -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-subsystem,windows -o ..\..\bin\qmlviewer.exe object_script.qmlviewer.Release -L"c:\Qt\4.7.2-static\lib" -L"c:\Qt\4.7.2-static\lib" -lmingw32 -lqtmain -lQtDeclarative -lQtOpenGL -lQtScript -lQtSvg -lQtSql -lQtNetwork -lglu32 -lopengl32 -lQtGui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 -Lc:\usr\OpenSSL-Win32\lib\MinGW
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qpaintengineex_opengl2.o) :qpaintengineex_opengl2.cpp:(.text+0x3a40): undefined reference to `_imp___Z16qt_imageForBrushib'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qpaintengine_opengl.o):qp aintengine_opengl.cpp:(.text+0x35e7): undefined reference to `_imp___Z16qt_imageForBrushib'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qpixmapdata_gl.o):qpixmap data_gl.cpp:(.text+0x13d): undefined reference to `_imp___Z14qt_defaultDpiXv'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qpixmapdata_gl.o):qpixmap data_gl.cpp:(.text+0x15e): undefined reference to `_imp___Z14qt_defaultDpiYv'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qpixmapdata_gl.o):qpixmap data_gl.cpp:(.text+0x1d7): undefined reference to `_imp___Z14qt_defaultDpiXv'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qpixmapdata_gl.o):qpixmap data_gl.cpp:(.text+0x1de): undefined reference to `_imp___Z14qt_defaultDpiYv'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qglpixmapfilter.o):qglpix mapfilter.cpp:(.text+0xf28): undefined reference to `_imp___Z13qt_halfScaledRK6QImage'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qglpixmapfilter.o):qglpix mapfilter.cpp:(.text+0x145d): undefined reference to `_imp___Z13qt_halfScaledRK6QImage'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qglpixmapfilter.o):qglpix mapfilter.cpp:(.text+0x173e): undefined reference to `_imp___Z12qt_blurImageR6QImagedbi'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qglpixmapfilter.o):qglpix mapfilter.cpp:(.text+0x1d06): undefined reference to `_imp___Z13qt_halfScaledRK6QImage'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qglpixmapfilter.o):qglpix mapfilter.cpp:(.text+0x1df0): undefined reference to `_imp___Z17qt_memrotate90_glPKjiiiPji'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qglpixmapfilter.o):qglpix mapfilter.cpp:(.text+0x219a): undefined reference to `_imp___Z12qt_blurImageR6QImagedbi'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qglframebufferobject.o):q glframebufferobject.cpp:(.text+0x4df): undefined reference to `_imp___Z14qt_defaultDpiXv'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qglframebufferobject.o):q glframebufferobject.cpp:(.text+0x511): undefined reference to `_imp___Z14qt_defaultDpiYv'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qglpixelbuffer.o):qglpixe lbuffer.cpp:(.text+0x1eb): undefined reference to `_imp___Z14qt_defaultDpiXv'
c:\Qt\4.7.2-static\lib\libQtOpenGL.a(qglpixelbuffer.o):qglpixe lbuffer.cpp:(.text+0x21d): undefined reference to `_imp___Z14qt_defaultDpiYv'
collect2: ld returned 1 exit status
mingw32-make[3]: *** [..\..\bin\qmlviewer.exe] Error 1
mingw32-make[3]: Leaving directory `C:/Qt/4.7.2-static/tools/qml'
mingw32-make[2]: *** [release] Error 2
mingw32-make[2]: Leaving directory `C:/Qt/4.7.2-static/tools/qml'
mingw32-make[1]: *** [sub-qml-make_default-ordered] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.7.2-static/tools'
mingw32-make: *** [sub-tools-make_default-ordered] Error 2
Can somebody suggest how to solve this?
Bookmarks