libudev packaging problems
Created by: Hinsbart
While reading through the irc backlogs I noticed this discussion (ping @punto- ):
<punto> can we statically link libudev.so? that one seems to not be as standard as the others
<punto> (for example it's not on the steam runtime, at least not the version that we use to build on the build server)
<Akien> punto: I have it in the steam runtime: /home/akien/.steam/steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libudev.so.0
<Akien> punto: Don't you mean libevdev?
<Akien> punto: libevdev was dropped so shouldn't be an issue
<punto> yeah but the build server links with libudev.so.1
<punto> and package libudev0 doesn't exist anymore
<punto> could we do the same with udev? replace it with normal code?
<Akien> No idea
The following options came into my mind:
- Figure out a way to add statically linked libraries to the build system. Might come in handy in the future.
- Add a code-path (enabled when libudev hasn't been found) that manually checks for joystick devices changes every (few) frame/s like the old code has. (
poll_joysticks()
, if you remember it ^^ ) - Try to load the symbols at runtime (like with xinput on windows)