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

Cross-compile PC-ble-driver for arm7-32bit architecture on x86-64bit linux host

Hi All,

 

       We have tested the DFU(nrf52840) from a central to the target device over the BLE. In which a central device attached to the PC(x86-64bit Linux) via a Serial USB. We run this test using nrfuti on linux machine and it's work. Now we want to create the same environment for the gateway which is based on arm7-32bit architecture. We successfully installed the nrfutil on arm32 arch, but we stuck when run the DFU command because pc-ble-driver shard object not created for x86_32.

" raise RuntimeError("Could not load shared library {} : '{}'.".format(shlib_path, error))
RuntimeError: Could not load shared library /usr/lib/python3.5/site-packages/pc_ble_driver_py/lib/linux/x86_32/libpc_ble_driver_shared_sd_api_v3.so : '/usr/lib/python3.5/site-packages/pc_ble_driver_py/lib/linux/x86_32/libpc_ble_driver_shared_sd_api_v3.so: cannot open shared object file: No such file or directory'. "

    We tried to follow the steps given at https://github.com/NordicSemiconductor/pc-ble-driver#Compiling-pc-ble-driver-from-source, but facing an error when we run a command

$ vcpkg install asio catch2 spdlog
Error: Invalid vcpkg root directory /home/kashif/Downloads/pc-ble-driver-master/build/home/kashif/vcpkg: No such file or directory

Questions:

  1. Does the steps mentioned in above link, will help to cross-compile the pc-ble-driver for arm-32bit arch.
  2. if no, then can you please share what steps need to be followed for cross-compilation.

Thank You,

K.Khan

Related