[vlc-devel] Compile error for cygwin

Tim Shephard tshephard at gmail.com
Tue Sep 21 13:30:47 CEST 2004

Trying to build 0.7.2

Installed latest cygwin on win2000

./bootstrap && \
 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-sdl --disable-gtk \                                         
--enable-nls \                                                        
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \            
--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-livedotcom --with-livedotcom-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 \                        

Here's the compile error:

intf.o -MD -MP -MF ".deps/libdvdplay_plugin_a-intf.Tpo" -c -o
intf.o `test -f 'intf.c' || echo './'`intf.c; \
then mv -f ".deps/libdvdplay_plugin_a-intf.Tpo" ".deps/libdvdplay_plugin_a-intf.
Po"; else rm -f ".deps/libdvdplay_plugin_a-intf.Tpo"; exit 1; fi
In file included from intf.c:29:
/usr/i686-pc-mingw32/include/unistd.h:23: error: parse error before "off_t"
/usr/i686-pc-mingw32/include/unistd.h:24: error: parse error before "off_t"
/usr/i686-pc-mingw32/include/unistd.h: In function `ftruncate':
/usr/i686-pc-mingw32/include/unistd.h:26: error: `__fd' undeclared (first use in
 this function)
/usr/i686-pc-mingw32/include/unistd.h:26: error: (Each undeclared identifier is
reported only once
/usr/i686-pc-mingw32/include/unistd.h:26: error: for each function it appears in
/usr/i686-pc-mingw32/include/unistd.h:26: error: `__length' undeclared (first us
e in this function)
make[6]: *** [libdvdplay_plugin_a-intf.o] Error 1

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