I'm compiling vlc under cygwin, and here is the contents my configure script file:
./bootstrap && \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
--enable-sdl --with-sdl-config-path=/usr/win32/bin --disable-gtk \
--enable-nls \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \
--with-wx-config-path=/usr/win32/bin \
--with-freetype-config-path=/usr/win32/bin \
--with-fribidi-config-path=/usr/win32/bin \
--enable-live555 --with-live555-tree=/usr/win32/live.com \
--enable-caca --with-caca-config-path=/usr/win32/bin \
--with-xml2-config-path=/usr/win32/bin \
--with-dvdnav-config-path=/usr/win32/bin \
--disable-cddax --disable-vcdx --enable-goom \
--enable-twolame --enable-dvdread \
--disable-gnomevfs \
--enable-dts \
--enable-debug \
--enable-real \
--enable-loader \
inorder to add realaudio codec module, I used --enable-real and --enable-loader.
Then I encounted errors:
make[1]: Entering directory `/usr/vlc-0.8.6a'
Making all in intl
make[2]: Entering directory `/usr/vlc-0.8.6a/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/vlc-0.8.6a/intl'
Making all in loader
make[2]: Entering directory `/usr/vlc-0.8.6a/loader'
if /bin/sh ../libtool --mode=compile gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I.. -D__WINE__ -DHAVE
_SYS_MMAN_H=1 -DHAVE_VSSCANF=1 -DWIN32_PATH=\"\" -DTRACE\(...\)=\(void\)0 -I/usr/win32/include -I/us
r/win32/include/ebml -D_OFF_T_ -D_off_t=long -DSYS_MINGW32 -I../include -fno-PIC `../vlc-config --cf
lags` -U_FILE_OFFSET_BITS -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wsign-compare -Wall
-mms-bitfields -pipe -MT pe_image.lo -MD -MP -MF ".deps/pe_image.Tpo" \
-c -o pe_image.lo `test -f 'pe_image.c' || echo './'`pe_image.c; \
then mv -f ".deps/pe_image.Tpo" ".deps/pe_image.Plo"; \
else rm -f ".deps/pe_image.Tpo"; exit 1; \
fi
gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I.. -D__WINE__ -DHAVE_SYS_MMAN_H=1 -DHAVE_VSSCANF=1 -DWIN3
2_PATH=\"\" "-DTRACE(...)=(void)0" -I/usr/win32/include -I/usr/win32/include/ebml -D_OFF_T_ -D_off_t
=long -DSYS_MINGW32 -I../include -fno-PIC -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98
-D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR=\"/usr/local/share/loca
le\" -DDATA_PATH=\"/usr/local/share/vlc\" -DPLUGIN_PATH=\"/usr/local/lib/vlc\" -DDEBUG -O3 -ffast-ma
th -funroll-loops -mtune=pentium2 -g -U_FILE_OFFSET_BITS -fno-omit-frame-pointer -mno-omit-leaf-fram
e-pointer -Wsign-compare -Wall -mms-bitfields -pipe -MT pe_image.lo -MD -MP -MF .deps/pe_image.Tpo -
c pe_image.c -DDLL_EXPORT -DPIC -o .libs/pe_image.o
pe_image.c:69:22: sys/mman.h: No such file or directory
In file included from pe_image.c:78:
ext.h:17: error: conflicting types for 'wcsnicmp'
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/string.h:175: error: previous
declaration of 'wcsnicmp' was here
ext.h:17: error: conflicting types for 'wcsnicmp'
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/string.h:175: error: previous
declaration of 'wcsnicmp' was here
pe_image.c: In function `dump_exports':
......
seems there are problems in loader,can anybody help?