S
S
Sashkakuhta2015-03-27 08:13:23
USB
Sashkakuhta, 2015-03-27 08:13:23

How to install libusb 1.0.0 under Ubuntu?

I needed to build code under ubuntu that uses libusb-1.0.
I downloaded libusb-1.0-0-dev via apt-get, but only the libusb.h file was downloaded. Tried several solutions - none of them work.
The code's Makefile contains this:
...
CFLAGS=-O3 -g -std=c99 -W -Wall `pkg-config --cflags libusb-1.0` $(DEFINES)
LDFLAGS=`pkg-config --libs libusb-1.0 `
...
When trying to compile, it displays errors on functions from either usb.
How to properly install this libusb?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
krypt3r, 2015-03-27
@krypt3r

apt-get install libusb-1.0-0
apt-get install libusb-1.0-0-dev
pkg-config worth it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question