Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt5.3.1 VS2008 (self-built) - "Default" Qt apps crash in release mode from IDE
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goblincoding
    wrote on last edited by
    #1

    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&#40;&#41;;
    

    }
    @

    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!

    http://www.goblincoding.com

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goblincoding
      wrote on last edited by
      #2

      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...

      http://www.goblincoding.com

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved