Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file or directory #4

Open
Crivit opened this issue Nov 22, 2020 · 2 comments

Comments

@Crivit
Copy link

Crivit commented Nov 22, 2020

Hi, Attempting to run your container dockerfiles/flight/airspy-adsb/ on a Raspberry PI 4 with Raspberry Pi OS Lite (32-bit) release 2020-08-20 + SDR is a AirSpy R2 (with latest firmware). Running the container produces the error:

airspy-adsb | === Starting airspy_adsb...
airspy-adsb | /usr/local/bin/airspy_adsb: error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file or directory
airspy-adsb | === Shutting down...

Airspy is available on the USB Bus:

Bus 001 Device 004: ID 1d50:60a1 OpenMoko, Inc. Airspy

Appreciate your efforts creating the container and any advice pertaining to this error.

@kevinelliott
Copy link
Collaborator

Thanks for the submission. I will take a closer look in a short while and let you know.

Would you share your execution details in case it helps me diagnose?

@Crivit
Copy link
Author

Crivit commented Nov 22, 2020

Sure and thanks for your reply, executing the container via docker-compose:

    image: boxel/airspy-adsb
    container_name: airspy-adsb
    privileged: true
    devices:
      #- "/dev/bus/usb"
      - /dev/bus/usb/001/004:/dev/bus/usb/001/004
    ports:
      - 33333:33333
    environment:
      - TZ=${TZ}
      - AIRSPY_ADSB_PORT=33333
      - AIRSPY_BIAS=-b
      - AIRSPY_GAIN=15
      - AIRSPY_PREAMBLE=9.87
      - AIRSPY_OPTIONS=-v -f 2 -t 300
      - AIRSPY_SAMPLE_RATE=20
      - AIRSPY_NET=-l 33333:beast
      - AIRSPY_G=-g
      - AIRSPY_M=-m
      - AIRSPY_P=-e
    restart: always

Tried with different device and privileged definitions to no avail. LIBUSB 1.0 is installed on the Raspberry OS and is located at: /lib/arm-linux-gnueabihf/libusb-1.0.so.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants