Nordic pc ble xxx install on windows - Stupid-Git/MyWiki GitHub Wiki
https://github.com/NordicSemiconductor/pc-ble-driver/blob/master/Installation.md
I downloaded the boost binary and installed it
https://www.boost.org/users/download/
https://sourceforge.net/projects/boost/files/boost-binaries/1.67.0/
Dowloaded boost_1_67_0-msvc-14.1-64.exe and installed it in c:\home\karel\boost_1_67_0
:
setx BOOST_ROOT "c:\home\karel\boost_1_67_0"
The compile (below) FAILED due to deprecated symbols ('io_service': is not a member of 'boost::asio'), so changed to boost_1_59_0
Open a Microsoft Visual Studio vs2015 x64 Native Tools Command Prompt
and issue the following commands:
> cd %BOOST_ROOT%
> bootstrap.bat
> b2 toolset=msvc-<VV.V> address-model=<32,64> link=static --with-thread --with-system --with-regex --with-date_time --with-chrono
I used the following to Build 64-bit Boost with Visual Studio 2015:
> b2 toolset=msvc-14.0 address-model=64 link=static --with-thread --with-system --with-regex --with-date_time --with-chrono
From https://cmake.org/download/
I downloaded and installed cmake-3.11.2-win64-x64.msi
There was no build
directory in pc-ble-driver, so I
mkdir build
cd build
C:\home\karel\tooling\github\NordicSemiconductor\pc-ble-driver-js\pc-ble-driver\build> cmake -G "Visual Studio 14 Win64" -DBOOST_LIBRARYDIR="c:\home\karel\boost_1_59_0" ..
-- Selecting Windows SDK version to target Windows 10.0.16299.
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Architecture not set, using native 64-bit toolchain.
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Boost version: 1.59.0
-- Found the following Boost libraries:
-- thread
-- system
-- regex
-- date_time
-- chrono
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.15.1.windows.2")
-- Configuring done
-- Generating done
-- Build files have been written to: C:/home/karel/tooling/github/NordicSemiconductor/pc-ble-driver-js/pc-ble-driver/build
C:\home\karel\tooling\github\NordicSemiconductor\pc-ble-driver-js\pc-ble-driver\build> msbuild ALL_BUILD.vcxproj /p:Configuration=Debug
And the build seems to work
As per https://github.com/NordicSemiconductor/pc-ble-driver/tree/master/examples
> cd pc-ble-driver\examples\heart_rate_monitor\
> mkdir build
> cd build
I used the same build flags as I did to make the interface libraries above
For the Monitor (Peripheral)
> heart_rate_monitor\build> cmake -G "Visual Studio 14 Win64" -DBOOST_LIBRARYDIR="c:\home\karel\boost_1_59_0" ..
> heart_rate_monitor\build> msbuild ALL_BUILD.vcxproj /p:Configuration=Debug`
And the collector (Central)
> heart_rate_collector\build> cmake -G "Visual Studio 14 Win64" -DBOOST_LIBRARYDIR="c:\home\karel\boost_1_59_0" ..
> heart_rate_collector\build> msbuild ALL_BUILD.vcxproj /p:Configuration=Debug`