-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Installation fails on arch linux #405
Comments
Weird, it seems like https://www.archlinux.org/packages/core/x86_64/libusb/ (I don't have any experience with Arch Linux) |
I have absolutely no experience with Arch Linux either. What exactly did
you execute to install?
Posting the build log containing the error message would be helpful.
|
Arch Linux is not that particular, basically to install C++ applications works similar to other distro with maybe few extra things. The steps I run are as following:
and the build log in the terminal is:
|
Also, these are my libusb-related installed packages:
libusb is not split into normal and |
This is just a guess, could you please try adding a new line here? https://github.com/thp/psmoveapi/blob/master/cmake/FindUSB1.cmake#L32 Based on: |
So this is CMake failing to locate libusb. See the pkg_check_modules
call in src/utils/CMakeLists.txt. I suspect the problem is that you have
libusb-1.0 installed on your system while CMake is looking for libusb
(which would be version < 1.0).
Try changing that identifier to libusb-1.0 in the pkg_check_modules call to
see if that fixes it.
|
I just realized that the code that actually needs libusb only works with
the old API, i.e. not libusb-1.0 but libusb. Since both APIs are
incompatible, simply linking against libusb-1.0 (after having made CMake
find it) won't work.
So you either need to install libusb or remove that part of the build.
It looks as if there already is an option for that (PSMOVE_USE_SIXPAIR),
but that won't stop CMake from demanding the library be installed. I added
#406 as a note to fix this.
|
@JacopoGobbi Did this solve your issue?
|
@nitsch Just tried it today on my laprop (before I was on my desktop) and by running cmake, it found
|
it found `libusb 0.1.12` which I do not see installed. Maybe it is
thanks to `libusb-compat 0.1.7-1`?
Yes, I would think so. Arch's libusb-compat points to
https://github.com/libusb/libusb-compat-0.1 which self-describes as:
"A compatibility layer allowing applications written for libusb-0.1 to
work with libusb-1.0. libusb-compat-0.1 attempts to look, feel, smell
and walk like libusb-0.1."
|
@JacopoGobbi Is this issue solved? |
The installation fails on archlinux with the following error:
My understanding is that the build fails due to the package
libusb
having a different name or installation path in Arch Linux.This custom made scripts (AUR package) for Arch linux, are not working either:
https://github.com/asonix/psmoveapi-arch
This scripts also includes some patches that are outdated that I could update.
I am happy to contribute to this repo and try to test and to create a fix for those issues, but I may need a little help.
Any suggestions on where I can to fix those issues?
The text was updated successfully, but these errors were encountered: