This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Trying to build pc-ble-driver for a nRF52840 dongle project

I'm trying to build the pc-ble-driver (https://github.com/NordicSemiconductor/pc-ble-driver) to be able to use the nRF52840 as a receiver for a thermometer.  See https://devzone.nordicsemi.com/f/nordic-q-a/65516/using-nrf52840-dongle-as-receiver-client-for-onset-thermometer for details.

I have followed the instructions I think, but got an error at building the pc-ble-driver:  See output below.  I was on step 2 of the section "Compiling pc-ble-driver from source". To handle the part about "CMake Select the Visual Studio compiler to use according to this article: Build C/C++ code on the command line" I opened a Developer Command Prompt for VS2019 which was one of the suggestions.  I am on a Windows 10 machine running Visual Studio 2019.

Can somebody tell me what I'm doing wrong?

Thanks,

Andrew

Console Output

C:\Nordic\pc-ble-driver>cd build

C:\Nordic\pc-ble-driver\build>cmake -G Ninja ..
-- NRF_BLE_DRIVER_VERSION not specified, setting it to 0.0.0
-- Architecture not set, using native 64-bit toolchain.
CMake Error at test/CMakeLists.txt:11 (find_package):
Could not find a package configuration file provided by "spdlog" with any
of the following names:

spdlogConfig.cmake
spdlog-config.cmake

Add the installation prefix of "spdlog" to CMAKE_PREFIX_PATH or set
"spdlog_DIR" to a directory containing one of the above files. If "spdlog"
provides a separate development package or SDK, be sure it has been
installed.


-- Configuring incomplete, errors occurred!
See also "C:/Nordic/pc-ble-driver/build/CMakeFiles/CMakeOutput.log".
See also "C:/Nordic/pc-ble-driver/build/CMakeFiles/CMakeError.log".

C:\Nordic\pc-ble-driver\build>

Parents
  • I should also point out that I tried the following.  See screenshot below with error message.  And, is it necessary to build all this stuff or do you just have binaries available for pc-ble-driver and vcpkg?

    C:\Nordic\pc-ble-driver\build>cmake -B . -S .. -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
    -- NRF_BLE_DRIVER_VERSION not specified, setting it to 0.0.0
    -- Architecture not set, using native 64-bit toolchain.
    CMake Error at test/CMakeLists.txt:11 (find_package):
    Could not find a package configuration file provided by "spdlog" with any
    of the following names:

    spdlogConfig.cmake
    spdlog-config.cmake

    Add the installation prefix of "spdlog" to CMAKE_PREFIX_PATH or set
    "spdlog_DIR" to a directory containing one of the above files. If "spdlog"
    provides a separate development package or SDK, be sure it has been
    installed.


    -- Configuring incomplete, errors occurred!
    See also "C:/Nordic/pc-ble-driver/build/CMakeFiles/CMakeOutput.log".
    See also "C:/Nordic/pc-ble-driver/build/CMakeFiles/CMakeError.log".

    C:\Nordic\pc-ble-driver\build>

Reply
  • I should also point out that I tried the following.  See screenshot below with error message.  And, is it necessary to build all this stuff or do you just have binaries available for pc-ble-driver and vcpkg?

    C:\Nordic\pc-ble-driver\build>cmake -B . -S .. -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
    -- NRF_BLE_DRIVER_VERSION not specified, setting it to 0.0.0
    -- Architecture not set, using native 64-bit toolchain.
    CMake Error at test/CMakeLists.txt:11 (find_package):
    Could not find a package configuration file provided by "spdlog" with any
    of the following names:

    spdlogConfig.cmake
    spdlog-config.cmake

    Add the installation prefix of "spdlog" to CMAKE_PREFIX_PATH or set
    "spdlog_DIR" to a directory containing one of the above files. If "spdlog"
    provides a separate development package or SDK, be sure it has been
    installed.


    -- Configuring incomplete, errors occurred!
    See also "C:/Nordic/pc-ble-driver/build/CMakeFiles/CMakeOutput.log".
    See also "C:/Nordic/pc-ble-driver/build/CMakeFiles/CMakeError.log".

    C:\Nordic\pc-ble-driver\build>

Children
No Data
Related