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

Problem with building a release of the pc-ble-driver-py

Hi, I am working on installing the pc-ble-driver-py library and building it to run an application for a nrf52840 Dongle over serial port. 

I have followed github.com/.../pc-ble-driver and github.com/.../pc-ble-driver-py for necessary dependencies. 

The issue I am having is that when I run "> python setup.py bdist_wheel --build-type Release" I get this error:

-- LINK_LIBRARIES are not nrf::nrf_ble_driver_sd_api_v5_shared;C:/Users/E74128/AppData/Local/Programs/Python/Python37/libs/python37.lib
CMake Error at CMakeLists.txt:110 (get_target_property):
  get_target_property() called with non-existent target
  "nrf::nrf_ble_driver_sd_api_v5_shared".

and 

 -- LINK_LIBRARIES are not nrf::nrf_ble_driver_sd_api_v5_shared;C:/Users/E74128/AppData/Local/Programs/Python/Python37/libs/python37.lib
CMake Error at CMakeLists.txt:110 (get_target_property):
  get_target_property() called with non-existent target
  "nrf::nrf_ble_driver_sd_api_v5_shared".

The troublesome CMakeLists.txt:110 line is

get_target_property(CONNECTIVITY_SD_API_V${SD_API_VER}_PATH nrf::nrf_ble_driver_sd_api_v${SD_API_VER}_${NRF_BLE_DRIVER_LINKAGE_TYPE} INTERFACE_INCLUDE_DIRECTORIES)

The output of the Visual Studio compiler compatibility I have is here, and I am on windows 10.

-- Trying "Ninja" generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
Not searching for unused variables given on the command line.
-- The C compiler identification is MSVC 19.23.28106.4
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx86/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is MSVC 19.23.28106.4
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx86/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx86/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done

Has anyone worked with this driver before and seen this issue? Is there something I can do for the CMake file to find a valid target?

Thanks.

Related