Unable to compile VLC with cygwin

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
hecram
Blank Cone
Blank Cone
Posts: 21
Joined: 10 Dec 2007 19:10
VLC version: 0.8.6.d
Operating System: winXP/linux

Unable to compile VLC with cygwin

Postby hecram » 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
Héctor Rámila Vicario.
Telecommunicaton Engineer UPC Barcelona.

Bumix
New Cone
New Cone
Posts: 3
Joined: 04 Dec 2007 22:31

Re: Unable to compile VLC with cygwin

Postby Bumix » 16 Jan 2008 11:50

I get exactly the same error. Any ideas?

Also, is it normal that it wants to compile to mingw32 (and not cygwin), even if i haven't specified that as the target os?

ssbssa
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 03 May 2007 22:00
VLC version: 2.0.2
Operating System: Windows

Re: Unable to compile VLC with cygwin

Postby ssbssa » 16 Jan 2008 12:15


hecram
Blank Cone
Blank Cone
Posts: 21
Joined: 10 Dec 2007 19:10
VLC version: 0.8.6.d
Operating System: winXP/linux

Re: Unable to compile VLC with cygwin

Postby hecram » 18 Jan 2008 18:13

At last I have been able to compile the the VLC-0.8.6.d through my cygwin. I don't know if this will be used for anyone but I am gonna explain which changes I have done to my successful end for if anyone can be helped:

1st problem: MAKE: Reference to unable to locate the libraries in /home/vieolan/jb/0.8.6-bugfix/extras/contrib/lib. I have created the directory /home/vieolan/jb/0.8.6-bugfix/extras/contrib/ and I've created a symbolic link to /usr/win32/lib/ where they are located all the libraries like livdvdread.a ...

2nd problem: MAKE: regard to the sys/stat.h library I've followed the link viewtopic.php?f=2&t=43367 where MDPI314 propose to comment the line #include <sys/stat> in the files file.c, udp.c in access_out and pes.c in /modules/mux/mpeg in the vlc source directory.

3rd problem: MAKE: regard to library wchar.h where the linker told me "off_t does not name a type". I've defined the type of off_t in the library like a long adding the following lines at the beginning (after definition of time_t):

#itndef _OFF_T DEFINED
typedef long off_t;
#define _OFF_T DEFINED
#endif

Then run make and all works properly.

There is another problem in time to create self-installer package for windows:
the NSIS (intalled in Program files and need to create this file http://wiki.videolan.org/Win32CompileCygwin) complain about mozilla pluggin so I have only commented the line where appears the mozilla_pluggin in the Installer files part of nsi file created after the make in the vlc directory. And then run make package-win32 again.

I hope this can help anyone.
Héctor Rámila Vicario.
Telecommunicaton Engineer UPC Barcelona.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 60 guests