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

Issues compiling the pc-ble-driver on windows

I'm having trouble compiling the pc-ble-driver (github.com/.../pc-ble-driver) on windows. Some help debugging the problem would be greatly appreciated. It might be an issue with my toolchain and/or the pre-requisites/dependecies, I've tried to follow the instructions in the git-repo.

I get a ton of the following errors when running the "python ..\pc-ble-driver\scripts\build.py -srp \my_deps_directory -d -b" command

c:/work/nordic_pc_ble_driver/deps/nRF51_SDK_8.1.0_b6ed55f/components/toolchain/gcc/core_cm0.h:168:21: error: expected primary-expression before 'volatile' #define __O volatile    /*!< Defines 'write only' permissions*/

The offending lines are all part of a "#ifdef __cplusplus" hashdefine, could it be that it tries to compile it with gcc instead of g++ and doesn't see the #ifdef ?

How can I go about checking if my build-environment is set up correctly? Any important details that are not mentioned in the github-readme? And also, my ultimate goal is to use the pc-ble-driver for python-scripted testing of BLE-peripheral devices, what is the differences between using this driver and just using the master-emulator API with python? (Any other recommended methods of doing this?)

Related