ffmpeg를 이용한 mpeg4 decoder를 제작하고 있습니다. 그런데 처음부터 link error가..
최신버젼의 ffmpeg cvs를 이용하여 다운받아 윈도우 환경에서 ./configure --enable-static --disable-shared --enable-memalign-hack --extra-cflags=-I/local/include --extra-ldflags=-L/local/lib --prefix=/usr 로 configure를 수행한 후 make, make install까지 수행하여 libavcodec.a파일을 얻었습니다.
그래서 이것과 apiexample.c를 이용하여 mpeg decoder를 Microsoft Visual Studio 2008환경에서 제작하려
합니다.
그래서 간단히 Decoder DLL을 제작하기 위하여 간단한 예제소스를 작성한 후 컴파일을 하였습니다.
당연히 link에 libavcodec.a을 포함하였습니다.
그런 후 발생하는 error들은 모두 잡았지만 LNK error가 발생합니다.
error LNK2019: unresolved external symbol "void __cdecl av_free(void *)"
error LNK2019: unresolved external symbol "int __cdecl avcodec_close(struct AVCodecContext *)"
error LNK2019: unresolved external symbol "int __cdecl avcodec_open(struct AVCodecContext *,struct AVCodec *)"
... 등 10개의 link error가 발생합니다.
환경설정에서 부족한 것인지...
정확한 이유를 알 수 없어 고수님들께 질문 드립니다. 부탁드립니다. 도와주세요!!


댓글 달기