Trouble building Musescore

• Aug 17, 2021 - 05:30

I'm trying to build Musescore on Windows 10 and I am running into this error:

C:/Users/Thomas/Musescore/src/cloud/internal/cloudservice.cpp(25,10): fatal error C1083: Cannot open include file: '
QOAuth2AuthorizationCodeFlow': No such file or directory (compiling source file C:\Users\Thomas\Musescore\msvc.build
_x64\src\cloud\CMakeFiles\cloud.dir\Unity\unity_0_cxx.cxx) [C:\Users\Thomas\Musescore\msvc.build_x64\src\cloud\cloud
.vcxproj]

I've checked my Musescore repository clone for the missing file (QOAuth2AuthorizationCodeFlow) and the original Musescore repo and neither have it. I assume its either supposed to be generated in the compiling process (I'm not familiar with how all that works) or I'm missing a dependency. I have already installed Qt, CMake, and all the files included in the 'dependencies.7z' folder, as well as the extra modules to Visual Studio. I've tried building with Visual Studio using the standard build, and with a command prompt with a debug build and both have the same error. Any suggestions would be great! Please let me know what other information is needed to help diagnose the problem too.


Comments

In reply to by Jojo-Schmitz

Thanks for the advice. I went ahead added that component, unfortunately I'm still getting the same error. I did notice however that when I opened my Musescore checkout folder is Visual Studio to regenerate the CMake file, I got this warning:

Severity Code Description Project File Line Suppression State
Warning CMake Warning at build/cmake/FindQt5.cmake:47 (find_package):
By not providing "FindQt5NetworkAuth.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5NetworkAuth", but CMake did not find one.

Could not find a package configuration file provided by "Qt5NetworkAuth"
with any of the following names:

Qt5NetworkAuthConfig.cmake
qt5networkauth-config.cmake

Add the installation prefix of "Qt5NetworkAuth" to CMAKE_PREFIX_PATH or set
"Qt5NetworkAuth_DIR" to a directory containing one of the above files. If
"Qt5NetworkAuth" provides a separate development package or SDK, be sure it
has been installed. C:\Users\Thomas\Musescore\build/cmake/FindQt5.cmake 47

Perhaps this has something to do with it?

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