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

libusb-1.0 Ubuntu 16.04 #16

Open
DasPez opened this issue Dec 24, 2016 · 1 comment
Open

libusb-1.0 Ubuntu 16.04 #16

DasPez opened this issue Dec 24, 2016 · 1 comment

Comments

@DasPez
Copy link

DasPez commented Dec 24, 2016

Hi,
i followed "How to build the library from source" and everything was fine. No cmake warnings, no build errors. The examples in /bin worked. But in my IDE (CodeBlocks), "undefined reference" errors were thrown. I had to link "/usr/lib/x86_64-linux-gnu/libusb-1.0.so" manually in the IDE to make it work. Maybe something went wrong in cmake.
I hope this may help someone one day :)

Ubuntu 16.04.1
GCC 5.4
cmake 3.5.1

@fairlight1337
Copy link
Owner

Hm, that's odd. Thanks for the remark, though.

I don't work with CodeBlocks. Could it be that it doesn't use /usr/lib/x86_64-linux-gnu/ in the linker directive per se?

This seems to be related, although doesn't offer a real solution beyond manually linking against the libs you want. Maybe this is a CodeBlocks thing indeed.

I added the directory to the linker directories, just for good measure. Can you check if this resolves your issue?

Thanks

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