Qt5.3.1 VS2008 (self-built) - "Default" Qt apps crash in release mode from IDE
-
Hi everyone,
I successfully built Qt 5.3.1 for VS2008 (using jom 1.0.14) and have absolutely no trouble importing Qt .pro files using the VS add-in (v 1.2.3). I furthermore have no issues running Qt apps in "Debug" mode, but as soon as try to run in "Release" (from within VS), the app crashes with no information and no errors.
This is true even with the default generated Qt Quick app containing only:
main.cpp
@#include <QApplication>
#include <QQmlApplicationEngine>int main(int argc, char *argv[])
{
QApplication app(argc, argv);QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:///main.qml"))); return app.exec();
}
@and
main.qml
@import QtQuick 2.2
import QtQuick.Controls 1.1ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Hello World")menuBar: MenuBar { Menu { title: qsTr("File") MenuItem { text: qsTr("Exit") onTriggered: Qt.quit(); } } } Text { text: qsTr("Hello World") anchors.centerIn: parent }
}@
If I generate debug symbols for the Release build, the break occurs deep down in the bowels of msvcr90.dll, (coming through Qt5Quick, Qt5GUI and libGLESv2.dll).
My build was configured with:
@configure -opensource -debug-and-release -nomake tests -no-compile-examples@
and the build environment set up with:
@CALL "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
set PATH=C:\Qt\Qt5Build\qtbase\bin;C:\Qt\Qt5Build\qtrepotools\bin;C:\Qt\Qt5Build\gnuwin32\bin;%PATH%
set QMAKESPEC=C:\Qt\Qt5Build\qtbase\mkspecs\win32-msvc2008@I am probably going to try get hold of Qt 5.3.2 on the off-chance that it was a bug and rebuild the source, but that is probably going to take most of my day so if anybody has any ideas, please let me know.
Thanks!
-
Been battling with this all day and no closer to a solution than when I started.
Since my initial post this morning, I reconfigured (clean source) with -debug instead of -debug-and-release (which made no difference whatsoever) and I just set up a kit for use with QtCreator and the same happens which means there must be something going wobbly with the release dll's (but I am not getting any build errors) :(
Going to reconfigure with "-force-debug-info" and see what I get next...sigh...