dji-sdk / Onboard-SDK

DJI Onboard SDK Official Repository
https://github.com/dji-sdk/Onboard-SDK
Other
912 stars 633 forks source link

Error linking OSDK #896

Open davidradakovits opened 2 years ago

davidradakovits commented 2 years ago

Make returns "undefined reference to `libusb_init' " among other libusb related errors allthough pkg is present on GCC: (Raspbian 8.3.0-6+rpi1) 8.3.0.

dji-dev commented 2 years ago

Agent comment from kyle.cai in Zendesk ticket #70426:

sudo apt-get install libusb-1.0-0-dev

°°°

davidradakovits commented 2 years ago

The lib is present on the system: pkg-config --libs libusb returns -lusb. But actually linking against libusb with the flag -lusb doesn't work, but using the flag -lusb-1.0 works. Since the linker is called with -lusb in the project the build fails. How to change that?