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

Linux Compilation problem: platform/x11/joystick_linux.cpp:36:21: fatal error: libudev.h: No such file or directory #3714

Closed
purpleorangegames opened this issue Feb 15, 2016 · 3 comments · Fixed by #3715

Comments

@purpleorangegames
Copy link

All my linux builds failed with this error.

platform/x11/joystick_linux.cpp:36:21: fatal error: libudev.h: No such file or directory

I'm compiling on linux with gamepad=no to avoid this issues.

@purpleorangegames
Copy link
Author

It seems they changed from gamepad to udev

on platform/x11/detect.py:
before:
('gamepad','Gamepad support, requires libudev and libevdev','yes'),
after:
('udev','Use udev for gamepad connection callbacks','no'),

EDIT: This is really strange, it seems the default would be for udev to be no.

on platform/x11/detect.py we got this now:

if (platform.system() == "Linux"):
        env.Append(CPPFLAGS=["-DJOYDEV_ENABLED"])
    if (env["udev"]=="yes"):

It seems to be adding djoydev just because it is linux, regardless if udev is enabled.

EDIT2: Related to #3708

@27thLiz
Copy link
Contributor

27thLiz commented Feb 15, 2016

oops, sorry. Forgot to #ifdef the #include <libudev.h>
I'll fix it right away

@purpleorangegames
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants