Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Exited with code 2 in Qt 5.4.1
Qt 6.11 is out! See what's new in the release blog

Exited with code 2 in Qt 5.4.1

Scheduled Pinned Locked Moved General and Desktop
5.4.1code 2errormingw32-make.ex
3 Posts 2 Posters 4.7k Views 2 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    Hi all,
    It has been almost 24 Hrs since I have been trying and still I can not make Qt run.
    So please help me out here.

    • I downloaded this offline installer: qt-opensource-windows-x86-msvc2013_64_opengl-5.4.1.exe and installed it.

    • I already had Visual Studio 2012 installed.

    • I also installed MinGW 4.8.1-4

    Now when I am trying to Build an Example named "Application". I am getting following Compile Output:

    00:08:14: Running steps for project application...
    00:08:14: Configuration unchanged, skipping qmake step.
    00:08:14: Starting: "C:\MinGW\bin\mingw32-make.exe" 
    C:/MinGW/bin/mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory 'C:/Qt/Qt5.4.1/Examples/Qt-5.4/widgets/mainwindows/build-application-Desktop-Release'
    C:\Qt\Qt5.4.1\5.4\msvc2013_64_opengl\bin\rcc.exe -name application ..\application\application.qrc -o release\qrc_application.cpp
    Makefile.Release:112: recipe for target 'release/qrc_application.cpp' failed
    mingw32-make[1]: *** [release/qrc_application.cpp] Error -1073741515
    mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.4.1/Examples/Qt-5.4/widgets/mainwindows/build-application-Desktop-Release'
    mingw32-make: *** [release] Error 2
    Makefile:34: recipe for target 'release' failed
    00:08:15: The process "C:\MinGW\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project application (kit: Desktop)
    When executing step "Make"
    00:08:15: Elapsed time: 00:01.
    

    Here are some screenshots of some setting:
    https://drive.google.com/file/d/0B4h1psCmnMRuSXN3SkFNdWVySzA/view?usp=sharing
    https://drive.google.com/file/d/0B4h1psCmnMRuRm5KWld2LXpmYzQ/view?usp=sharing
    https://drive.google.com/file/d/0B4h1psCmnMRuTjFiLVhvTEhWSVE/view?usp=sharing

    Please tell me how can I get rid of this error?
    Thank you.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You are trying to build your software with MinGW and you have installed Qt for Visual Studio 2013. That won't work, you can't mix and match compilers like that especially on Windows they are not compatible one with the other (even between versions of MSVC). You must use matching packages, so either install Qt's MinGW version. or install Visual Studio 2013 and correct the settings to use the correct compiler

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      ? 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        You are trying to build your software with MinGW and you have installed Qt for Visual Studio 2013. That won't work, you can't mix and match compilers like that especially on Windows they are not compatible one with the other (even between versions of MSVC). You must use matching packages, so either install Qt's MinGW version. or install Visual Studio 2013 and correct the settings to use the correct compiler

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by A Former User
        #3

        @SGaist Thank you for the reply. But I am a newbie here and don't know anything. So can you please send me download link for whichever of "Visual Studio 2013" and "Qt's MinGW version" is a smaller file to download.
        Or is there any other way so that I need to download minimum data.

        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