Hi,
here is the situation:
Compiler: VS 2017
CMake: 3.12
boost: 1.67.0
pc-ble-driver branch: master
Firstly I can successfully build the pc-ble-driver, with this tools,
then I met some other issues and asked a question here, I was suggested to use the pc-ble-driver v2.3.2 as it is using api v3 which is more stable than v5
so I did, when trying to build v2.3.2, some errors prompted, then I was told it might be because of the boost version is incorrect, so I checked the installation.md found that boost v1.54.0 is recommonded, then I downloaded boost v1.54.0 and tried to build it, but sadly been told the compiler version is incorrect.
then I try to go back to master branch and build it again, ooooooooooooooooooooops....., then I got these errors:
D:\Projects\BT\pc-ble-driver-master\build>cmake -G "Visual Studio 15 2017 Win64" ..
-- Architecture not set, using native 64-bit toolchain.
CMake Warning (dev) at cmake/pc-ble-driver.cmake:55 (find_package):
Policy CMP0074 is not set: find_package uses PackageName_ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Environment variable Boost_ROOT is set to:
D:\local\boost_1_67_0
For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
CMakeLists.txt:4 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:2025 (message):
Unable to find the requested Boost libraries.
Boost version: 1.54.0
Boost include path: D:/boost_1_54_0
Detected version of Boost is too old. Requested version was 1.67 (or
newer).
Call Stack (most recent call first):
cmake/pc-ble-driver.cmake:55 (find_package)
CMakeLists.txt:4 (include)
-- Using SoftDevice API version in tests.
-- Added test D:/Projects/BT/pc-ble-driver-master/test/test_h5_transport.cpp, with test name test_h5_transport_v2.
-- Added test D:/Projects/BT/pc-ble-driver-master/test/test_issue_gh_112.cpp, with test name test_issue_gh_112_v2.
-- Added test D:/Projects/BT/pc-ble-driver-master/test/test_pc_ble_driver_open_close.cpp, with test name test_pc_ble_driver_open_close_v2.
-- Added test D:/Projects/BT/pc-ble-driver-master/test/test_uart_boost.cpp, with test name test_uart_boost_v2.
-- Added test D:/Projects/BT/pc-ble-driver-master/test/test_virtual_uart.cpp, with test name test_virtual_uart_v2.
-- Added test D:/Projects/BT/pc-ble-driver-master/test/test_h5_transport.cpp, with test name test_h5_transport_v5.
-- Added test D:/Projects/BT/pc-ble-driver-master/test/test_issue_gh_112.cpp, with test name test_issue_gh_112_v5.
-- Added test D:/Projects/BT/pc-ble-driver-master/test/test_pc_ble_driver_open_close.cpp, with test name test_pc_ble_driver_open_close_v5.
-- Added test D:/Projects/BT/pc-ble-driver-master/test/test_uart_boost.cpp, with test name test_uart_boost_v5.
-- Added test D:/Projects/BT/pc-ble-driver-master/test/test_virtual_uart.cpp, with test name test_virtual_uart_v5.
clang-tidyisnotsupportedonWindows
-- Configuring incomplete, errors occurred!
See also "D:/Projects/BT/pc-ble-driver-master/build/CMakeFiles/CMakeOutput.log".
See also "D:/Projects/BT/pc-ble-driver-master/build/CMakeFiles/CMakeError.log".
It seems that the successfully built boost v1.67.0 is ommitted, but the failed built boost v1.54.0 is found out and tried to be used.
I've already changed the %boost_root% back before building.
Can anybody help me with this?
BTW, these whole toochain building process is bloody complicate and many error could happen, if there's a pre-built toolchain that could be great helpful