Is this the latest version of the conan build instructions? I’m trying to replicate your work on my Windows 10 development VM, and so far so good until I try to generate a VS solution.
Here is my $HOME\.conan\profiles\mingw
:
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=8
compiler.exception=seh
compiler.libcxx=libstdc++11
compiler.threads=posix
build_type=Release
[options]
[build_requires]
mingw_installer/1.0@conan/stable
msys2_installer/latest@bincrafters/stable
[env]
Here’s the commands I run:
conan install .. --profile mingw --build=missing
cmake -G "Visual Studio 16 2019" ..
and here’s the output I get:
-- The CXX compiler identification is MSVC 19.22.27905.0
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: C:/Users/wwinfrey/scoop/shims/git.exe (found version "2.23.0.windows.1")
-- build Rack version '1.dev.47ae701'
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Library rtaudiod not found in package, might be system one
-- Library dsound not found in package, might be system one
-- Library ole32 not found in package, might be system one
-- Library ksuser not found in package, might be system one
-- Library mfplat not found in package, might be system one
-- Library mfuuid not found in package, might be system one
-- Library wmcodecdspuuid not found in package, might be system one
-- Library rtmidid not found in package, might be system one
-- Library winmm not found in package, might be system one
-- Library rtaudio not found in package, might be system one
-- Library dsound not found in package, might be system one
-- Library ole32 not found in package, might be system one
-- Library ksuser not found in package, might be system one
-- Library mfplat not found in package, might be system one
-- Library mfuuid not found in package, might be system one
-- Library wmcodecdspuuid not found in package, might be system one
-- Library rtmidi not found in package, might be system one
-- Library winmm not found in package, might be system one
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Current conanbuildinfo.cmake directory: C:/Users/wwinfrey/Documents/Development/VCVRack/Rack/build
CMake Error at build/conanbuildinfo.cmake:1847 (message):
Incorrect 'gcc', is not the one detected by CMake: 'MSVC'
Call Stack (most recent call first):
build/conanbuildinfo.cmake:1483 (conan_check_compiler)
CMakeLists.txt:31 (conan_basic_setup)
-- Configuring incomplete, errors occurred!
See also "C:/Users/wwinfrey/Documents/Development/VCVRack/Rack/build/CMakeFiles/CMakeOutput.log".
Seems like it’s not finding gcc for some reason. I don’t have any experience with conan, but from the build_requires
config section it would appear that the gcc installation is handled by conan?