Replies: 1 comment 2 replies
-
There is a problem with the compiler. CMake thinks that it is broken. Maybe that is true; in that case, reinstalling Visual Studio and all the tools might fix it. I also wonder whether it might be Cygwin what's causing trouble. Maybe that confuses CMake and makes it treat the MSVC compiler as some other kind of compiler. But probably it makes no sense what I'm saying there; I hardly know what Cygwin is (and I'm not even a Windows user...) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Compiled the master branch on Windows 10.
Current environment: [MSVC 2019] [Qt_5_15_2] [Qt Creator 10 (Community) ] [cmake 3.24.2(Qt) installed but using [cmake version 3.20.0]] [ninja as cmake_generator]
REM: ninja path has been added to the list of environment vars.
Followed each step of https://github.com/musescore/MuseScore/wiki/Compile-in-Qt-Creator but the compilation config fails the same way if I ran the compilation cmd via CLI
CLI environment setup: [cmake version 3.20.0]
[cygwin
Can't find out what I missed identifying in the lines below:
QtCreator Output Console:
`
Running C:\cygwin64\bin\cmake.exe
-S C:/Users/Holly/Projects/MuseScore
-B C:/Users/Holly/Projects/MuseScore/builds/Desktop_Qt_5_15_2_MSVC2019_64bit-Debug "-DCMAKE_GENERATOR:STRING=Ninja"
"-DCMAKE_BUILD_TYPE:STRING=Debug"
"-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=C:\Users\Holly\Projects\MuseScore\builds\Desktop_Qt_5_15_2_MSVC2019_64bit-Debug/.qtc/package-manager/auto-setup.cmake"
"-DQT_QMAKE_EXECUTABLE:FILEPATH=C:/Qt/5.15.2/msvc2019_64/bin/qmake.exe" "-DCMAKE_PREFIX_PATH:PATH=C:/Qt/5.15.2/msvc2019_64"
"-DCMAKE_C_COMPILER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe"
"-DCMAKE_CXX_COMPILER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe"
"-DCMAKE_INSTALL_PREFIX:FILEPATH=install"
"-DCMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG" in C:\Users\Holly\Projects\MuseScore\builds\Desktop_Qt_5_15_2_MSVC2019_64bit-Debug.
-- The C compiler identification is MSVC 19.29.30148.0
-- The CXX compiler identification is MSVC 19.29.30148.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe - broken
CMake Error at /usr/share/cmake-3.20.0/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:25 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/Holly/Projects/MuseScore/builds/Desktop_Qt_5_15_2_MSVC2019_64bit-Debug/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Holly/Projects/MuseScore/builds/Desktop_Qt_5_15_2_MSVC2019_64bit-Debug/CMakeFiles/CMakeError.log".
CMake process exited with exit code 1.
Elapsed time: 00:14.
`
Thanks for any tip/remark
Beta Was this translation helpful? Give feedback.
All reactions