Unable to compile VLC with cygwin
Posted: 14 Jan 2008 19:38
Hi I am trying to compile vlc-0-8-6d following the instruction in the INSTALL.win32. I am trying in windows Vista and XP. The first problem is in my XP where I have the vlc.0.8.6d source and I have tried with two contrib package giving me the same error: contrib-20070412-win32-0.8.6b-bin-gcc-3.4.5 and contrib-20071121-win32-0.8.6d-bin-gcc-3.4.5 ( I have took it because I have seen http://download.videolan.org/pub/vlc/0.8.6d/win32/ finding out about the error). the configure script is the same that is specified in INSTALL.win32 file into the vlc source:
./bootstrap && \
PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
--disable-gtk \
--enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
--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-mkv \
--enable-debug
I can make properly the ../configure-vlc.sh and the make reports me this error (option XP):
[...]
In file included from file.c:30:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/sys/stat.h:113: error: parse error before "off_t"
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/sys/stat.h:118: error: parse error before '}' token
make[4]:***[libaccess_output_file_plugin_a-filr.o] Error 1
make[4]: Leaving directory '/home/Administrador/vlc-0.8.6d/modules/access_output'
make[3]: *** [all-modules] error 1
make[3]: Leaving directory '/home/Administrador/vlc-0.8.6d/modules/'
make[2]: *** [all-recusive] error 1
make[2]: Leaving directory '/home/Administrador/vlc-0.8.6d/modules/'
make[1]: *** [all-recusive] error 1
make[1]: Leaving directory '/home/Administrador/vlc-0.8.6d/'
make: *** [all] Error 2
./bootstrap && \
PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
--disable-gtk \
--enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
--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-mkv \
--enable-debug
I can make properly the ../configure-vlc.sh and the make reports me this error (option XP):
[...]
In file included from file.c:30:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/sys/stat.h:113: error: parse error before "off_t"
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/sys/stat.h:118: error: parse error before '}' token
make[4]:***[libaccess_output_file_plugin_a-filr.o] Error 1
make[4]: Leaving directory '/home/Administrador/vlc-0.8.6d/modules/access_output'
make[3]: *** [all-modules] error 1
make[3]: Leaving directory '/home/Administrador/vlc-0.8.6d/modules/'
make[2]: *** [all-recusive] error 1
make[2]: Leaving directory '/home/Administrador/vlc-0.8.6d/modules/'
make[1]: *** [all-recusive] error 1
make[1]: Leaving directory '/home/Administrador/vlc-0.8.6d/'
make: *** [all] Error 2