libcflie icon indicating copy to clipboard operation
libcflie copied to clipboard

libusb-1.0 Ubuntu 16.04

Open DasPez opened this issue 8 years ago • 1 comments

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

DasPez avatar Dec 24 '16 16:12 DasPez

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

fairlight1337 avatar Dec 27 '16 17:12 fairlight1337