Page 1 of 1

How to compile vlc-0.7.2-win32-noupx?

Posted: 18 Aug 2004 09:04
by Sau
how to compile noupx one?
I use cygwin (1.5.10-3, gcc-3.3.3-2, without upx tools install) to compile a new vlc.exe, but the one I compile is much slower than vlc-0.7.2-win32-noupx that I download from http://download.videolan.org/pub/testing/win32/ .

The contrib package I use is contrib-20040520-win32-bin-gcc3.3.1-only.tar.bz2

The vlc source code is download from http://www.videolan.org/,
the version is vlc-0.7.2.tar.gz.

my config file is (I use the config file from INSTALL.win32 )
---------------------------------------------------
./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-release

make
---------------------------------------------------

The Cygwin installation is followed "Working Cygwin VLC Compile Environment (WinXP/Win2K)".
My System is Windows2000, Intel P4 2.4G, 512 MB RAM.

Any thing I have to notice to compile noupx vlc.exe?

Posted: 18 Aug 2004 13:12
by markfm
That looks pretty normal/reasonable.

Have you tried opening VLC, exiting it, then restarting it? I don't quite know why, but sometimes I see it take 4 or 5 seconds for the first open, but then follow-on will be about 1 second.

Also, is your disk defragmented OK?

Posted: 18 Aug 2004 13:25
by Gibalou
The upx compression in 0.7.2 is only done during the packaging stage so by simply doing a make, you have a noupx version.
However the packaging stage also strips the binaries of all the debuggin symbols which does reduce the size of the final binary, so I would advise you to go through this step anyway.

Once "make" is done, just do a "make package-win32-base". If no upx is installed on your cygwin, then you'll end-up with a vlc-0.7.2 subdirectory containing all the necessary files for VLC.

Posted: 19 Aug 2004 03:51
by Sau
Reply markfm:

I had tried opening VLC, exiting it, then restarting it. It doesn't work...
The noupx one download from web site and my noupx one are executed on the same pc, but the result is different between the two...
I had tried 3 different PCs. (windows2000 with P4, windows2000 with P3, windowsXP with P4). But the results are the same.

I think it is the problem of cygwin environment, but I don't know what the problem exactly is...

What's the gcc version you using? contrib package?

Posted: 19 Aug 2004 04:00
by Sau
Reply Gibalou:

Thanks for your reply.

The vlc.exe I run is already stripped (make package-win32-base).
And no upx is installed on my cygwin.
But my noupx vlc.exe is running so slow, even restart it...

Somebody help me... ><

Posted: 19 Aug 2004 04:00
by Sau
Reply Gibalou:

Thanks for your reply.

The vlc.exe I run is already stripped (make package-win32-base).
And no upx is installed on my cygwin.
But my noupx vlc.exe is running so slow, even restart it...

Somebody help me... ><

Posted: 19 Aug 2004 12:42
by markfm
I do use one other switch, --enable-optimizations \
don't know if that would do anything for you.

Posted: 19 Aug 2004 15:25
by Sau
"--enable-optimizations" doesn't work... ><

It just like that WindowsXP can't reuse the memory of vlc.exe when exiting it then restarting it.

Maybe I should give up and try to make a smaller vlc.exe...

Gibalou and markfm, thanks for your help!