Results 1 to 1 of 1

Thread: Qt 4.5.1 Compile error on Windows XP [SOLVED]

  1. #1
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    64
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt 4.5.1 Compile error on Windows XP [SOLVED]

    I solved the problem, I edited the mkspecs file wrong:
    I added "static" instead of "-static".

    Sorry for bothering.


    Original message:

    I downloaded the Qt framework 4.5.1 with MinGW and I installed it on Windows XP.

    I edited <QTDIR>\mkspecs\win32-g++\qmake.conf:

    I changed

    QMAKE_LFLAGS = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc

    to (add -static)

    QMAKE_LFLAGS = -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc

    I opened the Qt console and configured Qt as follows:

    configure -static -release -no-qt3support -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libjpeg -qt-libtiff -no-exceptions -no-scripttools -no-dsp -no-vcproj -nomake demos -nomake examples -nomake tools -no-webkit -no-phonon -no-phonon-backend -no-xmlpatterns -no-dbus -no-opengl -no-scripttools

    So far everything went well.

    Then I used the make command.
    After some time I get the following error:

    g++ -c -O2 -frtti -fno-exceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_MOC
    -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_TEXTCODEC -DQT_NO_CAST_FROM_ASCII
    -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT
    -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM
    -D QT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NODLL -I"." -I"."
    -I"..\..\..\include" -I"..\..\..\include\QtCore" -I"..\..\..\include\QtXml"
    -I "..\..\xml" -I"." -I"..\..\..\mkspecs\win32-g++" -o release\main.o main.cpp
    g++ static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
    -Wl,-s -Wl,-subsystem,console -o ..\..\..\bin\moc.exe release/moc.o release/preprocessor.o
    release/generator.o release/parser.o release/token.o release/main.o -L../bootstrap/release
    -lbootstrap -luser32
    g++: static: No such file or directory
    mingw32-make[2]: *** [..\..\..\bin\moc.exe] Error 1
    mingw32-make[2]: Leaving directory `C:/Qt/4.5.1/src/tools/moc'
    mingw32-make[1]: *** [release] Error 2
    mingw32-make[1]: Leaving directory `C:/Qt/4.5.1/src/tools/moc'
    mingw32-make: *** [sub-moc-make_default-ordered] Error 2

    With Qt 4.5.0 there are no errors (using the same commands and configure options).

    Any ideas?
    Last edited by Teuniz; 27th April 2009 at 10:13.

Similar Threads

  1. Replies: 9
    Last Post: 8th July 2008, 23:23
  2. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  3. Project won't compile under Windows (works under Linux)
    By philski in forum Qt Programming
    Replies: 7
    Last Post: 14th September 2006, 15:29
  4. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23
  5. Replies: 4
    Last Post: 12th January 2006, 04:16

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.