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. Cannot resolve error: 'lld-link' is not recognized as an internal or external command, operable program or batch file.

Cannot resolve error: 'lld-link' is not recognized as an internal or external command, operable program or batch file.

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 3 Posters 2.7k Views
  • 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
    gracious23
    wrote on last edited by gracious23
    #1

    Hello,

    I am attempting to compile a qt program for the lab I work for but I keep getting the following error: "'lld-link' is not recognized as an internal or external command, operable program or batch file." It is accompanied by an error 1 and error 2 for jom.exe, and an output that states the jom.exe exited with code 2. Also, the compile output states that there was an error when executing step "Make."
    The entire output is below:

    20:43:17: Running steps for project Miniscope-DAQ-QT-Software...
    20:43:17: Configuration unchanged, skipping qmake step.
    20:43:17: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe"
    xcopy /s /q /y /i "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\source..\deviceConfigs" "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\deviceConfigs"
    2 File(s) copied
    xcopy /s /q /y /i "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\source..\userConfigs" "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\userConfigs"
    10 File(s) copied
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
    xcopy /s /q /y /i "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\source..\deviceConfigs" "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\deviceConfigs"
    2 File(s) copied
    xcopy /s /q /y /i "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\source..\userConfigs" "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\userConfigs"
    10 File(s) copied
    lld-link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\Miniscope-DAQ-QT-Software.exe @C:\Users\name\AppData\Local\Temp\Miniscope-DAQ-QT-Software.exe.8600.110.jom
    'lld-link' is not recognized as an internal or external command,
    operable program or batch file.
    jom: C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\Makefile.Debug [debug\Miniscope-DAQ-QT-Software.exe] Error 1
    jom: C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\Makefile [debug] Error 2
    20:43:17: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project Miniscope-DAQ-QT-Software (kit: Desktop (x86-windows-msvc2019-pe-64bit))
    When executing step "Make"
    20:43:17: Elapsed time: 00:01.

    Some additional information, I am running QT creator on the windows 10 through a separate partition using bootcamp on my mac. I am not sure what is the problem and I cannot find any help online that relates to this specific issue. Any help would by greatly appreciated.

    If additional details are needed, I am more than happy to provide them. I have been scratching my head at this issue for quite some time now.

    Thank you

    jsulmJ Pablo J. RoginaP 2 Replies Last reply
    0
    • G gracious23

      @jsulm @Pablo-J-Rogina

      My mistake, I should have mentioned that. I am a newbie and did not know how relevant that information is.

      I believe this is where my issue lies as the setup instructions are confusing for me and are not clear on the Miniscope DAQ QT Software github. Also, there is not too much as far as documentation on their github.

      I guess the solution the my problem may involve more general advice if you guys could provide it. Do you have advice as to building OpenCV for Qt creator? The setup instructions do not go into too much detail on the Miniscope github. Due to this, and the fact that I have not found a good guide online, I have had difficulty figuring it out. I am also not sure whether I should use x32 or x64 to build.

      As far as compilers go I have the options of using x86-windows-msvc2019-32bit as well as x86-windows-msvc2019-64bit. In addition to those I can use Desktop QT 5.15.0 MSVC 2019 32bit or Desktop QT 5.15.0 MSVC 2015 64bit.

      I am not sure if this is relevant but I am running windows 10 on my 2017 macbook pro through bootcamp. The gpu is an Intel Iris Plus Graphics 640.

      Thank you.

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

      @gracious23 said in Cannot resolve error: 'lld-link' is not recognized as an internal or external command, operable program or batch file.:

      building OpenCV for Qt creator?

      You do not build it for QtCreator (which is just an IDE).
      You need to build it using same compiler as you use for your Qt application.
      To build it you can use QtCreator: download OpenCV source code and open CMakeLists.txt file in QtCreator, then build.
      Also this can be helpful: https://perso.uclouvain.be/allan.barrea/opencv/cmake_config.html

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

      1 Reply Last reply
      4
      • G gracious23

        Hello,

        I am attempting to compile a qt program for the lab I work for but I keep getting the following error: "'lld-link' is not recognized as an internal or external command, operable program or batch file." It is accompanied by an error 1 and error 2 for jom.exe, and an output that states the jom.exe exited with code 2. Also, the compile output states that there was an error when executing step "Make."
        The entire output is below:

        20:43:17: Running steps for project Miniscope-DAQ-QT-Software...
        20:43:17: Configuration unchanged, skipping qmake step.
        20:43:17: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe"
        xcopy /s /q /y /i "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\source..\deviceConfigs" "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\deviceConfigs"
        2 File(s) copied
        xcopy /s /q /y /i "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\source..\userConfigs" "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\userConfigs"
        10 File(s) copied
        C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
        xcopy /s /q /y /i "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\source..\deviceConfigs" "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\deviceConfigs"
        2 File(s) copied
        xcopy /s /q /y /i "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\source..\userConfigs" "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\userConfigs"
        10 File(s) copied
        lld-link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\Miniscope-DAQ-QT-Software.exe @C:\Users\name\AppData\Local\Temp\Miniscope-DAQ-QT-Software.exe.8600.110.jom
        'lld-link' is not recognized as an internal or external command,
        operable program or batch file.
        jom: C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\Makefile.Debug [debug\Miniscope-DAQ-QT-Software.exe] Error 1
        jom: C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\Makefile [debug] Error 2
        20:43:17: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
        Error while building/deploying project Miniscope-DAQ-QT-Software (kit: Desktop (x86-windows-msvc2019-pe-64bit))
        When executing step "Make"
        20:43:17: Elapsed time: 00:01.

        Some additional information, I am running QT creator on the windows 10 through a separate partition using bootcamp on my mac. I am not sure what is the problem and I cannot find any help online that relates to this specific issue. Any help would by greatly appreciated.

        If additional details are needed, I am more than happy to provide them. I have been scratching my head at this issue for quite some time now.

        Thank you

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

        @gracious23 What exact Qt version and compiler do you use?
        As far as I know lld-link comes from https://llvm.org/ which is usually not used on Windows with Qt (MinGW and MSVC are used).

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

        1 Reply Last reply
        1
        • G gracious23

          Hello,

          I am attempting to compile a qt program for the lab I work for but I keep getting the following error: "'lld-link' is not recognized as an internal or external command, operable program or batch file." It is accompanied by an error 1 and error 2 for jom.exe, and an output that states the jom.exe exited with code 2. Also, the compile output states that there was an error when executing step "Make."
          The entire output is below:

          20:43:17: Running steps for project Miniscope-DAQ-QT-Software...
          20:43:17: Configuration unchanged, skipping qmake step.
          20:43:17: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe"
          xcopy /s /q /y /i "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\source..\deviceConfigs" "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\deviceConfigs"
          2 File(s) copied
          xcopy /s /q /y /i "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\source..\userConfigs" "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\userConfigs"
          10 File(s) copied
          C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
          xcopy /s /q /y /i "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\source..\deviceConfigs" "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\deviceConfigs"
          2 File(s) copied
          xcopy /s /q /y /i "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\source..\userConfigs" "C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\userConfigs"
          10 File(s) copied
          lld-link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\Miniscope-DAQ-QT-Software.exe @C:\Users\name\AppData\Local\Temp\Miniscope-DAQ-QT-Software.exe.8600.110.jom
          'lld-link' is not recognized as an internal or external command,
          operable program or batch file.
          jom: C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\Makefile.Debug [debug\Miniscope-DAQ-QT-Software.exe] Error 1
          jom: C:\Users\name\source\repos\Miniscope-DAQ-QT-Software2\build-Miniscope-DAQ-QT-Software-Desktop_x86_windows_msvc2019_pe_64bit-Debug\Makefile [debug] Error 2
          20:43:17: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
          Error while building/deploying project Miniscope-DAQ-QT-Software (kit: Desktop (x86-windows-msvc2019-pe-64bit))
          When executing step "Make"
          20:43:17: Elapsed time: 00:01.

          Some additional information, I am running QT creator on the windows 10 through a separate partition using bootcamp on my mac. I am not sure what is the problem and I cannot find any help online that relates to this specific issue. Any help would by greatly appreciated.

          If additional details are needed, I am more than happy to provide them. I have been scratching my head at this issue for quite some time now.

          Thank you

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #3

          @gracious23 said in Cannot resolve error: 'lld-link' is not recognized as an internal or external command, operable program or batch file.:

          If additional details are needed

          It'd be great you mentioned that you're trying to build the Miniscope-DAQ-QT-Software.

          So have you followed the setup instructions?

          If answer is yes, for step #2 you should have installed proper build tools (i.e. compiler/linker) to build OpenCV and from your error, it looks like something is messed up since the process is trying to call the LLVM linker, which as @jsulm mentioned, it's not the usual tool for Qt under Windows.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          2
          • G Offline
            G Offline
            gracious23
            wrote on last edited by gracious23
            #4

            @jsulm @Pablo-J-Rogina

            My mistake, I should have mentioned that. I am a newbie and did not know how relevant that information is.

            I believe this is where my issue lies as the setup instructions are confusing for me and are not clear on the Miniscope DAQ QT Software github. Also, there is not too much as far as documentation on their github.

            I guess the solution the my problem may involve more general advice if you guys could provide it. Do you have advice as to building OpenCV for Qt creator? The setup instructions do not go into too much detail on the Miniscope github. Due to this, and the fact that I have not found a good guide online, I have had difficulty figuring it out. I am also not sure whether I should use x32 or x64 to build.

            As far as compilers go I have the options of using x86-windows-msvc2019-32bit as well as x86-windows-msvc2019-64bit. In addition to those I can use Desktop QT 5.15.0 MSVC 2019 32bit or Desktop QT 5.15.0 MSVC 2015 64bit.

            I am not sure if this is relevant but I am running windows 10 on my 2017 macbook pro through bootcamp. The gpu is an Intel Iris Plus Graphics 640.

            Thank you.

            jsulmJ 1 Reply Last reply
            0
            • G gracious23

              @jsulm @Pablo-J-Rogina

              My mistake, I should have mentioned that. I am a newbie and did not know how relevant that information is.

              I believe this is where my issue lies as the setup instructions are confusing for me and are not clear on the Miniscope DAQ QT Software github. Also, there is not too much as far as documentation on their github.

              I guess the solution the my problem may involve more general advice if you guys could provide it. Do you have advice as to building OpenCV for Qt creator? The setup instructions do not go into too much detail on the Miniscope github. Due to this, and the fact that I have not found a good guide online, I have had difficulty figuring it out. I am also not sure whether I should use x32 or x64 to build.

              As far as compilers go I have the options of using x86-windows-msvc2019-32bit as well as x86-windows-msvc2019-64bit. In addition to those I can use Desktop QT 5.15.0 MSVC 2019 32bit or Desktop QT 5.15.0 MSVC 2015 64bit.

              I am not sure if this is relevant but I am running windows 10 on my 2017 macbook pro through bootcamp. The gpu is an Intel Iris Plus Graphics 640.

              Thank you.

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

              @gracious23 said in Cannot resolve error: 'lld-link' is not recognized as an internal or external command, operable program or batch file.:

              building OpenCV for Qt creator?

              You do not build it for QtCreator (which is just an IDE).
              You need to build it using same compiler as you use for your Qt application.
              To build it you can use QtCreator: download OpenCV source code and open CMakeLists.txt file in QtCreator, then build.
              Also this can be helpful: https://perso.uclouvain.be/allan.barrea/opencv/cmake_config.html

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

              1 Reply Last reply
              4
              • G Offline
                G Offline
                gracious23
                wrote on last edited by
                #6

                Thank you, thanks to your help I realized I was approaching opencv and qtcreator from the wrong point of view. Running CMakeLists.txt file in Qt did the trick and after playing around with it I got my program to build succesfully. Many thanks.

                1 Reply Last reply
                1

                • Login

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