Page 1 of 1

CYGWin Compilation

Posted: 22 Jul 2006 19:46
by bijoy.sivan
Hi,

I would like to get following clarifications on vlc on cygwin:

Is there anyone who contributes to the VLC development using the CYGWIN environment ?

Has anyone compiled vlc source successfully using CYGWIN ?

Posted: 23 Jul 2006 00:50
by Lurker
I did with version 0.8.5. No problems, if you don't try to put the engine into a DLL, or to static link with all the modules and plugins.

cygwin compilation

Posted: 23 Jul 2006 01:01
by bijoy.sivan
Thanks for the reply

Did u follow the contrib way ?

Posted: 23 Jul 2006 02:22
by Lurker
Yes.

Posted: 23 Jul 2006 05:52
by shreyas
i was able to compile successfully just a few days back. in between my system crashed and i compiled again. it compiled successfully but while i start it, it shows no gui. i have also tried it with older vlc -sourcecode and older contrib and older gcc... with diffrent configurations with no gain..:(

does anybody know or even guess what the problem might be?
is the problem with cygwin or is it something else... but then vlc compiled without any error...?? *confused*
---
shreyas

cygwin compilation

Posted: 23 Jul 2006 07:56
by bijoy.sivan
Could u pls try out with revision 16066 and the lastest contrib ?

I am trying this out now.

This was a pointer given by Trax.

Posted: 23 Jul 2006 13:39
by shreyas
hmm... i'll give it a try... just now.
will post the results if unsuccessful ... and will definately post if sucessful...;)

Posted: 23 Jul 2006 13:46
by shreyas
oh... wait. is there any way of downloading this source code without svn....? i am behind a proxy server ..:(

Posted: 23 Jul 2006 14:15
by dionoea
http://nightlies.videolan.org has daily source code packages available

cygwin compilation

Posted: 23 Jul 2006 14:25
by bijoy.sivan
Same error: VLC opening only in rc interface

cygwin compilation

Posted: 23 Jul 2006 19:11
by bijoy.sivan
I am getting the following error : How to rectify this ?

checking if $CXX accepts -fpermissive... yes

Warning: No config found to match: /usr/win32/bin/wx-config --unicode
in /usr/win32/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.

configure: WARNING: Probe disc disabled because ok libcdio library not found
configure: WARNING: VCD information on Probe disc disabled because ok libvcdinfo
not found
checking wx/wxprec.h usability... yes
checking wx/wxprec.h presence... yes
checking for wx/wxprec.h... yes
checking Cocoa/Cocoa.h usability... no

Lurker : Cygwin compilation

Posted: 31 Jul 2006 06:13
by bijoy.sivan
Lurker:

I did with version 0.8.5. No problems, if you don't try to put the engine into a DLL, or to static link with all the modules and plugins.

>> Which way did u use ? Static or Dynamic.
How can we specify that

Posted: 31 Jul 2006 14:22
by Lurker
See the following options (./configure --help):

--enable-shared-libvlc
--disable-plugins
--enable-mostly-builtin

By default they are in good states which do not prevent building. However, the release version is built with --enable-shared-libvlc.

cygwin compilation

Posted: 31 Jul 2006 16:59
by bijoy.sivan
could you please post the configure file that you have used ?

Here is my current ./configure-vlc 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 \

cygwin compilation

Posted: 01 Aug 2006 06:03
by bijoy.sivan
I have set the variables as per ur inputs: Now I am getting the following error:


/usr/win32/lib/libtwolame.a(get_set.o):get_set.c:(.text+0x100): multiple definit
ion of `_lame_set_scale_left'
/usr/win32/lib/libmp3lame.a(set_get.o):set_get.c:(.text+0x9c): first defined her
e
/usr/win32/lib/libtwolame.a(get_set.o):get_set.c:(.text+0x140): multiple definit
ion of `_lame_set_scale_right'
/usr/win32/lib/libmp3lame.a(set_get.o):set_get.c:(.text+0xc3): first defined her
e
Creating library file: ../src/libvlc.dll.a
collect2: ld returned 1 exit status
make[4]: *** [libvlc.dll] Error 1
make[4]: Leaving directory `/home/Administrator/vlc-0.8.5/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/Administrator/vlc-0.8.5/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Administrator/vlc-0.8.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Administrator/vlc-0.8.5'
make: *** [all] Error 2

Posted: 01 Aug 2006 15:47
by Lurker
Here it is:

Code: Select all

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 \ --enable-dts \ --disable-debug \ --disable-activex \ --enable-shout \ --enable-realrtsp \ --enable-real
I'd suggest to "make clean" and "make distclean" before to be safe.

cygwin compilation

Posted: 01 Aug 2006 16:02
by bijoy.sivan
Thanks, will try this out and post the result

cygwin compilation

Posted: 01 Aug 2006 18:48
by bijoy.sivan
Thank you so much Lurker.

It got compiled and working with full GUI

I m so thrilled to see it working.