Red Hat Bugzilla – Bug 1254403
No SDL support, game engine joystick support broken.
Last modified: 2015-12-02 13:16:36 EST
Created attachment 1064133 [details]
basic blender file that sets up the environment for exposing this bug.
Description of problem:
In Blender Game Engine, I can't use the joystick sensors to control anything.
Version-Release number of selected component (if applicable):
How reproducible: Always.
Steps to Reproduce:
1. Plug in a joystick or xbox controller, etc.
2. Start blender
3. Choose the "Game Engine" pulldown from the main scene menu
4. Add a joystick sensor in the logic pane, choose button, and tick "all events"
5. add a simple and controller
6. add a motion actuator using simple motion, rotate Z axis 5 degrees
7. click and connect all 3 together
8. Pull down the "blender render" option to "blender game"
9. Click "start embedded"
10. push a button on the controller.
(alternatively, load the attached blend file and skip steps 1-8)
Box doesn't rotate
In 2.74, the blender team added a nice little convenience python module to be able to tell you if SDL support is working or not. If you open a Python console and type: bpy.app.sdl, it will report back a tuple indicating whether or not SDL is initialized.
In the Fedora packaged version (2.74):
bpy.app.sdl(supported=False, version=(0, 0, 0), version_string='Unknown', available=False)
In the Blender packaged binary (2.75a):
bpy.app.sdl(supported=True, version=(2, 0, 3), version_string='2.0.3', available=True)
I have SDL2 installed, as I can make it work correctly with the binary downloaded directly.
See this bug report: https://developer.blender.org/D1112
describing lack of SDL support causing linux joysticks to fail.
To ensure it wasn't a regression from one version to the next, I downloaded Blender's precompiled version 2.74 to test. That version too, works fine.
I suspect its how Blender is being compiled.
With patch from bug 1238685 it should works fine again.
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 21 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.