libuvc icon indicating copy to clipboard operation
libuvc copied to clipboard

Add libusb lib location explicitly; Windows incompatible?

Open papr opened this issue 7 years ago • 5 comments

Needs to be tested on Linux and on Windows. @pointcontrols mentioned, that this change might break building on Windows. If this is true, we need to add a case discrimination for the changes.

papr avatar Nov 27 '18 10:11 papr

While trying to test this I realized that the docs seem to be out-of-date here: https://docs.pupil-labs.com/#libuvc

LIBUSB_LIBRARY_NAMES and PTHREAD_LIBRARY_NAMES do not exist anymore, but are now called *_LIBRARIES.

Also: cmake requires forward-slashes for paths even on windows, the docs have backslashes.

Once I can confirm that this works I will create a PR for the docs to update.

pfaion avatar Sep 11 '19 13:09 pfaion

Another issue with the docs: https://docs.pupil-labs.com/#libusb references building as static lib: image This will result in the libraries being stored to C:\work\libusb\x64\Release\lib\libusb-1.0.lib while the docs reference C:\work\libusb\x64\Release\dll\libusb-1.0.lib (dll instead of lib)

pfaion avatar Sep 11 '19 13:09 pfaion

Building fails when following the instructions in the docs (and trying to make it work, see my previous comments).

libuvc/libuvc_internal.h(17): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory

I'll test from master to see if this is an issue of this branch.

pfaion avatar Sep 11 '19 13:09 pfaion

Current master also fails to build on windows, but at a later step. Seems like this indeed breaks windows (a bit more).

pfaion avatar Sep 16 '19 08:09 pfaion

I opened an issue on the docs for the required changes: https://github.com/pupil-labs/pupil-docs/issues/272

pfaion avatar Sep 16 '19 08:09 pfaion