Results 1 to 9 of 9

Thread: Running example project with mingw gives "... exited with code -1073741792" error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    Ankara , Turkey
    Posts
    8
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Running example project with mingw gives "... exited with code -1073741792" error

    Hello All,
    I have formatted my windows recently. After that I installed QT SDK 1.1 several times but i get "... exited with code -1073741792" error with example projects.
    The summary of my situation:
    Installed Visual Studio 2008
    installed latest mingw package.
    added ;C:\MinGW\bin to PATH variable.
    Installed QT SDK 1.1
    diagramscene example project works with microsoft compiler as target
    diagramscene example project doesnt work with mingw compiler as target
    trying to open another example project does not open exp:elasticnodes
    C:\QtSDK\Examples\4.7\graphicsview\elasticnodes-build-desktop\debug\elasticnodes.exe exited with code -1073741792

    I have searched for the error code but can't find anything.
    I don't know where did I go wrong.

    My system is XP Home SP3. Kaspersky Antivirus installed.
    I have disabled antivirus while installing the SDK. also disabled while building the apps.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Running example project with mingw gives "... exited with code -1073741792" error

    Installed Visual Studio 2008
    installed latest mingw package.
    added ;C:\MinGW\bin to PATH variable.
    It looks like you are trying to run a MinGW built application with VS built DLLs or the other way around.
    Make you sure are running MinGW built exe with MinGW built Qt or VS built exe with VS built Qt.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Mar 2011
    Location
    Ankara , Turkey
    Posts
    8
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Running example project with mingw gives "... exited with code -1073741792" error

    I am using Qt creator as ide. I am installing Qt SDK without changing setup options. I tried installing QT SDK before installing VS , I got the same error.
    To be clear I dont understand your answer exactly.
    "- It looks like you are trying to run a MinGW built application with VS built DLLs "
    In the Ide I choose an example , after that I choose target -- Qt 4.7.3 for Desktop - MinGW 4.4 (Qt SDK) Debug
    Push the green RUN button , I got the error
    C:\QtSDK\Examples\4.7\graphicsview\elasticnodes-build-desktop\debug\elasticnodes.exe exited with code -1073741792
    then I change the target to Qt 4.7.3 for Desktop - MSVC2008 (Qt SDK) Debug
    App runs.
    I dont use VS for coding. Just by installing it I got another target (alternative to MinGW)

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Running example project with mingw gives "... exited with code -1073741792" error

    In the Ide I choose an example , after that I choose target -- Qt 4.7.3 for Desktop - MinGW 4.4 (Qt SDK) Debug
    Push the green RUN button , I got the error
    C:\QtSDK\Examples\4.7\graphicsview\elasticnodes-build-desktop\debug\elasticnodes.exe exited with code -1073741792
    then I change the target to Qt 4.7.3 for Desktop - MSVC2008 (Qt SDK) Debug
    App runs.
    Yes as I thought, you where trying to run VS built exe against MinGW built Qt.
    It looks you have both version installed.

    To be clear I dont understand your answer exactly.
    MinGW is a compiler.
    When install VS, the MS compiler gets install too (cl.exe).

    Both compilers produce binaries which are not compatible (or at least not out of the box).
    So you need to pay attention, when you build a project, with which compiler and Qt SDK you do it.
    If you are not using MS tools for building, then install only the MinGW Qt SDK and binaries, this will eliminate any such confusion in the future.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 4
    Last Post: 11th August 2011, 08:02
  2. Replies: 3
    Last Post: 2nd November 2010, 22:36
  3. Replies: 3
    Last Post: 15th February 2010, 17:27
  4. Replies: 5
    Last Post: 30th January 2010, 19:26
  5. Replies: 3
    Last Post: 8th July 2008, 19:37

Tags for this Thread

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.