Reply To: libusb library troubles in MACOS 10.10

Home Forums AR Sandbox Forum libusb library troubles in MACOS 10.10 Reply To: libusb library troubles in MACOS 10.10

Oliver Kreylos

warning: zero size arrays are an extension [-Wzero-length-array]
warning: commas at the end of enumerator lists are a C++11 extension [-Wc++11-extensions]

I have not tried building the Vrui / AR Sandbox software stack on Mac OS 10.10. But so far, every new version of Mac OS has broken a few things here and there. These warnings are OK to be ignored, but I will look into the source code to get rid of them. Would you please post the complete output from the compiler for the source file where these warnings occur, including line numbers? Without that, I will have a hard time tracking them down.


In cases like this, where you know exactly where a certain library is installed, you can set up the package file entry like this:

LIBUSB1_BASEDIR = /usr/local
LIBUSB1_INCLUDE = -I/usr/local/include
LIBUSB1_LIBDIR  = -L/usr/local/lib
LIBUSB1_LIBS    = -lusb-1.0

(Ensure that /usr/local/lib indeed contains the libusb-1.0.dylib library file.)

After this change, Vrui’s makefile should auto-detect the presence of bus topology calls. If it doesn’t, you can explicitly enable that feature via line 82 in the makefile:

# Presense of libusb_get_parent in libusb.h:

Uncomment the second line and set the value to 1.

This should hopefully work.

Comments are closed.