도와주세요!!
글 수 15,339
2006.05.18 09:43:24 (*.49.88.155)
6671
안녕하세요...
Jpeg 컴파일을 다음과 같이 해 보세요..
jpeg-6b.tar 또는 libjpeg-6b-5.src.rpm 를 다운받은 파일의 tar를 풀고, 해당 디렉토리로 이동한 후
# export CC= arm-linux-gcc
# export CXX= arm-linux-g++
# export AR= arm-linux-ar
# export LD= arm-linux-ld
# export RANLIB= arm-linux-ranlib
# ./configure --prefix=/usr/arm-linux --enable-shared
# make
# make install-lib
이렇게 하면 /usr/arm-linux/lib/ 디렉토리 밑에 다음의 파일 들이 생성됩니다.
libjpeg.a
libjpeg.la
libjpeg.so -> libjpeg.so.62.0.0
libjpeg.so.62 -> libjpeg.so.62.0.0
libjpeg.so.62.0.0
그럼 수고하세요.
>
>로지텍 퀵캠 연결시 문제점
>
>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
>
Jpeg 컴파일을 다음과 같이 해 보세요..
jpeg-6b.tar 또는 libjpeg-6b-5.src.rpm 를 다운받은 파일의 tar를 풀고, 해당 디렉토리로 이동한 후
# export CC= arm-linux-gcc
# export CXX= arm-linux-g++
# export AR= arm-linux-ar
# export LD= arm-linux-ld
# export RANLIB= arm-linux-ranlib
# ./configure --prefix=/usr/arm-linux --enable-shared
# make
# make install-lib
이렇게 하면 /usr/arm-linux/lib/ 디렉토리 밑에 다음의 파일 들이 생성됩니다.
libjpeg.a
libjpeg.la
libjpeg.so -> libjpeg.so.62.0.0
libjpeg.so.62 -> libjpeg.so.62.0.0
libjpeg.so.62.0.0
그럼 수고하세요.
>
>로지텍 퀵캠 연결시 문제점
>
>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
>