Skip to content

evdev 1.1.0 fails to install on Travis-CI #98

Closed

Description

@ddemidov

The command pip install evdev fails on Travis-CI.

See

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

Activity

  1. ddemidov commented on Aug 31, 2018

    @ddemidov
    Author

    The workaround we currently use is pip install evdev==1.0.0

  2. dlech commented on Aug 31, 2018

    @dlech

    torvalds/linux@33b96d9

    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

  3. gvalkov commented on Sep 1, 2018

    @gvalkov
    Owner

    Thanks for the catch!. Fixed in evdev 1.1.2.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions