eodna

  • *
  • 2
Building Librepilot 16.09 on Arch/Manjaro
« on: August 17, 2017, 06:04:36 pm »
Dear all,
I'm trying to build 16.09 or "next" on Arch/Manjaro (without systemd) -- the librepilot user-provided repositories have not been updated with this version.
I am having quite a lot of build problems with libusb: clean from git, I get the following error:
Quote
Project ERROR: libusb-1.0 development package not found
if I comment
Quote
PKGCONFIG += libusb-1.0
from the file:
Code: [Select]
ground/gcs/src/plugins/ophid/ophid.pro
then I can build, but when I start the librepilot-gcs I get a large error message. Some key exerpts:
Quote
Cannot load plugin... libOPHID.so: undefined symbol: libusb_free_config_descriptor

I have libusb installed:
Quote
# pacman -Ql libusb-nosystemd
libusb-nosystemd /usr/
libusb-nosystemd /usr/include/
libusb-nosystemd /usr/include/libusb-1.0/
libusb-nosystemd /usr/include/libusb-1.0/libusb.h
libusb-nosystemd /usr/lib/
libusb-nosystemd /usr/lib/libusb-1.0.so
libusb-nosystemd /usr/lib/libusb-1.0.so.0
libusb-nosystemd /usr/lib/libusb-1.0.so.0.1.0
libusb-nosystemd /usr/lib/pkgconfig/
libusb-nosystemd /usr/lib/pkgconfig/libusb-1.0.pc

Any help would be appreciated, and if you are interested in a working updated arch package for the repository, I'd be happy to help.

E

Re: Building Librepilot 16.09 on Arch/Manjaro
« Reply #1 on: August 18, 2017, 01:12:21 am »
I would try to find what (dev?) library provides "libusb_free_config_descriptor" and install that.

eodna

  • *
  • 2
Re: Building Librepilot 16.09 on Arch/Manjaro
« Reply #2 on: August 18, 2017, 01:44:02 am »
I don't think Arch linux has dev libraries -- they are included in the libusb package.
Those symbols are in libusb, which is confusing, right?

How can I make sure they are linked correctly?