ma98
ma98

Reputation: 93

qt add library freenect

I installed libfreenect on Ubuntu 16.04. Then when I added its libraries in Qt, the following error occurred.

I tried adding libusb-1.0. I typed this in the terminal:

pkg-config libusb-1.0 --libs --cflags -I/usr/include/libusb-1.0 -lusb-1.0

But again the same error occurs. How do I solve it?

Upvotes: 0

Views: 281

Answers (1)

frogatto
frogatto

Reputation: 29285

I think the error message is self-explanatory. You don't have libusb-1.0.0 development package installed (i.e. libusb-1.0.0-dev).

First check you have libfreenect-dev package installed (note that this is a different package than libfreenect). If it's installed, it's likely your libusb-1.0.0-dev package is damaged and you should re-install it. If it's not installed, you should install libfreenect-dev package.

Installing libusb-1.0.0-dev:

sudo apt-get install libusb-1.0.0-dev

Installing libfreenect-dev:

sudo apt-get install libfreenect-dev

Note that libusb-1.0.0-dev and libusb-1.0.0 are two different packages, also libfreenect and libfreenect-dev.

Upvotes: 0

Related Questions