Results 1 to 2 of 2

Thread: Standalone Windows Deployment

  1. #1
    Join Date
    Apr 2015
    Posts
    20
    Thanks
    1
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Standalone Windows Deployment

    I have a small application I've been developing in windows in development/debug mode using a MinGW 4.9.1. 32 bit compiler for Qt version 5.4.0. It compiles and runs as expected with debug flag on or off.

    I'm interested in creating a standalone exe for windows. Thus, I followed the procedure using the windows-build-qt-static.ps1 PowerShell script without too much issue and I've got a static linked image of Qt 5.4.1 installed in C:\Qt\Static\5.4.1\. The script seems to download qt-everywhere-opensource-src-5.4.1.7z and start the build process.

    Under tools I've added the C:\Qt\Static\5.4.1\bin\qmake.exe for Qt 5.4.1 Static and then created a kit. It used the same compiler (MinGW 4.9.1. 32 bit).

    Now when I build using the new kit I get 100s of the same error...they are all similar to:

    qstring.cpp:-1: error: undefined reference to `_Unwind_SjLj_Register'
    File not found: qstring.cpp

    It seems I've missed an obvious step here...please advise.

    Thanks,
    -Rich

  2. #2
    Join Date
    Apr 2015
    Posts
    20
    Thanks
    1
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Standalone Windows Deployment

    Still no joy...here's some more background:

    1) It builds fine dynamically using: qmake.exe qt_pua.pro -r -spec win32-g++ "CONFIG+=debug"

    2) It fails statically using: qmake.exe qt_pua.pro -r -spec win32-g++ "CONFIG+=static"

    3) Both point to: MinGw 4.9.1. 32bit for the compiler by label. This is from the original Qt install under C:\Qt\Tools\MinGW (This is the path I put into the power shell script as well, perhaps I should make this C:\Qt\5.4\mingw491_32 ?).

    4) Here's my PRO file:
    Qt Code:
    1. QT += core gui sql printsupport
    2. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    3.  
    4. TARGET = qt_pua
    5. TEMPLATE = app
    6. ICON =
    7.  
    8. SOURCES += main.cpp\
    9. mainwindow.cpp \
    10. aboutdialog.cpp \
    11. ../qcustomplot/qcustomplot.cpp \
    12. preferencesdialog.cpp \
    13. simple_dialog.cpp
    14.  
    15. HEADERS += mainwindow.h \
    16. aboutdialog.h \
    17. common.h \
    18. ../qcustomplot/qcustomplot.h \
    19. preferencesdialog.h \
    20. simple_dialog.h
    21.  
    22. FORMS += mainwindow.ui \
    23. aboutdialog.ui \
    24. preferencesdialog.ui \
    25. simple_dialog.ui
    26.  
    27. RESOURCES += \
    28. resources.qrc
    To copy to clipboard, switch view to plain text mode 

    5) I built Qt 5.4.1 statically using the following (from a power shell script and some reading, again I used C:\Qt\Tools\MinGW as the path):
    Qt Code:
    1. -static -release -platform win32-g++ -prefix $QtDir -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -qt-sql-sqlite -no-openssl -no-opengl -opensource -confirm-license -make libs -nomake tools -nomake examples -Nomake tests"
    To copy to clipboard, switch view to plain text mode 

    6) I receive > 200 errros and they all are of the format:
    Qt Code:
    1. qstring.cpp:-1: error: undefined reference to `_Unwind_SjLj_Unregister'\
    2. File not found qstring.cpp
    To copy to clipboard, switch view to plain text mode 

    Any thoughts much appreciated.

    Thanks,
    -Rich

Similar Threads

  1. Replies: 5
    Last Post: 3rd May 2013, 11:22
  2. Replies: 9
    Last Post: 4th November 2011, 16:56
  3. Deployment Procedure On Windows On Linux and Windows
    By Harshith J.V. in forum Installation and Deployment
    Replies: 4
    Last Post: 9th July 2009, 11:27
  4. deployment of Qt 4.3.4 exe on Windows?
    By vishal.chauhan in forum Installation and Deployment
    Replies: 5
    Last Post: 1st April 2008, 12:30

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.