2008-09-21, 11:44
I'm trying to compile libwebcam for a gumstix computer, which uses open embedded on arm. I got the latest version of cmake , created a toolchain file and ran cmake in the build directory. All seems well. Then when I run make, I get this error:
Code:
Scanning dependencies of target webcam
[ 16%] Building C object Libs/libwebcam/CMakeFiles/webcam.dir/libwebcam.o
[ 33%] Building C object Libs/libwebcam/CMakeFiles/webcam.dir/dynctrl.o
In file included from /home/randall/downloads/tarballs/libwebcam-0.1.1/Libs/libwebcam/dynctrl.c:43:
/home/randall/downloads/tarballs/libwebcam-0.1.1/Libs/libwebcam/libwebcam.h:131: error: ‘NAME_MAX’ undeclared here (not in a function)
make[2]: *** [Libs/libwebcam/CMakeFiles/webcam.dir/dynctrl.o] Error 1
make[1]: *** [Libs/libwebcam/CMakeFiles/webcam.dir/all] Error 2
make: *** [all] Error 2
I'm not sure what's the root of the problem here. Any idea?
Randall