-
Notifications
You must be signed in to change notification settings - Fork 10
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
[sdl2gdx 1.0.4] Failed loading libusb-1.0.dll #22
Comments
According the docs, SDL on Windows should be using hid.dll. libusb is only used on Linux. libusb-1.0.dll is not linked in the binary so I guess it is attempting to load it dynamically. Could be because I had it installed in the build environment, or could be it just tries it in all cases. Does the controller work? Does this error cause a crash? Does this error repeat more than once? What happens if you supply libusb-1.0.dll in the current directory? |
It seems to be something that was changed in SDL 2.0.12. They went from disabling libusb on windows to enabling it but loading it dynamically. So I would guess things will still work without it, but perhaps work better if you supply it. If that's not the case then I could attempt to disable it completely. |
Yes the controller works, no crash but this occurs only when I close the game. Put libusb-1.0.dll only makes it disappear. (Off topic : the flashing window is back... Even the zip version doesn't fix...) |
In that case I don't think it's a problem. Possibly I should add libusb to the distribution if SDL if using it to improve controller detection. If you can send me a version of the project with the flashing window I will take a look at it. |
Thanks : this is the zip. |
Here is how it looks for me: https://www.youtube.com/watch?v=qkpCOc290-I&feature=youtu.be It doesn't flash. Can you send me a video of it flashing? |
Strange, it blinks for me : https://youtu.be/jfLtk3zjRlk But with Github action, I have made a jar and this jar version doesn't flash. |
Even placing libusb-1.0.dll in java.library.path doesn't make the message go away. |
Cannot get joystick rumble working. Only difference between running directly in C (which works) vs in java is this error. |
What OS and what controller are you using? |
Fiddling with SDL hints fixed my issue. The SDL test had a window open which was probably the problem as I hadn't set SDL background hint (I was not using controller manager) |
result 550 Failed loading libusb-1.0.dll: The specified module could not be found. I'm using W11 with x64 and I did all the steps that were told in this page and I can't fix it |
Hello,
Well the flashing window is back,
but I know how to fix that now.But I have observed that in the traceback :
Is it normal ?
Best regards.
The text was updated successfully, but these errors were encountered: