Results 1 to 4 of 4

Thread: Making a stand alone Windows executable.

  1. #1
    Join Date
    Jan 2013
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Making a stand alone Windows executable.

    I am using Qt 4.7.0. I have an application I would like to test another machine before I proceed much further. I am building on a Windows 7 machine and the target is also a Windows 7 machine.

    I found plenty of posts about this and while there are some variations there does seem to be a generally agreed upon process. However, I am getting stuck early on.

    Following this thread (http://qt-project.org/forums/viewthread/12304/) I downloaded a Qt 4.7 "source package" from the archive at http://qt-project.org/downloads. The package was "qt-win-opensource-4.7.0-mingw.exe".

    I went ahead and installed the package in its own directory (c:\StaticQt) to keep it separate from my SDK installation.

    From the command prompt I navigate to c:\StaticQt and execute the command "configure -static -release -no-exceptions". It goes through the prompts about using open source and license agreement. It then proceeds to build and appears to be okay. However after several seconds I get:
    ls/qlocale.cpp
    C:\StaticQt/src/corelib/tools/qlocale.cpp: In function 'char* qdtoa(double, int,
    int, int*, int*, char**, char**)':
    C:\StaticQt/src/corelib/tools/qlocale.cpp:6628:14: error: '_clear87' was not dec
    lared in this scope
    C:\StaticQt/src/corelib/tools/qlocale.cpp:6629:43: error: '_control87' was not d
    eclared in this scope
    mingw32-make: *** [qlocale.o] Error 1
    Building qmake failed, return code 2

    Any insight would be appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Making a stand alone Windows executable.

    Which version of MinGW are you using?

    https://bugreports.qt-project.org/browse/QTBUG-7576
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2013
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Making a stand alone Windows executable.

    @wysota:
    I downloaded and installed mingw-get-inst-20120426 to c:\MinGW. When I installed the "static" Qt I directed it to this directory.

    If the bug you referenced is my problem I am not clear on how to apply the patch.

    Thanks.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Making a stand alone Windows executable.

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 20
    Last Post: 3rd February 2013, 19:07
  2. Problem deploying a two library + executable application to windows
    By joseprl89 in forum Installation and Deployment
    Replies: 8
    Last Post: 15th March 2011, 21:52
  3. Replies: 13
    Last Post: 10th June 2009, 02:56
  4. Making Fails in Windows XP
    By sashwinamrita in forum Installation and Deployment
    Replies: 4
    Last Post: 8th December 2008, 15:41

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.