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

Won't compile on MacOS Sierra #30

Closed
jorelllinsangan opened this issue Mar 2, 2017 · 4 comments
Closed

Won't compile on MacOS Sierra #30

jorelllinsangan opened this issue Mar 2, 2017 · 4 comments

Comments

@jorelllinsangan
Copy link

jorelllinsangan commented Mar 2, 2017

Hi,

I'm currently trying to install pyuvc using this fork .

Running python setup.y install gives me this error.

wpa-1-211:pyuvc$ python setup.py install
running install
running build
running build_ext
building 'uvc' extension
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/usr/local/opt/jpeg-turbo/include/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c uvc.c -o build/temp.macosx-10.6-intel-2.7/uvc.o
uvc.c:459:10: fatal error: 'libusb-1.0/libusb.h' file not found
#include "libusb-1.0/libusb.h"
         ^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

I couldn't find anything online to help me fix this issue. I'm hoping you guys have some answers. Thank you!

@mkassner
Copy link
Member

mkassner commented Mar 3, 2017 via email

@jorelllinsangan
Copy link
Author

I have it installed. The main issue is it can't find it. So my question is would you guys be able to offer help in order for pyuvc to locate libusb.

@mkassner
Copy link
Member

mkassner commented Mar 5, 2017

if you installed libusb with homebrew. Please check using brew doctor and also do brew link libusb

@Windsooon
Copy link

To anyone who also meets this problem, Here is a solution on macOS 10.14.1, When you run

make && sudo make install

If you get

fatal error: 'libusb-1.0/libusb.h' file not found

Try copy the libusb-1.0 to the include dir like this:

cp -r /usr/local/include/libusb-1.0 path_to/libuvc/build/include/

After that, try run make && sudo make install again. If you see error like:

library not found for -lusb-1.0

run

make LIBRARY_PATH=/usr/local/lib && make install

papr pushed a commit that referenced this issue Sep 15, 2022
* Replace pep517.build with build

Resolves #30

* Prefer simple usage

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
papr pushed a commit that referenced this issue Sep 15, 2022
* Use `extend-ignore` in flake8 config

This option allows to add extra ignored rules to the default list
instead of replacing it.

The default exclusions are: E121, E123, E126, E226, E24, E704,
W503 and W504.

Fixes #28.

Refs:
* https://github.com/pypa/setuptools/pull/2486/files#r541943356
* https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-extend-ignore
*
https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore

* Enable complexity limit. Fixes jaraco/skeleton#34.

* Replace pep517.build with build (#37)

* Replace pep517.build with build

Resolves #30

* Prefer simple usage

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

* Use license_files instead of license_file in meta (#35)

Singular `license_file` is deprecated since wheel v0.32.0.

Refs:
* https://wheel.readthedocs.io/en/stable/news.html
* https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
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

3 participants