LINK1104: "D:\Windows.obj" file not found while building a simple opencv project.
-
I have specific set of libraries for both mingw and msvc.
Also, i linked the system libraries in the .pro file as it was not accepting them from the system variables "PATH"
My issue is just during the compilation with opencv.For eg., Qt has its included examples just to try out for beginners, those examples run completely fine, which means the problem lies somewhere in the code itself which i wrote.
these are all the compilers i have which are seperately
I need to get my default compiler to work with opencv.
thats my end goalModeratorswrote on 11 Feb 2019, 23:29 last edited by kshegunov 2 Nov 2019, 23:30Okay, let me rephrase:
INCLUDEPATH += "D:\Windows Kits\10\Include\10.0.17763.0\ucrt" INCLUDEPATH += "D:\Windows Kits\10\Include\10.0.17763.0\ucrt\sys"
Why do you need this?
LIBS += D:\Windows Kits\10\Lib\10.0.17763.0\um\x64\shell32.lib
What part of the system API you're using, so you need this one? (may be the source of your error too).
LIBS += D:\OpenCV\opencv\build\bin\Release\opencv_core400.dll LIBS += D:\OpenCV\opencv\build\bin\Release\opencv_highgui400.dll LIBS += D:\OpenCV\opencv\build\bin\Release\opencv_imgcodecs400.dll LIBS += D:\OpenCV\opencv\build\bin\Release\opencv_imgproc400.dll LIBS += D:\OpenCV\opencv\build\bin\Release\opencv_features2d400.dll LIBS += D:\OpenCV\opencv\build\bin\Release\opencv_calib3d400.dll
One does not link
.dll
s, one links against them with the help of a.lib
.
https://doc.qt.io/qt-5/qmake-variable-reference.html#libsPS.
Did you compile opencv with the version of msvc you're trying the build the application with? -
Okay, let me rephrase:
INCLUDEPATH += "D:\Windows Kits\10\Include\10.0.17763.0\ucrt" INCLUDEPATH += "D:\Windows Kits\10\Include\10.0.17763.0\ucrt\sys"
Why do you need this?
LIBS += D:\Windows Kits\10\Lib\10.0.17763.0\um\x64\shell32.lib
What part of the system API you're using, so you need this one? (may be the source of your error too).
LIBS += D:\OpenCV\opencv\build\bin\Release\opencv_core400.dll LIBS += D:\OpenCV\opencv\build\bin\Release\opencv_highgui400.dll LIBS += D:\OpenCV\opencv\build\bin\Release\opencv_imgcodecs400.dll LIBS += D:\OpenCV\opencv\build\bin\Release\opencv_imgproc400.dll LIBS += D:\OpenCV\opencv\build\bin\Release\opencv_features2d400.dll LIBS += D:\OpenCV\opencv\build\bin\Release\opencv_calib3d400.dll
One does not link
.dll
s, one links against them with the help of a.lib
.
https://doc.qt.io/qt-5/qmake-variable-reference.html#libsPS.
Did you compile opencv with the version of msvc you're trying the build the application with?wrote on 13 Feb 2019, 01:09 last edited by@kshegunov i changed the .dll to .lib
the only reason i included the shell32.lib file was because it shows that it cannot find the specified file before giving me the error that "Cannot find file D:\Windows.obj"
Also i built opencv using both MSVS 2017 x64 and mingw x86.
the build was succesfull without any errors in the process. -
Then you have to ensure the path you are using points to the OpenCV version built by the same compiler as you are currently using for your application.
-
Then you have to ensure the path you are using points to the OpenCV version built by the same compiler as you are currently using for your application.
wrote on 16 Feb 2019, 00:29 last edited by@SGaist I have tried adding all the paths to the system variable path manager but its still the same.
Does my Qt have any configuration issues while compiling or building.
I also ran configure.bat from the source folder to properly configure the environment but still no progress. -
Did you try to use a pre-built version of OpenCV ?
-
wrote on 18 Feb 2019, 18:56 last edited by
@SGaist
Where can i get the prebuilt version.
i used OpenCV 4.0.0 from the website. and built it from scratch.
Do you think i might have excluded some packages from Cmake while building and configuring. -
https://opencv.org/releases.html
Version 4.0.1 is available as it seems.
21/27