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

cmake mac os None of the required 'hidapi-libusb;hidapi' #37

Open
windoozatnick opened this issue Oct 8, 2018 · 6 comments
Open

cmake mac os None of the required 'hidapi-libusb;hidapi' #37

windoozatnick opened this issue Oct 8, 2018 · 6 comments

Comments

@windoozatnick
Copy link

windoozatnick commented Oct 8, 2018

Не собирается на macOS 10.13.6.
При этом вот это видел, и вот так делал:
brew install libusb
brew install hidapi
brew install pkg-config

@dmage
Copy link
Owner

dmage commented Oct 9, 2018

Что выдает команда pkg-config hidapi --debug?

@windoozatnick
Copy link
Author

pkg-config hidapi --debug
no output option set, defaulting to --exists
Error printing disabled by default due to use of output options --exists, --atleast/exact/max-version, --list-all or no output option at all. Value of --print-errors: 0
Error printing disabled
Adding virtual 'pkg-config' package to list of known packages
Looking for package 'hidapi'
Looking for package 'hidapi-uninstalled'

@dmage
Copy link
Owner

dmage commented Oct 10, 2018

Странно, после этих строк должны быть

Reading 'hidapi' from file '/usr/local/lib/pkgconfig/hidapi.pc'
Parsing package file '/usr/local/lib/pkgconfig/hidapi.pc'

Есть ли в систем файл /usr/local/lib/pkgconfig/hidapi.pc? Показывается ли он в brew list hidapi?

@windoozatnick
Copy link
Author

Есть симлинк
hidapi.pc -> ../../Cellar/hidapi/0.8.0-rc1/lib/pkgconfig/hidapi.pc

На brew list hidapi выдает:
/usr/local/Cellar/hidapi/0.8.0-rc1/bin/hidtest
/usr/local/Cellar/hidapi/0.8.0-rc1/include/hidapi/hidapi.h
/usr/local/Cellar/hidapi/0.8.0-rc1/lib/libhidapi.0.dylib
/usr/local/Cellar/hidapi/0.8.0-rc1/lib/pkgconfig/hidapi.pc
/usr/local/Cellar/hidapi/0.8.0-rc1/lib/ (2 other files)
/usr/local/Cellar/hidapi/0.8.0-rc1/share/doc/ (6 files)

@dmage
Copy link
Owner

dmage commented Oct 10, 2018

Да, у меня точно так же. Похоже что-то не так с pkg-config, возможно стоит посмотреть на вывод

$ pkg-config --variable pc_path pkg-config
/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.12

@windoozatnick
Copy link
Author

windoozatnick commented Oct 10, 2018

$ pkg-config --variable pc_path pkg-config
/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig

Кажется, что смотрит куда-то не туда

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

2 participants