도와주세요!!
글 수 15,339
2006.05.18 04:24:26 (*.249.126.10)
6682
로지텍 퀵캠 연결시 문제점
1. jpeg 컴파일시 libjpeg.a 파일만 생성됨
(Makefile에서 " LIPTOOL = ./libtool"부분을 " LIPTOOL ="로 수정시)
(수정안하면 아래 글에서와 같은 에러 발생)
2. libjpeg.a파일만 가지고 mvc 컴파일시 다음과 같은 에러 발생
(mvc-0.8.9)
------------------에러 내용 ------------------------------------
arm-linux-gcc -O2 -Wall -g -I. -I/usr/arm-linux/include -DHAVE_JPEG -c mvc.c
In file included from /usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/include/videodev.h:8,
from mvc.c:37:
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/sys-include/linux/videodev2.h:436: error: parse error before '*' token
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/sys-include/linux/videodev2.h:438: error: parse error before '*' token
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/sys-include/linux/videodev2.h:439: error: parse error before '}' token
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/sys-include/linux/videodev2.h:810: error: field `win' has incomplete type
In file included from mvc.c:37:
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/include/videodev.h:225: error: parse error before '*' token
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/include/videodev.h:226: error: conflicting types for 'clipcount'
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/sys-include/linux/videodev2.h:437: error: previous declaration of 'clipcount' was here
/usr/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/include/videodev.h:232: error: parse error before '}' token
mvc.c: In function `v4l_init':
mvc.c:302: error: storage size of 'vid_win' isn't known
mvc.c:411: error: invalid application of `sizeof' to incomplete type `video_window'
mvc.c:414: error: invalid application of `sizeof' to incomplete type `video_window'
mvc.c:302: warning: unused variable `vid_win'
make: *** [mvc.o] 오류 1