marcogulino / AndroidUsbCamera

Android USB Camera Driver/Bridge for GNU/Linux
178 stars 104 forks source link

Ubuntu 11.04 compile error #14

Open ExReanimator opened 13 years ago

ExReanimator commented 13 years ago

Videodev.h library is no longer supporting in kernel.

$ make [ 11%] Built target qtInterfaces_lib [ 17%] Building CXX object src/CMakeFiles/AndroidUsbCameraStaticLib.dir/framesconverter.cpp.o AndroidUsbCamera/src/framesconverter.cpp:32:28: fatal error: linux/videodev.h: No such file or directory compilation terminated. make[2]: * [src/CMakeFiles/AndroidUsbCameraStaticLib.dir/framesconverter.cpp.o] Error 1 make[1]: * [src/CMakeFiles/AndroidUsbCameraStaticLib.dir/all] Error 2 make: *\ [all] Error 2

00091701 commented 12 years ago

I have the same problem.

jalcine commented 12 years ago

Same here, I've forked this project and revamping it.

I just wish that the Android source code was available; I have to re-write that from source as well. Oh well :)

jalcine commented 12 years ago

I should note that you can fix this by just changing

#include <linux/videodev.h>

to

#include <linux/videodev2.h>

The old file isn't in Linux 2.6.38.x +

http://www.pclinuxos.com/forum/index.php?topic=92683.0