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

Installation Problem of PC-BLE-Driver

Hello, this is Kwonjoon Lee.
I have a problem of PC-BLE-Driver (C/C++ library) installation.

I am following installation guide which is written in the https://github.com/NordicSemiconductor/pc-ble-driver
,and my problem is in "Installing on Windows" at "Compiling pc-ble-driver from source" stage.

The followings are my brief development environments :

1) Windows 10 (64 Bit)
2) Visual Studio 2015 Pro (64 Bit)
3) Installation using cmd.exe as administrator
4) asio x86-windows
5) catch2 x86-windows

The followings are procedures of getting problem in  "Installing on Windows"
at "Compiling pc-ble-driver from source" stage.

1) I downloaded pc-ble-driver-master zip file, and I placed unzipped pc-ble-driver-master to the c:\
2) I moved to the directory of c:\pc-ble-driver-master in the cmd.exe (I understood the directory location as "pc-ble-driver-root-folder"
3) I inserted following commands as described in the https://github.com/NordicSemiconductor/pc-ble-driver

c:\pc-ble-driver-master> mkdir build && cd build
c:\pc-ble-driver-master\build> vcpkg install asio
c:\pc-ble-driver-master\build> vcpkg install catch2
c:\pc-ble-driver-master\build> cmake -G "Visual Studio 14 Win64" -DCMAKE TOOLCHAIN_FILE=%VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake ..
(%VCPKG_ROOT% = c:\vcpkg)

Finally, I got cmake errors which are described as followings

CMake Error at C:/vcpkg/scripts/buildsystems/vcpkg.cmake:253 (_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.
Call Stack (most recent call first):
test/CMakeLists.txt:6 (find_package)


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:
ASIO_INCLUDE_DIR
used as include directory in directory C:/pc-ble-driver-master
used as include directory in directory C:/pc-ble-driver-master
used as include directory in directory C:/pc-ble-driver-master
used as include directory in directory C:/pc-ble-driver-master
used as include directory in directory C:/pc-ble-driver-master
used as include directory in directory C:/pc-ble-driver-master
used as include directory in directory C:/pc-ble-driver-master
used as include directory in directory C:/pc-ble-driver-master
used as include directory in directory C:/pc-ble-driver-master
used as include directory in directory C:/pc-ble-driver-master
used as include directory in directory C:/pc-ble-driver-master
used as include directory in directory C:/pc-ble-driver-master

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

Actually, I founded the location of Catch2Config.cmake file in following directorys : 
C:\vcpkg\installed\x86-windows\share\Catch2
C:\vcpkg\packages\catch2_x86-windows\share\Catch2
C:\vcpkg\buildtrees\catch2\x86-windows-dbg
C:\vcpkg\buildtrees\catch2\x86-windows-rel

How can i remove above-mentioned cmake errors?
If anyone helps me, it will be huge help for me.

Best regards,
Kwonjoon Lee

Parents Reply Children
  • Hi, thanks for the answer,
    Actually, I solved the problem by changing CMakeCache file in the "C:\pc-ble-driver-master\build"

    In the CMakeCache file, I changed the path information of the asio and catch2 manually.
    By doing so, I could solve the issue and compile the "compiling pc-ble-driver from source" stage.

    Actually, even though i respect the developers of the "pc-ble-driver (c/c++)", library,
    It have many issues at the installation phase.

    I want to reflect abovementioned issue.

    Best regards,
    Kwonjoon Lee

Related