Can't build pc-ble-driver on macOS 12.4

I follow description of https://github.com/NordicSemiconductor/pc-ble-driver to build pc-ble-driver from source. But it failed to build it.

cmake \
-G Ninja \
..
-- NRF_BLE_DRIVER_VERSION not specified, setting it to 0.0.0
CMake Warning at /Users/snowuyl/vcpkg/scripts/buildsystems/vcpkg.cmake:116 (message):
Unable to determine target architecture, continuing without vcpkg.
Call Stack (most recent call first):
build/CMakeFiles/3.23.1/CMakeSystem.cmake:6 (include)
CMakeLists.txt:25 (project)


-- Architecture not set, using native 64-bit toolchain.
-- Building with build type: .
-- macOS Architecture not set, using x86_64 as default.
-- Compiled tests are installed in directory "bin"
-- Compiled examples are installed in directory "bin"
-- Did not find clang-tidy, target tidy is disabled.
-- If clang-tidy is installed, make sure run-clang-tidy.py and clang-tidy is in PATH
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/Users/snowuyl/pc-ble-driver/ASIO_INCLUDE_DIR
used as include directory in directory /Users/snowuyl/pc-ble-driver
used as include directory in directory /Users/snowuyl/pc-ble-driver
used as include directory in directory /Users/snowuyl/pc-ble-driver
used as include directory in directory /Users/snowuyl/pc-ble-driver

-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.

  • Hello,

    Please show the output from the previous steps when you installed asio and the other dependencies through vcpkg.

    Also, in case you are not aware, it is not necessary to build pc-ble-driver from source unless you need to make changes to it. If you don't, then you can install it as a package via vpckg or just install the pc-ble-driver-py package from PyPI which includes the pre-compiled pc-ble-driver libraries.

Related