[vlc-devel] undefined symbols linking ffmpeg in vlc-trunk (0.8.2) under cygwin

Aaron Lee waifunlee at gmail.com
Mon Feb 21 19:56:09 CET 2005


Hi,

I just downloaded the ffmpeg source and attempted to use it to link
with the latest vlc-trunk (In order to reduce the size of
libavcodec.a)  Unfortunately I got a lot of undefined references in
libavformat.a regarding assert, ctype, socket , errno and ioctl. Any
ideas? Does anyone know how to make libavformat.a working with VLC?

Here's configure flags I use to create libavformat.a and libavcodec.a

./configure --cc="gcc -mno-cygwin" --enable-memalign-hack
--enable-mp3lame --disable-vorbis --disable-xvid --enable-pp
--enable-gpl --disable-debug --enable-opts  --disable-vhook
--enable-strip --disable-amr_nb --disable-amr_nb-fixed
--disable-amr_wb  --disable-a52 --disable-ffserver --disable-ffplay

And here's the flag I used in compiling vlc:

./bootstrap 
export CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" 
export LDFLAGS=-L/usr/win32/lib 
export CC="gcc -mno-cygwin $CPPFLAGS" CXX="g++ -mno-cygwin $CPPFLAGS" 

The final linking step is:
gcc -mno-cygwin -I/usr/win32/include -I/usr/win32/include/ebml
-Wsign-compare -Wall -mms-bitfields -pipe
-L/cygdrive/d/ffmpeg-cvs/ffmpeg/libavcodec
-L/cygdrive/d/ffmpeg-cvs/ffmpeg/libavformat -L/usr/win32/lib -o
vlc.exe src/vlc-vlc.o lib/libvlc.a share/vlc_win32_rc.o
./modules/misc/memcpy/libmemcpymmx.a
./modules/video_chroma/libi420_rgb_mmx.a
./modules/video_chroma/libi422_yuy2_mmx.a
./modules/video_chroma/libi420_ymga_mmx.a
./modules/video_chroma/libi420_yuy2_mmx.a
./modules/misc/memcpy/libmemcpymmxext.a
./modules/misc/memcpy/libmemcpy3dn.a
./modules/audio_filter/converter/libmpgatofixed32.a
./modules/codec/ffmpeg/libffmpeg.a -L/usr/local/lib -lkernel32
/usr/win32/lib/libiconv.a /usr/win32/lib/libintl.a
/usr/win32/lib/libiconv.a -lws2_32 -lnetapi32 -lwinmm -mwindows
-L/usr/win32/lib -lmad -L/usr/win32/include/.libs  
-L/usr/win32/lib/lib -lavformat -lz -lavcodec -lz -lfaac -lmp3lame

-Aaron

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list