Installation error on Mac. When installing pyuvc got error: 'libusb-1.0/libusb.h' file not found

295 views
Skip to first unread message

0mz...@gmail.com

unread,
Mar 22, 2016, 4:36:41 AM3/22/16
to pupil-discuss
Things went quite well till I install pyuvc. It says:
uvc.c:265:10: fatal error: 'libusb-1.0/libusb.h' file not found
#include "libusb-1.0/libusb.h"

But I have already installed libusb with no error.

Then I continued to install Pupil Labs UI module and encounter a similar error:
pyglui/cygl/include_glew.h:1:10: fatal error: 'GL/glew.h' file not found
#include <GL/glew.h>

The same, glew has already been installed smoothly.

I am using Python 2.7.11, pip 8.1.1 and OSX 10.11.3

Any solution about this error? Thanks in advance.

Pupil Labs Info

unread,
Mar 23, 2016, 12:50:12 AM3/23/16
to pupil-...@googlegroups.com
Hi, 

A few quick questions:
  - you installed `libusb` with `brew install libusb` correct? 
  - what version of libusb was installed? `brew info libusb`
  - are the latest version of command line tools installed? 


--
You received this message because you are subscribed to the Google Groups "pupil-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pupil-discus...@googlegroups.com.
To post to this group, send email to pupil-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pupil-discuss/d4f3e192-be31-4eb7-8994-49c896e547f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Pupil Labs
research + development + design

0mz...@gmail.com

unread,
Mar 23, 2016, 4:30:11 AM3/23/16
to pupil-discuss
在 2016年3月23日星期三 UTC+9下午1:50:12,info写道:
Hi, thanks for the quick reply.

- Yes, I used "brew install libusb" and got no error.

- libusb version is 1.0.20, info followed "brew info libusb" is:

libusb: stable 1.0.20 (bottled), HEAD
Library for USB device access
http://libusb.info
/usr/local/Cellar/libusb/1.0.20 (11 files, 293.4K) *
Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/libusb.rb
==> Options
--universal
Build a universal binary
--with-default-log-level-debug
Build with default runtime log level of debug (instead of none)
--without-runtime-logging
Build without runtime logging functionality
--HEAD
Install HEAD version

- Seems not. I use "xcode-select --install" and managed to install command line tools, then tried to install pyuvc again but still got the same error.

Btw does it have anything to do with the python virtual environment? I did all of the installation in virtualenv. But as the problem is about brew dependency libusb and glew so the answer is likely to be negative I guess.

Pupil Labs Info

unread,
Mar 24, 2016, 5:15:30 AM3/24/16
to pupil-...@googlegroups.com
I think virtualenv is the keyword here. It seems that your setup does not allow clang to find libusb .dylib files.

M




For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages