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 += core gui sql printsupport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = qt_pua
TEMPLATE = app
ICON =
SOURCES += main.cpp\
mainwindow.cpp \
aboutdialog.cpp \
../qcustomplot/qcustomplot.cpp \
preferencesdialog.cpp \
simple_dialog.cpp
HEADERS += mainwindow.h \
aboutdialog.h \
common.h \
../qcustomplot/qcustomplot.h \
preferencesdialog.h \
simple_dialog.h
FORMS += mainwindow.ui \
aboutdialog.ui \
preferencesdialog.ui \
simple_dialog.ui
RESOURCES += \
resources.qrc
QT += core gui sql printsupport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = qt_pua
TEMPLATE = app
ICON =
SOURCES += main.cpp\
mainwindow.cpp \
aboutdialog.cpp \
../qcustomplot/qcustomplot.cpp \
preferencesdialog.cpp \
simple_dialog.cpp
HEADERS += mainwindow.h \
aboutdialog.h \
common.h \
../qcustomplot/qcustomplot.h \
preferencesdialog.h \
simple_dialog.h
FORMS += mainwindow.ui \
aboutdialog.ui \
preferencesdialog.ui \
simple_dialog.ui
RESOURCES += \
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):
-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"
-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:
qstring.cpp:-1: error: undefined reference to `_Unwind_SjLj_Unregister'\
File not found qstring.cpp
qstring.cpp:-1: error: undefined reference to `_Unwind_SjLj_Unregister'\
File not found qstring.cpp
To copy to clipboard, switch view to plain text mode
Any thoughts much appreciated.
Thanks,
-Rich
Bookmarks