Hi,
I have some problems when I tried to compile pc-ble-drivers (C) .
1. When I tried to execute ./bootstrap-vcpkg.bat after I follow the steps:
$ git clone github.com/.../vcpkg.git $ cd vcpkg $ git checkout fix/temporary-fix-spdlog-until-vcpkg-release #
Then it always return the error below:E:\vcpkg\scripts\bootstrap.ps1 : Building vcpkg.exe failed. Please ensure you have installed Visual Studio with the Desktop C++ workload and the Windows SDK for Desktop C++. At line:1 char:4 + & {& 'E:\vcpkg\scripts\bootstrap.ps1' } + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,bootstrap.ps1
I am sure I have already installed VS 2019 and C++ workload, and also Windows 10 SDK(10.0.18362). Why I still get this error? Is it because your driver do not compatible with Win10 or VS 2019?
2. Then I install vcpkg by clone it from microsoft, then when I execute "vcpkg install --head spdlog" It failed:
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message): Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v Working Directory: F:/vcpkg/buildtrees/spdlog/x86-windows-dbg See logs for more information: F:\vcpkg\buildtrees\spdlog\install-x86-windows-dbg-out.log Call Stack (most recent call first): scripts/cmake/vcpkg_build_cmake.cmake:91 (vcpkg_execute_build_process) scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake) ports/spdlog/portfile.cmake:29 (vcpkg_install_cmake) scripts/ports.cmake:90 (include) Error: Building package spdlog:x86-windows failed with: BUILD_FAILED Please ensure you're using the latest portfiles with `.\vcpkg update`, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: spdlog:x86-windows Vcpkg version: 2020.02.04-nohash Additionally, attach any relevant sections from the log files above.
Do you have solutions for this?
3. Then I gave up this version, and try to compile version 4.1.1 becasue this one does not need spdlog. However, when I try to execute"cmake -G Ninja", the it returned:
CMake Error at test/CMakeLists.txt:8 (find_package): Could not find a package configuration file provided by "Catch2" with any of the following names: Catch2Config.cmake catch2-config.cmake Add the installation prefix of "Catch2" to CMAKE_PREFIX_PATH or set "Catch2_DIR" to a directory containing one of the above files. If "Catch2" provides a separate development package or SDK, be sure it has been installed.
But I'm sure I installed catch2. How to solve it?
Thank you very much!
Taoyi