Results 1 to 2 of 2

Thread: QT 4.7 BETA 2 won't compile static under windows 7

  1. #1
    Join Date
    Aug 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Angry QT 4.7 BETA 2 won't compile static under windows 7

    Guys, I need some guidance here... I'm trying to make my little program standalon (only exe file).. I've been reading and found that I have to compile Qt in static linking mode. Read a LOT about it, tried another as well many guides, but no one is good to me, always get compiler errors, and the only one time I've was able to compile Qt my program didn't compile and the compiler thrown and error with something about "ld returned exit status 1".

    The thing is:
    - 4.6.2 I couldn't get my program compiled
    - 4.6.3 won't compile due to some bugs

    after reading a little found that in 4.7* the bugs are fixed... So I've downloaded 4.7 and tried to compile it. but I've got some errors like this

    *my file is: qt-win-opensource-4.7.0-beta2-mingw.exe

    Qt Code:
    1. From, To, 4>::cast() [with From = QDeclarativeAbstractAnimation, To = QDeclarati
    2. vePropertyValueSource]':
    3. ..\..\include/QtDeclarative/../../src/declarative/qml/qdeclarativeprivate.h:97:1
    4. 12: warning: control reaches end of non-void function
    5. mingw32-make[2]: *** [tmp/obj/release_static/qdeclarativeutilmodule.o] Error 1
    6. mingw32-make[2]: Leaving directory `C:/Qt/4.7.0-beta2/src/declarative'
    7. mingw32-make[1]: *** [release] Error 2
    8. mingw32-make[1]: Leaving directory `C:/Qt/4.7.0-beta2/src/declarative'
    9. mingw32-make: *** [sub-declarative-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    Changed the mkspecs file for mkspecs/win32-g++/mkspecs.conf

    Added to QMAKE_LFLAGS -static AND -static-libgcc


    My configure command was the next

    Qt Code:
    1. configure -release -static -nomake examples -nomake demos -no-
    2. exceptions -no-stl -no-rtti -no-qt3support -no-scripttools -no-openssl -no-openg
    3. l -no-webkit -no-phonon -no-style-motif -no-style-cde -no-style-cleanlooks -no-s
    4. tyle-plastique -no-sql-sqlite -platform win32-g++
    To copy to clipboard, switch view to plain text mode 

    and then

    Qt Code:
    1. mingw32-make
    To copy to clipboard, switch view to plain text mode 

    I need some guidance with the compiler... there are my doubts: I don't know if I'm using the correct version. I'm using this as this guide recommended.

    Can anyone give me a hint on what I'm failing?

    edit: BTW, I'm starting on C++ as well on Qt, so please, be patient to me

    edit: 2, same with the package qt-everywhere-opensource-src-4.7.0-beta2.tar.gz and without the -static-libgcc on the qmake.conf file
    Last edited by knifesk; 11th August 2010 at 20:47.

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: QT 4.7 BETA 2 won't compile static under windows 7

    What did you do so 4.6.2 and 4.6.3 are not suitable for you? 4.7 is still not stable and for a beginner, I suggest you start with a released version of Qt.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. Qt 4.7 beta 2 - QtWebkit link issue 64-bit Windows & VS 2008
    By ttvo in forum Installation and Deployment
    Replies: 4
    Last Post: 21st October 2011, 14:23
  2. Possible to compile Qt 4.5 source with msvc 2010 beta?
    By JimDaniel in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd July 2009, 14:19
  3. Static compile with jpg support
    By ksqt in forum Newbie
    Replies: 18
    Last Post: 11th May 2007, 04:43
  4. QT 4.3 beta on Windows 2000
    By Nyphel in forum Installation and Deployment
    Replies: 3
    Last Post: 4th April 2007, 19:54
  5. Static Compile [Qt4]
    By PieaholicX in forum Newbie
    Replies: 11
    Last Post: 1st September 2006, 17:18

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
  •  
Qt is a trademark of The Qt Company.