#288 Compilation error under Mac OS X

open
nobody
5
2011-07-05
2011-07-05
Alexey Grachov
No

I have a error on compiling the latest piklab version from SVN:

[ 6%] Building CXX object src/common/port/CMakeFiles/port.dir/hid_port.o
/Users/alexey/piklab/trunk/piklab/src/common/port/hid_port.cpp:16:26: error: linux/hiddev.h: No such file or directory
/Users/alexey/piklab/trunk/piklab/src/common/port/hid_port.cpp: In static member function ‘static bool Port::HID::getDeviceIds(uint, uint&, uint&)’:
/Users/alexey/piklab/trunk/piklab/src/common/port/hid_port.cpp:39: error: ‘hiddev_devinfo’ was not declared in this scope
/Users/alexey/piklab/trunk/piklab/src/common/port/hid_port.cpp:39: error: expected `;' before ‘info’
/Users/alexey/piklab/trunk/piklab/src/common/port/hid_port.cpp:40: error: ‘HIDIOCGDEVINFO’ was not declared in this scope
/Users/alexey/piklab/trunk/piklab/src/common/port/hid_port.cpp:40: error: ‘info’ was not declared in this scope
make[2]: *** [src/common/port/CMakeFiles/port.dir/hid_port.o] Error 1
make[1]: *** [src/common/port/CMakeFiles/port.dir/all] Error 2
make: *** [all] Error 2

Discussion

  • Alain Portal
    Alain Portal
    2011-12-13

    You need kernel headers to compile piklab