windows平台下vlc编译之四:精简vlc
2009-10-24 00:00:00 来源:WEB开发网脚本请参考:
./configure -h
以及:http://www.jbkempf.com/blog/post/2007/12/14/Configure-step-in-VLC-building
make通过只后,删除locale文件夹,这个文件夹是用本地语言作界面的。删除plugins中的200多dll,只保留:
libaccess_file_plugin.dll
libaout_directx_plugin.dll
libasf_plugin.dll
libaudio_format_plugin.dll
libavcodec_plugin.dll
libavformat_plugin.dll
libavi_plugin.dll
libconverter_fixed_plugin.dll
libconverter_float_plugin.dll
libhotkeys_plugin.dll
liblive555_plugin.dll
libmpeg_audio_plugin.dll
libpacketizer_copy_plugin.dll
libpacketizer_h264_plugin.dll
libpacketizer_vc1_plugin.dll
libplaylist_plugin.dll
librc_plugin.dll
librtp_plugin.dll
libsubtitle_plugin.dll
libtrivial_channel_mixer_plugin.dll
libtrivial_mixer_plugin.dll
libts_plugin.dll
libugly_resampler_plugin.dll
libvout_directx_plugin.dll
libwaveout_plugin.dll
再用.nsi脚本编译,修改n个错误之后就生成了较小的安装文件了。
3. 精简vlc-0.8.6i
脚本configure-vlc02.sh(见附件)如下:
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 \
--with-freetype-config-path=/usr/win32/bin \
--with-fribidi-config-path=/usr/win32/bin \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--with-ffmpeg-zlib \
--enable-live555 --with-live555-tree=/usr/win32/live.com \
--disable-nls \
--disable-cddax \
--disable-vcdx \
--disable-skins2 \
--disable-wxwidgets \
--disable-mozilla \
--disable-httpd \
--disable-dvdnav \
--disable-libcdio \
--disable-libcddb \
--disable-cdda \
--disable-sdl \
--disable-sdl-image \
--disable-vcd \
--disable-dvdread \
--disable-smb \
--disable-cmml \
--disable-alsa \
--disable-opengl \
--disable-png \
--disable-screen \
--disable-mkv \
--disable-mod \
--disable-mpc \
--disable-libtar \
--disable-speex \
--disable-visual \
--disable-daap \
--disable-bonjour \
--disable-gnutls \
--disable-vorbis \
--disable-dts \
--disable-real \
--disable-xml \
--disable-x264 \
--enable-sout \
--enable-activex \
--enable-shared-libvlc \
--enable-release
make之后删除http,locale,skins,osdmenu文件夹,plugins保留:
libaccess_file_plugin.dll
libaccess_udp_plugin.dll
libaout_directx_plugin.dll
libasf_plugin.dll
libaudio_format_plugin.dll
libavi_plugin.dll
libffmpeg_plugin.dll
libfloat32tos16_plugin.dll
libfloat32_mixer_plugin.dll
libipv4_plugin.dll
libmpeg_audio_plugin.dll
libmpgatofixed32_plugin.dll
librc_plugin.dll
libs16tofixed32_plugin.dll
libs16tofloat32swab_plugin.dll
libs16tofloat32_plugin.dll
libs8tofloat32_plugin.dll
libsubtitle_plugin.dll
libtrivial_channel_mixer_plugin.dll
libtrivial_mixer_plugin.dll
libts_plugin.dll
libu8tofixed32_plugin.dll
libu8tofloat32_plugin.dll
libugly_resampler_plugin.dll
libvobsub_plugin.dll
libvout_directx_plugin.dll
libwaveout_plugin.dll
使用.nsi脚本来做安装文件就ok了。
出处: http://jeremiah.blog.51cto.com/539865/116702
本文示例源代码或素材下载
更多精彩
赞助商链接