[vlc] How to shrink vlc binary size

hu senbo ptg.linux at gmail.com
Fri Jan 5 10:18:54 CET 2007


Hi everybody,

I recently compiled vlc by myself for customization because I want my vlc as
small as possible.
Therefore I disable many options and --disable-static --enable-shared.
After successfully compiled and installed, I find that the size of vlc
executable binary is
so big about 9.6MB. And I find the vlc binary in the debian package is small
(about 1.2MB).
Could anyone give some suggestions that how to make vlc binary as small as
possible?

The following is my configure option.

../vlc-trunk/configure --enable-release \
   --prefix=${HOME}/usr \
   --enable-dependency-tracking \
   --disable-static --enable-shared \
   --enable-x11 \
   --enable-sdl \
   --with-sdl-config-path=/usr/bin \
   --with-sdl-prefix=/usr/include/SDL \
   --enable-ffmpeg --disable-ffmpegaltivec \
   --with-ffmpeg-tree=${SRC_ROOT}/ffmpeg \
   --enable-sout --enable-httpd --enable-vlm \
   --disable-mostly-builtin --enable-plugins \
   --disable-optimize-memory --enable-optimizations \
   --enable-dvbpsi \
   --enable-hal --enable-dbus \
   --disable-a52 --disable-mad \
   --disable-qte --disable-qt4 --disable-opie \
   --disable-libtool --disable-shared-libvlc --disable-debug \
   --disable-rpath --disable-nls \
   --disable-dbus-control --enable-old-dbus \
   --disable-gprof --disable-cprof \
   --disable-altivec \
   --disable-switcher --disable-shout \
   --disable-growl --disable-notify \
   --disable-audioscrobbler --disable-musicbrainz --disable-taglib \
   --disable-live555 \
   --disable-dc1394 --disable-dv \
   --disable-dvdread --disable-dvdnav \
   --disable-dshow --disable-opencv --disable-smb \
   --disable-v4l --disable-v4l2 --disable-pvr \
   --disable-gnomevfs \
   --disable-libcdio --disable-cddax --disable-libcddb \
   --disable-vcdx --disable-cdda --disable-vcd \
   --disable-dvb --disable-screen \
   --disable-ogg --disable-mkv --disable-mod --disable-mpc --disable-gme \
   --disable-faad --disable-twolame \
   --disable-quicktime --disable-real --disable-realrtsp \
   --disable-dts --disable-flac \
   --disable-libmpeg2 --disable-vorbis --disable-tremor --disable-speex \
   --disable-tarkin --disable-theora --disable-dirac \
   --disable-png --disable-x264 \
   --disable-cmml \
   --disable-xvideo --disable-glx --disable-xvmc \
   --disable-xinerama --disable-opengl \
   --disable-freetype --disable-fribidi --disable-libxml2 --disable-svg \
   --disable-snapshot \
   --disable-hd1000v --disable-directx \
   --disable-fb --disable-mga --disable-svgalib --disable-directfb \
   --disable-ggi --disable-glide \
   --disable-aa --disable-caca \
   --disable-wingdi \
   --disable-oss --disable-esd --disable-portaudio --disable-arts
--disable-alsa \
   --disable-waveout --disable-macosx-audio --disable-hd1000a --disable-jack
\
   --disable-cyberlink --disable-upnp --disable-skins2 --disable-pda \
   --disable-wxwidgets \
   --disable-macosx --disable-qnx \
   --disable-ncurses --disable-xosd \
   --disable-visual --disable-galaktos \
   --disable-goom --disable-bonjour --disable-lirc --disable-gnutls \
   --disable-loader --disable-activex --disable-mozilla \
   --disable-python-bindings --disable-java-bindings \
   --disable-testsuite \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20070105/6973fd10/attachment.html>


More information about the vlc mailing list