evdev 1.1.0 fails to install on Travis-CI
Closed this issue · 3 comments
ddemidov commented
The command pip install evdev
fails on Travis-CI.
See
- ev3dev/ev3dev-lang-python#500,
- https://travis-ci.org/ev3dev/ev3dev-lang-python/builds/423161128#L545
The error is
gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -I/opt/python/3.4.6/include/python3.4m -c evdev/uinput.c -o build/temp.linux-x86_64-3.4/evdev/uinput.o -std=c99 -Wno-error=declaration-after-statement
evdev/uinput.c: In function ‘uinput_setup’:
evdev/uinput.c:92:28: error: ‘FF_MAX_EFFECTS’ undeclared (first use in this function)
uidev.ff_effects_max = FF_MAX_EFFECTS;
^
evdev/uinput.c:92:28: note: each undeclared identifier is reported only once for each function it appears in
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for evdev
ddemidov commented
The workaround we currently use is pip install evdev==1.0.0
dlech commented
You need 4.4 or newer kernel headers.
python-evdev could add
#ifndef FF_MAX_EFFECTS
#define FF_MAX_EFFECTS FF_GAIN
#endif
for backwards compatibility
gvalkov commented
Thanks for the catch!. Fixed in evdev 1.1.2.