Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Qt5.3.1 VS2008 (self-built) -"Default" Qt apps crash in release mode from IDE

$
0
0
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.1   ApplicationWindow {     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!

Viewing all articles
Browse latest Browse all 2113

Trending Articles