Build failing with "Cannot open update.lib"

• Apr 16, 2024 - 19:11

Recently, my build of Musescore has started to fail with the following compiler log:

...
[158/848 15.8/sec] Linking CXX executable src\framework\audio\tests\muse_audio_test.exe
[159/848 12.0/sec] Building CXX object src\framework\update\tests\CMakeFiles\update_test.dir\updateservice_tests.cpp.obj
K:\krasko\dev\MuseScore\src\framework\update\updatetypes.h(87): warning C4505: 'muse::update::releaseInfoToValMap': unreferenced function with internal linkage has been removed
K:\krasko\dev\MuseScore\src\framework\update\updatetypes.h(99): warning C4505: 'muse::update::releaseInfoFromValMap': unreferenced function with internal linkage has been removed
[160/848 10.9/sec] Linking CXX executable src\framework\update\tests\update_test.exe
FAILED: src/framework/update/tests/update_test.exe
cmd.exe /C "cd . && C:\Tools\Qt\Tools\CMake_64\bin\cmake.exe -E vs_link_exe --intdir=src\framework\update\tests\CMakeFiles\update_test.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100203~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100203~1.0\x64\mt.exe --manifests -- C:\PROGRA~2\MIB055~1\2022\BUILDT~1\VC\Tools\MSVC\1438~1.331\bin\Hostx64\x64\link.exe /nologo src\framework\update\tests\CMakeFiles\update_test.dir\update_test_autogen\mocs_compilation.cpp.obj src\framework\update\tests\CMakeFiles\update_test.dir____\testing\gmain.cpp.obj src\framework\update\tests\CMakeFiles\update_test.dir____\testing\environment.cpp.obj src\framework\update\tests\CMakeFiles\update_test.dir\updateservice_tests.cpp.obj /out:src\framework\update\tests\update_test.exe /implib:src\framework\update\tests\update_test.lib /pdb:src\framework\update\tests\update_test.pdb /version:0.0 /DYNAMICBASE:NO /debug /INCREMENTAL /subsystem:console lib\gmockd.lib src\framework\global\muse_global.lib update.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5NetworkAuth.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5QuickControls2.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5QuickTemplates2.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5QuickWidgets.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Quick.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5QmlModelsd.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Qml.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Xml.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5XmlPatterns.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Network.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Svg.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5PrintSupport.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5OpenGL.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Widgets.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Concurrent.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5WinExtras.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Gui.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Core.lib deps\musescore_prebuild_win_deps-src\libx64\zlibstat.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
LINK Pass 1: command "C:\PROGRA~2\MIB055~1\2022\BUILDT~1\VC\Tools\MSVC\1438~1.331\bin\Hostx64\x64\link.exe /nologo src\framework\update\tests\CMakeFiles\update_test.dir\update_test_autogen\mocs_compilation.cpp.obj src\framework\update\tests\CMakeFiles\update_test.dir___
\testing\gmain.cpp.obj src\framework\update\tests\CMakeFiles\update_test.dir____\testing\environment.cpp.obj src\framework\update\tests\CMakeFiles\update_test.dir\updateservice_tests.cpp.obj /out:src\framework\update\tests\update_test.exe /implib:src\framework\update\tests\update_test.lib /pdb:src\framework\update\tests\update_test.pdb /version:0.0 /DYNAMICBASE:NO /debug /INCREMENTAL /subsystem:console lib\gmockd.lib src\framework\global\muse_global.lib update.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5NetworkAuth.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5QuickControls2.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5QuickTemplates2.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5QuickWidgets.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Quick.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5QmlModelsd.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Qml.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Xml.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5XmlPatterns.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Network.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Svg.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5PrintSupport.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5OpenGL.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Widgets.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Concurrent.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5WinExtras.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Gui.lib C:\Tools\Qt\5.15.2\msvc2019_64\lib\Qt5Core.lib _deps\musescore_prebuild_win_deps-src\libx64\zlibstat.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:src\framework\update\tests\CMakeFiles\update_test.dir/intermediate.manifest src\framework\update\tests\CMakeFiles\update_test.dir/manifest.res" failed (exit code 1104) with the following output:
LINK : fatal error LNK1104: cannot open file 'update.lib'
[161/848 10.7/sec] Building CXX object src\framework\ui\CMakeFiles\muse_ui.dir\Unity\unity_1_cxx.cxx.obj
[162/848 10.8/sec] Building CXX object src\engraving\CMakeFiles\engraving.dir\dom\accidental.cpp.obj
[163/848 10.4/sec] Building CXX object src\print\CMakeFiles\print.dir\Unity\unity_0_cxx.cxx.obj
[164/848 10.3/sec] Building CXX object src\engraving\CMakeFiles\engraving.dir\engravingproject.cpp.obj
[165/848 10.0/sec] Building CXX object src\context\CMakeFiles\context.dir\Unity\unity_0_cxx.cxx.obj
[166/848 9.2/sec] Automatic MOC and UIC for target playback
[167/848 9.0/sec] Building CXX object src\converter\CMakeFiles\converter.dir\Unity\unity_0_cxx.cxx.obj
[168/848 8.9/sec] Building CXX object src\framework\ui\CMakeFiles\muse_ui.dir\Unity\unity_0_cxx.cxx.obj
[169/848 8.9/sec] Building CXX object src\framework\autobot\CMakeFiles\muse_autobot.dir\muse_autobot_autogen\mocs_compilation.cpp.obj
[170/848 8.6/sec] Building CXX object src\framework\autobot\CMakeFiles\muse_autobot.dir\Unity\unity_1_cxx.cxx.obj
[171/848 8.4/sec] Building CXX object src\framework\autobot\CMakeFiles\muse_autobot.dir\Unity\unity_0_cxx.cxx.obj
[172/848 8.1/sec] Building CXX object src\engraving\CMakeFiles\engraving.dir\engravingmodule.cpp.obj
[173/848 8.0/sec] Building CXX object src\engraving\CMakeFiles\engraving.dir\engraving_autogen\mocs_compilation.cpp.obj
ninja: build stopped: subcommand failed.
20:05:14: The process "C:\Tools\Qt\Tools\CMake_64\bin\cmake.exe" exited with code 1.
Error while building/deploying project mscore (kit: Desktop Qt 5.15.2 MSVC2019 64bit)
When executing step "Build"
20:05:14: Elapsed time: 00:30.

This is the latest MuseScore master and used to build just fine. Any clues? Do I need Qt6 yet?
Thanks!


Comments

Do you still have an unanswered question? Please log in first to post your question.