Configure

From VideoLAN Wiki
Revision as of 08:46, 9 October 2008 by Yanzifei (talk | contribs)
Jump to navigation Jump to search

configure (also known as ./configure) is a BASH script used to gather information about your computer and select options on what to link to and how. Before running make (which compiles vlc), you should run configure. balenciaga bag balenciaga handbag balenciaga handbags balenciaga balenciaga bags chloe bag chloe paddington chloe bags chloe handbag chloe handbags chloe paddington bags chloe paddington bag chloe purse chloe paddington handbag chloe uk dolce gabbana dolce bag dolce gabbana handbags dolce gabbana bag dolce gabbana handbag dior bag dior handbag vintage dior christian dior bag dior handbags dior uk fendi handbags fendi bag fendi purses fendi hand bag fendi spy bag fendi bags discount fendi gucci handbags gucci handbag gucci bag gucci bags gucci wallet gucci vintage gucci online gucci purse gucci fashion hermes birkin hermes kelly bag hermes bag hermes bags hermes birkin bag hermes handbags louis vuitton handbags cheap louis vuitton louis vuitton uk louis vuitton louis vuitton bags buy louis vuitton lv handbag louis vuitton handbag vuitton handbags louis vuitton bag louis vuitton mulberry bag mulberry handbags mulberry handbag mulberry purse mulberry purses discount mulberry discount mulberry handbags mulberry purses mulberry bag prada prada bag prada handbag prada handbags prada bags prada wallets prada hand bags prada handbags gucci uk buy gucci gucci wallets gucci purse gucci fashion cheap gucci gucci online prada bags prada wallets prada purse prada uk prada purse louis vitton wallet louis vuitton purses louis vuitton speedy handbags uk clutch bags ladies bags womens handbag womens handbag fashion handbag luxury handbag leather handbags evening handbag handbags online ladies handbag fashion handbags handbags uk cheap handbags women's handbag bridesmaids dress cheap wedding Dresses 吊索具 HR handbag ladyshoes ansun 手袋 女装鞋 安信 roll forming 冷弯型钢 房地产律师 合同纠纷 糖尿病足 精密铸造 溃疡性结肠炎 结肠炎 肠炎 条码打印机 条形码打印机 中央空调风管清洗 化学清洗 中央空调清洗 空调清洗 清洗公司 英语口语 英语培训 北京安装卫星电视 安装卫星天线 安装卫星电视 温控器 learn mandarin learning Chinese Chinese learn Chinese language 美术培训 画室 美术高考 空气净化器 工业除湿机 抽湿机 除湿机 振动试验机 低温试验箱 高低温箱 盐雾试验箱 盐雾箱 振动台 恒温恒湿箱 恒温恒湿试验箱 高低温试验箱 生活随笔 工作感想 If you are compiling source from Git, then you should run ./bootstrap before running configure.

You can run configure like this:

./configure --options

Options

Below are some common options for configure:

option meaning
--prefix=/home/user/vlc/ Sets the location of where to install vlc
--enable-flac Turns on support for FLAC audio files
--enable-ffmpeg Links with ffmpeg
--with-ffmpeg-tree=/home/user/ffmpeg Location of ffmpeg source code

See `./configure --help' for more information.

Examples

Linux

./configure --enable-x11 --enable-xvideo --disable-gtk \
--enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame \
--enable-mad --enable-libdvbpsi --enable-a52 --enable-dts \
--enable-libmpeg2 --enable-dvdnav --enable-faad \
--enable-vorbis --enable-ogg --enable-theora --enable-faac\
--enable-mkv --enable-freetype --enable-fribidi \
--enable-speex --enable-flac --enable-livedotcom \
--with-livedotcom-tree=/usr/lib/live --enable-caca \
--enable-skins --enable-skins2 --enable-alsa --disable-kde\
--disable-qt --enable-wxwindows --enable-ncurses \
--enable-release 

Linux GIT

./configure --enable-x11 --enable-xvideo --disable-gtk \
--enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame \
--enable-mad --enable-libdvbpsi --enable-a52 --enable-dca \
--enable-libmpeg2 --enable-dvdnav --enable-faad \
--enable-vorbis --enable-ogg --enable-theora --enable-faac\
--enable-mkv --enable-freetype --enable-fribidi \
--enable-speex --enable-flac --enable-livedotcom \
--with-livedotcom-tree=/usr/lib/live --enable-caca \
--enable-skins --enable-skins2 --enable-alsa --disable-kde\
--disable-qt --enable-wxwindows --enable-ncurses \
--enable-asa --enable-release 

Windows

From http://developers.videolan.org/vlc/vlc/INSTALL.win32

If you are cross-compiling from Debian, you can use something along those lines:

 ./bootstrap && \
 PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig \
 CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
 LDFLAGS=-L/usr/win32/lib \
 CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \
 ./configure --host=i586-mingw32msvc --build=i386-linux \
     --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 \
     --enable-debug

If you are using cygwin, you can build VLC with or without the POSIX emulation layer. Without is usually better and with POSIX emulation hasn't been tested in about a year or so. So to build without the emulation layer, use something like this:

 ./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 \
     --enable-debug

If you want to use the emulation layer, then just omit the CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" line. You're on your own though.

If you are compiling with MSYS/MINGW, then you can use something along those lines:

 ./bootstrap && \
 PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \
 CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
 LDFLAGS=-L/usr/win32/lib \
 ./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-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

If you have used the "extras/contrib" way, you don't need to precise the CFLAGS, LDFLAGS and --with-foo-config-path=.

./bootstrap && \
 ./configure \
     --disable-gtk \
     --enable-nls --enable-sdl \
     --enable-ffmpeg --enable-faad --enable-flac --enable-theora \
     --disable-cddax --disable-vcdx --enable-goom \
     --enable-twolame --enable-dvdread \
     --enable-mkv --enable-caca --enable-live555\
     --enable-debug