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