-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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] LIBUSBX_API_VERSION undef #782
Comments
This is bug, it must compile on Ubuntu. I know there are some differences between libusb versions. |
what i have changed will have a side effect on flash program? @xor-gate |
Sorry @goog for the late reply, no it will not effect the working of the flashing of the binary data to the controller. |
We need a patch for this, so reopened |
Please verify if the problem still exists in Release v1.6.0. |
LIBUSB_API_VERSION defined since libusb 1.0.13. Also LIBUSB_API_VERSION for FreeBSD almost 4 years (https://svnweb.freebsd.org/base/head/lib/libusb/libusb.h?revision=301957&view=markup) |
Thanks for the feedback @slyshykO ! Debian Jessie (oldoldstable), which is currently the oldest Debian distribution version supported, uses libusb 1.0.19. Taking the Debian project as a reference for longterm support (oldoldstable branch) this would mean that we are looking back to 2015 when this version was released. This is 5 years in time. Looking at this, I feel like no one should expect the stlink project to ensure full software compatibility dating back any longer. We don't do ourself any favour with this. To me this would imply that we completely throw out |
Yes, I came across that somewhere else in relation to the mentioned issue above. |
EDIT: ...BUT as #733 reveals by the state of August 2018: At least FreeBSD v11.3 still seems to rely on it, as they indeed appear to use an old version. Can a FreeBSD user clarify or confirm this to ensure we do not run into a regression here? BTW: What about Fedora (see #211)? We may not care about the remaining distros in that list. |
This |
Sorry, I missed the second part of it. :$ |
My opinion is since libusbx reunited with libusb in 2014 we should not care about it. |
I'm on about this:
|
I agree that cleaning this up does close this ticket as well as #211. |
Reopening this, as topic is not solved by now. |
Closes stlink-org#211 stlink-org#782. See also stlink-org#733.
Closes stlink-org#211 stlink-org#782. See also stlink-org#733.
Closes stlink-org#211 stlink-org#782. See also stlink-org#733.
cheng@ubuntu:~/stlink$ pkg-config --libs --cflags libusb-1.0
-I/usr/include/libusb-1.0 -lusb-1.0
/home/cheng/stlink/src/sg.c: In function ‘stlink_open’:
/home/cheng/stlink/src/sg.c:969:5: error: "LIBUSBX_API_VERSION" is not defined [-Werror=undef]
cc1: all warnings being treated as errors
I make it pass by this
but i dont know is it the right method for me.
The text was updated successfully, but these errors were encountered: