Results 1 to 6 of 6

Thread: Problem to compile static QT 4.7.2 with mingw32

  1. #1
    Join Date
    Feb 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Problem to compile static QT 4.7.2 with mingw32

    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?

  2. #2
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    2
    Thanked 6 Times in 6 Posts

    Default Re: Problem to compile static QT 4.7.2 with mingw32

    I wrote a tutorial some months ago...

    http://www.qtcentre.org/threads/3714...%29?highlight=

  3. #3
    Join Date
    Feb 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem to compile static QT 4.7.2 with mingw32

    javimoya thank, I read it before and I try to follow it (e.g. mingw32 is from http://get.qt.nokia.com/misc/MinGW-gcc440_1.zip) - just with simplier configuration. But step 4 (according your tutorial) fails. Few months agout I compiled static version of QT 4.7.1 without problem (but withoul openssl, and now I need openssl).

  4. #4
    Join Date
    Feb 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem to compile static QT 4.7.2 with mingw32

    just for remark: if I skipped option "-static", build process finished correctly, but it created shared libraries (and I need static).

  5. #5
    Join Date
    May 2006
    Posts
    57
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem to compile static QT 4.7.2 with mingw32

    I have the exactly same problem with Qt 4.7.3 and mingw 4.5.2. With mingw 4.4.0 from qt never finish the configure, with mingw 4.4.0 official say: "g++: CreateProcess: No such file or directory" like seink in TUTORIAL-how-to-compile-qt-qtcreator-and-libqxt-on-Windows-Mingw....


  6. #6
    Join Date
    Mar 2011
    Posts
    34
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem to compile static QT 4.7.2 with mingw32

    Exactly the same problem when trying to run -static, it seems that it's a bug when using Qt 4.7.1 or later : http://developer.qt.nokia.com/forums/viewthread/7644
    Anyone knows where could I find a stable and official version of Qt 4.7.0?
    Thanks

Similar Threads

  1. Qt 4.5.3 openssl 0.9.8k windows static mingw32
    By tpf80 in forum Installation and Deployment
    Replies: 3
    Last Post: 26th February 2010, 05:44
  2. Installing static lib with qmake and mingw32
    By ghorwin in forum Qt Programming
    Replies: 0
    Last Post: 28th May 2007, 14:34
  3. Static compile with jpg support
    By ksqt in forum Newbie
    Replies: 18
    Last Post: 11th May 2007, 04:43
  4. Static Compile [Qt4]
    By PieaholicX in forum Newbie
    Replies: 11
    Last Post: 1st September 2006, 17:18
  5. Replies: 4
    Last Post: 20th February 2006, 09:11

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.