Failing to build with 5.15.5 on Windows 10
-
Hello
I'm fairly new to QT and have been working on building an application in 5.15.5 that has previously been working with 5.8. After fixing a few blockers with the build, I hard-coded the path for IDLXMLGEN to the dynamic directory (C:\Program Files\Qt\Qt5.15.5\5.15.5\msvc2019_64) in order to get from 99 errors down to 1 (LNK errors)
Now that I've zero-d in on the error that's preventing this particular application to build (it has dependencies on QT as well as our greater project). Looks like MSBuild is looking for a file that doesn't exist in this directory.
"c:\t\ourproject.sln" (default target) (1) -> "c:\t\ALL_BUILD.vcxproj.metaproj" (default target) (2) -> "c:\t\library\OurAppDir\OurApp.vcxproj.metaproj" (default target) (638) -> "c:\t\library\OurAppDir\OurApp.vcxproj" (default target) (639) -> (Link target) -> **LINK : fatal error LNK1181: cannot open input file 'C:\Qt\Static\qtbase\lib\Qt5MultimediaQuick_p.lib'** [c:\t\library\OurAppDir\OurApp.vcxproj] 20 Warning(s) 1 Error(s)
The lib it's looking for doesn't exist in either the static or the dynamic directory.
I read a suggestion to add an OBJECTS_DIR entry to the "pro" file but I don't know if we are building that or where it would be found. Pardon my ignorance.
Thanks in advance
-Jesse
-
As a logical next step, I tried replacing the reference to the Qt5MultimediaQuick_p with Qt5MultimediaQuick, which brings up a new error. Interestingly, the same error comes up if I remove the reference altogether:
LINK : fatal error LNK1181: cannot open input file 'C:\Qt\Static\qtbase\lib\preprocessor.lib' [c:\t\library\translation\translation_tool.vcxproj]
Am I missing something here? This seems like a core library
-
Removing the reference to preprocessor.lib brings up an error on qtpcre.lib.
Removing the reference to that file brings up an error on translator.lib
If I remove that one, it opens the floodgates and gives me 1989 errors.. which is interestingly 1 less than a number of errors I had a few days ago as I've been debugging this.
Hope this helps..
-
Since 5.15.5 is a commercial version you should ask the Qt support for help.