Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error building main app
Qt 6.12 LTS is out! See what's new in the release blog

Error building main app

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
17 Posts 5 Posters 7.8k 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.
  • N Offline
    N Offline
    nirh
    wrote on last edited by
    #8

    @Paul-Colby and @VRonin

    Sorry for my miss understood,

    But i dont recieve any LNK1112...

    this is the Error i get: ( WHAT AM I MISSING HERE ? ... I already clean all and Rebuild...)

    The system cannot find the path specified.
    jom: C:\SivronCode\tcpTester\Debug\tcpTesterApp\Makefile.Debug [....\Debug\tcpTester.exe] Error 1
    jom: C:\SivronCode\tcpTester\Debug\tcpTesterApp\Makefile [debug] Error 2
    17:46:05: The process "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project tcpTester (kit: Desktop Qt 5.7.0 MSVC2013 64bit)
    When executing step "Make"

    Thanks,
    most appriciate your help..

    Nirh

    jsulmJ 2 Replies Last reply
    0
    • N nirh

      @Paul-Colby and @VRonin

      Sorry for my miss understood,

      But i dont recieve any LNK1112...

      this is the Error i get: ( WHAT AM I MISSING HERE ? ... I already clean all and Rebuild...)

      The system cannot find the path specified.
      jom: C:\SivronCode\tcpTester\Debug\tcpTesterApp\Makefile.Debug [....\Debug\tcpTester.exe] Error 1
      jom: C:\SivronCode\tcpTester\Debug\tcpTesterApp\Makefile [debug] Error 2
      17:46:05: The process "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
      Error while building/deploying project tcpTester (kit: Desktop Qt 5.7.0 MSVC2013 64bit)
      When executing step "Make"

      Thanks,
      most appriciate your help..

      Nirh

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #9

      @nirh From your first post:
      "all the 3 libs had been build successfully but when trying to build the main app i got the next error:
      ....\Debug\main.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'"

      So, you do receive it.
      Don't forget to rerun qmake after changing pro file.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • N nirh

        @Paul-Colby and @VRonin

        Sorry for my miss understood,

        But i dont recieve any LNK1112...

        this is the Error i get: ( WHAT AM I MISSING HERE ? ... I already clean all and Rebuild...)

        The system cannot find the path specified.
        jom: C:\SivronCode\tcpTester\Debug\tcpTesterApp\Makefile.Debug [....\Debug\tcpTester.exe] Error 1
        jom: C:\SivronCode\tcpTester\Debug\tcpTesterApp\Makefile [debug] Error 2
        17:46:05: The process "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
        Error while building/deploying project tcpTester (kit: Desktop Qt 5.7.0 MSVC2013 64bit)
        When executing step "Make"

        Thanks,
        most appriciate your help..

        Nirh

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #10

        @nirh said in Error building main app:

        The system cannot find the path specified.

        This is not the actual error. What was printed before that line?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • N Offline
          N Offline
          nirh
          wrote on last edited by
          #11

          Hi @jsulm,

          I think i got some advance ...

          I Just open a new and empty project (console ) and i got the next error:

          LNK1104: cannot open file 'kernel32.lib'

          Please note that i compile for win32 using QT,

          This is the empty project .pro file what is missing ?

          QT += core
          QT -= gui

          CONFIG += c++11

          TARGET = test1Hello
          CONFIG += console
          CONFIG -= app_bundle

          TEMPLATE = app

          SOURCES += main.cpp

          jsulmJ 1 Reply Last reply
          0
          • N nirh

            Hi @jsulm,

            I think i got some advance ...

            I Just open a new and empty project (console ) and i got the next error:

            LNK1104: cannot open file 'kernel32.lib'

            Please note that i compile for win32 using QT,

            This is the empty project .pro file what is missing ?

            QT += core
            QT -= gui

            CONFIG += c++11

            TARGET = test1Hello
            CONFIG += console
            CONFIG -= app_bundle

            TEMPLATE = app

            SOURCES += main.cpp

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #12

            @nirh You're using MSVC2013 compiler, right? Installed Qt is for MSVC2013 as well? Did you try to build a simple C++ project in MSVC2013?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • N Offline
              N Offline
              nirh
              wrote on last edited by
              #13

              Hi @jsulm,

              It seems that there is something with regarding your answer,
              After checking QT configuration i had found out that:

              This is the QT Version that i use: Qt 5.7.0 MSVC2013 64bit
              The list of compilers Qt detected are:
              1. Microsoft Visual C++ Compiler 10.0 (x86)
              2. Microsoft Visual C++ Compiler 10.0 (amd64)
              3. Microsoft Visual C++ Compiler 10.0 (x86_amd64)
              4. Microsoft Visual C++ Compiler 12.0 (x86)
              5. Microsoft Visual C++ Compiler 12.0 (amd64)
              6. Microsoft Visual C++ Compiler 12.0 (x86_amd64)
              7. Microsoft Visual C++ Compiler 12.0 (x86_arm)
              8. Microsoft Visual C++ Compiler 12.0 (amd64_arm)

              It seems like that the Qt version is higher then the Compilers that Qt Auto-detected!!!!

              Am i correct?

              If so what do you think i should do?

              Thanks,

              nirh

              1 Reply Last reply
              0
              • N Offline
                N Offline
                nirh
                wrote on last edited by
                #14

                If i am compiling the QT examples on windows,

                Should it compiled with no errors, Or should i add anything else to the .pro file?

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

                  Don't mix Qt and Qt Creator. They are separated projects.

                  You have both VS2010 and VS2013 installed so you should be good to build.

                  The examples shouldn't require anything particular to build.

                  Did you check that your Kit + Qt version doesn't have any warning/error signaled ?

                  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
                  1
                  • N Offline
                    N Offline
                    nirh
                    wrote on last edited by
                    #16

                    Thanks @SGaist ,

                    This is my test1.Hello.pro file:
                    QT += core
                    QT -= gui

                    CONFIG += c++11

                    TARGET = test1Hello
                    CONFIG += console
                    CONFIG -= app_bundle

                    TEMPLATE = app

                    SOURCES += main.cpp

                    This are the erros i get when i try to compile an empty console project:

                    09:35:13: Running steps for project test1Hello...
                    09:35:13: Starting: "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" clean
                    C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe -f Makefile.Debug clean
                    del debug\main.obj
                    Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\debug\main.obj
                    del debug\test1Hello.exp debug\test1Hello.ilk debug\test1Hello.idb
                    Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\debug\test1Hello.exp
                    C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe -f Makefile.Release clean
                    del release\main.obj
                    del release\test1Hello.exp
                    Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\release\main.obj
                    Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\release\test1Hello.exp
                    del test1Hello.exp
                    Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\test1Hello.exp
                    del test1Hello.ilk
                    Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\test1Hello.ilk
                    del test1Hello.idb
                    Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\test1Hello.idb
                    09:35:13: The process "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" exited normally.
                    09:35:13: Configuration unchanged, skipping qmake step.
                    09:35:13: Starting: "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe"
                    C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
                    cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -EHsc /Fddebug\test1Hello.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_QML_DEBUG -DQT_CORE_LIB -I..\test1Hello -I. -I....\Qt\Qt5.7.0\5.7\msvc2013_64\include -I....\Qt\Qt5.7.0\5.7\msvc2013_64\include\QtCore -Idebug -I....\Qt\Qt5.7.0\5.7\msvc2013_64\mkspecs\win32-msvc2013 -Fodebug\ @C:\Users\nir\AppData\Local\Temp\main.obj.2724.16.jom
                    main.cpp
                    link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\test1Hello.exe @C:\Users\nir\AppData\Local\Temp\test1Hello.exe.2724.702.jom
                    LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
                    jom: C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\Makefile.Debug [debug\test1Hello.exe] Error 1104
                    jom: C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\Makefile [debug] Error 2
                    09:35:14: The process "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
                    Error while building/deploying project test1Hello (kit: Desktop Qt 5.7.0 MSVC2013 64bit)
                    When executing step "Make"
                    09:35:14: Elapsed time: 00:01.

                    What do i miss or do wrong?

                    Thanks,

                    nirh

                    jsulmJ 1 Reply Last reply
                    0
                    • N nirh

                      Thanks @SGaist ,

                      This is my test1.Hello.pro file:
                      QT += core
                      QT -= gui

                      CONFIG += c++11

                      TARGET = test1Hello
                      CONFIG += console
                      CONFIG -= app_bundle

                      TEMPLATE = app

                      SOURCES += main.cpp

                      This are the erros i get when i try to compile an empty console project:

                      09:35:13: Running steps for project test1Hello...
                      09:35:13: Starting: "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" clean
                      C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe -f Makefile.Debug clean
                      del debug\main.obj
                      Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\debug\main.obj
                      del debug\test1Hello.exp debug\test1Hello.ilk debug\test1Hello.idb
                      Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\debug\test1Hello.exp
                      C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe -f Makefile.Release clean
                      del release\main.obj
                      del release\test1Hello.exp
                      Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\release\main.obj
                      Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\release\test1Hello.exp
                      del test1Hello.exp
                      Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\test1Hello.exp
                      del test1Hello.ilk
                      Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\test1Hello.ilk
                      del test1Hello.idb
                      Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\test1Hello.idb
                      09:35:13: The process "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" exited normally.
                      09:35:13: Configuration unchanged, skipping qmake step.
                      09:35:13: Starting: "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe"
                      C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
                      cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -EHsc /Fddebug\test1Hello.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_QML_DEBUG -DQT_CORE_LIB -I..\test1Hello -I. -I....\Qt\Qt5.7.0\5.7\msvc2013_64\include -I....\Qt\Qt5.7.0\5.7\msvc2013_64\include\QtCore -Idebug -I....\Qt\Qt5.7.0\5.7\msvc2013_64\mkspecs\win32-msvc2013 -Fodebug\ @C:\Users\nir\AppData\Local\Temp\main.obj.2724.16.jom
                      main.cpp
                      link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\test1Hello.exe @C:\Users\nir\AppData\Local\Temp\test1Hello.exe.2724.702.jom
                      LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
                      jom: C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\Makefile.Debug [debug\test1Hello.exe] Error 1104
                      jom: C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\Makefile [debug] Error 2
                      09:35:14: The process "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
                      Error while building/deploying project test1Hello (kit: Desktop Qt 5.7.0 MSVC2013 64bit)
                      When executing step "Make"
                      09:35:14: Elapsed time: 00:01.

                      What do i miss or do wrong?

                      Thanks,

                      nirh

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #17

                      @nirh What about the question @SGaist asked: "Did you check that your Kit + Qt version doesn't have any warning/error signaled ?". You did not answer it.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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
                      • Unsolved