프로젝트
[감시 카메라] 각종 에러 및 해결 모음
appHunter
2009. 5. 6. 22:00
글을 다 날려서 다시 적는다. !! (2009-05-06에 날림)
2006/06/14 xx:xx 원본보기
1. 컴파일 오류
2. videodev 관련 컴파일 오류
3. math 함수 컴파일 오류
4. 비디오 디바이스가 없을 때
2006/06/14 xx:xx 원본보기
1. 컴파일 오류
In file included from main.h:5,
from main.c:1:
videodev.h:55: parse error before "ulong"
videodev.h:55: warning: no semicolon at end of struct or union
videodev.h:71: parse error before '}' token
In file included from main.h:14,
from main.c:1:
/usr/include/signal.h:90: `signal' redeclared as different kind of symbol
videodev.h:70: previous declaration of `signal'
make: *** [main.o] 오류 1
from main.c:1:
videodev.h:55: parse error before "ulong"
videodev.h:55: warning: no semicolon at end of struct or union
videodev.h:71: parse error before '}' token
In file included from main.h:14,
from main.c:1:
/usr/include/signal.h:90: `signal' redeclared as different kind of symbol
videodev.h:70: previous declaration of `signal'
make: *** [main.o] 오류 1
include<sys/types.h> 을 해야 한다.
2. videodev 관련 컴파일 오류
videodev2.h:437: warning: no semicolon at end of struct or union
videodev2.h:437: parse error before '*' token
videodev2.h:439: parse error before '*' token
videodev2.h:439: warning: data definition has no type or storage class
videodev2.h:440: parse error before '}' token
.... 생략
videodev2.h:437: parse error before '*' token
videodev2.h:439: parse error before '*' token
videodev2.h:439: warning: data definition has no type or storage class
videodev2.h:440: parse error before '}' token
.... 생략
videodev.h 파일을 폴더에 복사 후
#include "videodev.h" 한다.
#include "videodev.h" 한다.
3. math 함수 컴파일 오류
/tmp/cckfsh3y.o(.text+0x198): In function `img_save':
: undefined reference to `pow'
collect2: ld returned 1 exit status
: undefined reference to `pow'
collect2: ld returned 1 exit status
gcc -o v4l2 v4l_mcam.c -lm ( 2.4.x 버젼 )
4. 비디오 디바이스가 없을 때
mknod /dev/video0 c 81 0