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

Failed to locate the pc_ble_driver shared library on armv5tejl GNU/Linux 4.2.6 (32 bit)

When I run "pc-ble-driver-py/pc_ble_driver_py/examples/serial_port_enum.py" on armv5tejl GNU/Linux 4.2.6+ (32 bit) connected with NRF52 DK, it is throwing an exception 

"RuntimeError: Failed to locate the pc_ble_driver shared library: /usr/local/lib/python2.7/dist-packages/pc_ble_driver_py/lib/linux/x86_32/libpc_ble_driver_shared_sd_api_v3.so. ".

"libpc_ble_driver_shared_sd_api_v3.so" file is there in the x86_64 directory but not the in x86_32 directory. Please let me know how to proceed.

Parents
  • Hi,

    From your description, it looks like you are running this on a 32-bit ARM system, is that correct? The shared libraries in pc-ble-driver-py is only built for 32/64-bit x86 systems. If you want to run it on ARM architecture, you will have to build it from source. Note that pc-ble-driver have a dependency on nrfjprog for checking/flashing the connectivity firmware. We do not provide a version of nrfjprog for ARM systems, implying that this part of the code needs to be removed before building.

    Best regards,
    Jørgen

  • Yeah, it is ARM.

    when I was trying to install "vcpkg" using "./bootstrap-vcpkg.sh", I am getting some errors as shown below. 

    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 1: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: cannot open : No such file
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 1: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: ELF: not found
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 2: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: @Z: not found
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 8: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: Syntax error: ")" unexpected
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 1: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: cannot open : No such file
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 1: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: ELF: not found
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 2: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: @Z: not found
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 8: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: Syntax error: ")" unexpected
    cp: cannot stat '/root/bluetooth/vcpkg/toolsrc/build.rel/vcpkg': No such file or directory

    Why this is happening or What are the other ways to install nrf-ble-driver as a CMake module other than vcpkg?

Reply
  • Yeah, it is ARM.

    when I was trying to install "vcpkg" using "./bootstrap-vcpkg.sh", I am getting some errors as shown below. 

    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 1: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: cannot open : No such file
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 1: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: ELF: not found
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 2: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: @Z: not found
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 8: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: Syntax error: ")" unexpected
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 1: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: cannot open : No such file
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 1: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: ELF: not found
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 2: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: @Z: not found
    /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: 8: /root/bluetooth/vcpkg/downloads/tools/cmake-3.12.4-linux/cmake-3.12.4-Linux-x86_64/bin/cmake: Syntax error: ")" unexpected
    cp: cannot stat '/root/bluetooth/vcpkg/toolsrc/build.rel/vcpkg': No such file or directory

    Why this is happening or What are the other ways to install nrf-ble-driver as a CMake module other than vcpkg?

Children
No Data
Related