[Interest] Qt6 (win) linker help: LNK1104 cannot open file OleAut32

David M. Cotter dave at kjams.com
Sat Jul 10 18:28:43 CEST 2021


>> and this isn't a library that I link to, it's just something that qt6 thinks my app needs to link to, so i have no say in its path...
>> why did it want to link to a version i don't even have?
>> and if it MUST link to it, how do i fix up the busted path?
> 
> I don't know why you're getting this, but I think you are looking at the wrong problem.
> 
> Please paste the command-line that failed.

not sure how to gain access to that. i'm just pressing the "build" button in the IDE.

here is the entire output:

> 09:14:38: Starting: "C:\Users\davec\Developer\Qt\Tools\QtCreator\bin\jom.exe" 
> linking "kJams 2 Debug.exe" 
> LINK : fatal error LNK1104: cannot open file 'Kits\10\Lib\10.0.19041.0\um\x64\OleAut32.Lib'
> jom: Z:\kJams\Development\qt\kJams\win_64\kJams 2 Debug\Makefile [kJams 2 Debug.exe] Error 1104
> 09:14:45: The process "C:\Users\davec\Developer\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
> Error while building/deploying project kJams_win (kit: 64)
> When executing step "Make"
> 09:14:45: Elapsed time: 00:06.

if you want the "LIBS" definition listed in the make file, here it is:

> LIBS          = /LIBPATH:Z:\kJams\External\Paddle\Win\PaddleCPP-Windows\PaddleCLR\PaddleCLR\bin\x64\Debug Z:\kJams\External\Paddle\Win\PaddleCPP-Windows\PaddleCLR\PaddleCLR\bin\x64\Debug\PaddleCLR.lib /LIBPATH:"Z:\CF\opencflite-476.17.2\Qt\CFLite\win_64\CFLite Debug" "Z:\CF\opencflite-476.17.2\Qt\CFLite\win_64\CFLite Debug\CFLite Debug.lib" msvcrtd.lib Ole32.lib User32.lib winmm.lib Iphlpapi.lib Dwmapi.lib Ws2_32.lib Comdlg32.lib /LIBPATH:Z:\kJams\External\Python\win\Python27_x64\libs Z:\kJams\External\Python\win\Python27_x64\libs\python27.lib /LIBPATH:Z:\kJams\External\boost_1_69_0\stage\lib Z:\kJams\External\boost_1_69_0\stage\lib\libboost_system-vc141-mt-gd-x64-1_69.lib Z:\kJams\External\boost_1_69_0\stage\lib\libboost_thread-vc141-mt-gd-x64-1_69.lib C:\Users\davec\Developer\Qt\6.2.0\msvc2019_64\lib\Qt6MultimediaWidgetsd.lib C:\Users\davec\Developer\Qt\6.2.0\msvc2019_64\lib\Qt6Multimediad.lib C:\Users\davec\Developer\Qt\6.2.0\msvc2019_64\lib\Qt6OpenGLWidgetsd.lib C:\Users\davec\Developer\Qt\6.2.0\msvc2019_64\lib\Qt6Widgetsd.lib C:\Users\davec\Developer\Qt\6.2.0\msvc2019_64\lib\Qt6OpenGLd.lib C:\Users\davec\Developer\Qt\6.2.0\msvc2019_64\lib\Qt6Guid.lib C:\Users\davec\Developer\Qt\6.2.0\msvc2019_64\lib\Qt6Sqld.lib C:\Users\davec\Developer\Qt\6.2.0\msvc2019_64\lib\Qt6Networkd.lib C:\Users\davec\Developer\Qt\6.2.0\msvc2019_64\lib\Qt6Cored.lib /LIBPATH:C:\Program propsys.lib Mfplat.lib mfuuid.lib Mf.lib Kits\10\Lib\10.0.19041.0\um\x64\OleAut32.Lib Kits\10\Lib\10.0.19041.0\um\x64\Ole32.Lib msdmo.lib C:\Program Kits\10\Lib\10.0.19041.0\um\x64\Uuid.Lib dmoguids.lib Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64 strmiids.lib kJamsVers.res C:\Users\davec\Developer\Qt\6.2.0\msvc2019_64\lib\Qt6EntryPointd.lib shell32.lib  

and yes, i think you're right, i think somebody's not quoting their paths...
note above a couple places start "C:\Program "... but then spin off into outer space... later on the 2nd one picks up with "  Files (x86)\..." and continues as expected

is this stuff in an environment var somewhere? a regedit var?  seems like a bug in my kit or Win SDK setup?

where do i check for stuff like that? i generally just use the GUI and don't mess around on the command line or look inside the makefile.

since i'm pretty sure your next question is "well show me your qmake file", here it is, minus source code:

i do not think i set any lib paths, in there, just specify libs by name

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210710/56d1d748/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qmake.txt
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210710/56d1d748/attachment.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210710/56d1d748/attachment-0001.html>


More information about the Interest mailing list