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

[compatibility] Linux: Selecting the correct libusb version #113

Closed
pthomas opened this issue Nov 1, 2012 · 3 comments
Closed

[compatibility] Linux: Selecting the correct libusb version #113

pthomas opened this issue Nov 1, 2012 · 3 comments

Comments

@pthomas
Copy link

pthomas commented Nov 1, 2012

This started as an issue, but the fix is easy so I figured I'd post it here because I don't know where it should go.

In Fedora there are 2 libusb versions, libusb and libusb1. stlink depends on libusb1 so Fedora users (and possibly other distros) just need to install that, 'yum install libusb1-devel', and then stlink should compile fine.

For all you googlers the error if you just have libusb is:
checking for USB... no
configure: error: *** Required libusb-1.0 >= 1.0.0 not installed ***

thanks,
Paul

@Nightwalker-87
Copy link
Member

Nightwalker-87 commented Mar 22, 2020

Related to #211 and #782.

@Nightwalker-87 Nightwalker-87 changed the title fedora users Fedora Linux: Selecting the correct libusb version Mar 23, 2020
@Nightwalker-87 Nightwalker-87 changed the title Fedora Linux: Selecting the correct libusb version Linux: Selecting the correct libusb version Mar 23, 2020
@Nightwalker-87
Copy link
Member

As of today this also applies to several linux/unix distributions namely:

  • CentOS 6, 7, 8
  • Debian 8, 9, 10, sid
  • Fedora 30, 31, Rawhide
  • NetBSD 7.2, 8.1, 9.0
  • openSUSE Leap 15.1, Leap 15.2
  • Ubuntu 14.04 LTS, 16.04 LTS, 18.04 LTS, 19.10

Other relevant distributions appear to have packages named libusb-compat-0.1 or alike to distinguish from libusb packages based on version 1.0.x.

Nightwalker-87 added a commit that referenced this issue Mar 23, 2020
- Added note on correct libusb version.
- Formatting improvements
- Corrections to grammar and wording
@Nightwalker-87
Copy link
Member

Closed by 10ae529.

@Nightwalker-87 Nightwalker-87 linked a pull request Mar 26, 2020 that will close this issue
@Nightwalker-87 Nightwalker-87 changed the title Linux: Selecting the correct libusb version [compatibility] Linux: Selecting the correct libusb version Mar 26, 2020
grevaillot pushed a commit to grevaillot/stlink that referenced this issue Mar 31, 2020
- Added note on correct libusb version.
- Formatting improvements
- Corrections to grammar and wording
grevaillot pushed a commit to grevaillot/stlink that referenced this issue Mar 31, 2020
- Added note on correct libusb version.
- Formatting improvements
- Corrections to grammar and wording
grevaillot pushed a commit to grevaillot/stlink that referenced this issue Apr 6, 2020
- Added note on correct libusb version.
- Formatting improvements
- Corrections to grammar and wording
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants