Difference between revisions of "Configure"

From VideoLAN Wiki
Jump to navigation Jump to search
(Remove many wikilinks. Many of them are Linux-specific and aren't worth articles. Linking to articles in example source code in general can be misleading)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''configure''' (also known as '''./configure''') is a [[wikipedia:bash|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.
+
'''configure''' (also known as '''./configure''') is a gigantic [[wikipedia:bash|shell 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.
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=1 balenciaga bag]
+
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=1 balenciaga handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=1 balenciaga handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=1 balenciaga]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=1 balenciaga bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe paddington]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe paddington bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe paddington bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe purse]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe paddington handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe uk]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dolce gabbana]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dolce bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dolce gabbana handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dolce gabbana bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dolce gabbana handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dior bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dior handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 vintage dior]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 christian dior bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dior handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dior uk]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 fendi handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 fendi bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 fendi purses]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 fendi hand bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 fendi spy bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 fendi bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 discount fendi]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci wallet]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci vintage]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci online]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci purse]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci fashion]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=8 hermes birkin]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=8 hermes kelly bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=8 hermes bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=8 hermes bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=8 hermes birkin bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=8 hermes handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 cheap louis vuitton]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton uk]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 buy louis vuitton]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 lv handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 vuitton handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry purse]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry purses]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 discount mulberry]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 discount mulberry handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry purses]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada wallets]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada hand bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=13 gucci uk]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=13 buy gucci]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=13 gucci wallets]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=14 gucci purse]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=14 gucci fashion]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=14 cheap gucci]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=14 gucci online]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=15 prada bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=15 prada wallets]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=15 prada purse]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=15 prada uk]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=15 prada purse]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=16 louis vitton wallet]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=16 louis vuitton purses]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=16 louis vuitton speedy]
 
[http://www.zhefiry.com/webpage/index.html handbags uk]
 
[http://www.zhefiry.com/webpage/index.html clutch bags]
 
[http://www.zhefiry.com/webpage/index.html ladies bags]
 
[http://www.zhefiry.com/webpage/index.html womens handbag]
 
[http://www.zhefiry.com/webpage/information/how_to_modify.html womens handbag]
 
[http://www.zhefiry.com/webpage/information/how_to_modify.html fashion handbag]
 
[http://www.zhefiry.com/webpage/information/how_to_modify.html luxury handbag]
 
[http://www.zhefiry.com/webpage/information/how_to_modify.html leather handbags]
 
[http://www.zhefiry.com/webpage/information/how_to_track_oder.html evening handbag]
 
[http://www.zhefiry.com/webpage/information/how_to_track_oder.html handbags online]
 
[http://www.zhefiry.com/webpage/information/how_to_track_oder.html ladies handbag]
 
[http://www.zhefiry.com/webpage/information/how_to_change_currency.html fashion handbags]
 
[http://www.zhefiry.com/webpage/information/how_to_change_currency.html handbags uk]
 
[http://www.zhefiry.com/webpage/information/how_to_change_currency.html cheap handbags]
 
[http://www.zhefiry.com/webpage/information/how_to_change_currency.html women's handbag]
 
[http://www.dragonorient.com/cheap-wedding-dress/ bridesmaids dress] 
 
[http://www.dragonorient.com/cheap-wedding-dress/ cheap wedding Dresses] 
 
[http://www.chuangliandsj.com 吊索具] 
 
[http://www.helenarubinstein.cc HR] 
 
[http://www.sako-or.cn/en/brand.php handbag] 
 
[http://www.sako-or.cn/en/brand.php ladyshoes] 
 
[http://www.sako-or.cn/en/brand.php ansun] 
 
[http://www.sako-or.cn 手袋] 
 
[http://www.sako-or.cn 女装鞋] 
 
[http://www.sako-or.cn 安信] 
 
[http://www.baili-rollforming.com/ roll forming] 
 
[http://www.baili-rollforming.com/page/chinese/ 冷弯型钢] 
 
[http://www.law-ssc.com/ 房地产律师] 
 
[http://www.law-ssc.com 合同纠纷] 
 
[http://www.gztao.net/ 糖尿病足] 
 
[http://www.cqdingyao.com/ 精密铸造] 
 
[http://www.cnjcy999.cn/ 溃疡性结肠炎] 
 
[http://www.cnjcy999.cn/ 结肠炎] 
 
[http://www.cnjcy999.cn/ 肠炎] 
 
[http://www.ks8code.com/ 条码打印机] 
 
[http://www.ks8code.com/ 条形码打印机] 
 
[http://www.jiushun.com.cn/Chinese/Bs_Products.asp 中央空调风管清洗] 
 
[http://www.jiushun.com.cn/Chinese/Bs_Products.asp 化学清洗] 
 
[http://www.jiushun.com.cn/Chinese/Bs_Product.asp 中央空调清洗] 
 
[http://www.jiushun.com.cn/Chinese/Bs_Product.asp 空调清洗] 
 
[http://www.jiushun.com.cn/ 清洗公司] 
 
[http://www.zhuoyueenglish.com/ 英语口语] 
 
[http://www.zhuoyueenglish.com 英语培训] 
 
[http://www.bjxytx.com 北京安装卫星电视] 
 
[http://www.bjxytx.com 安装卫星天线] 
 
[http://www.bjxytx.com 安装卫星电视] 
 
[http://www.chinakain.com/Product.asp 温控器] 
 
[http://www.clamandarin.com learn mandarin] 
 
[http://www.clamandarin.com learning Chinese] 
 
[http://www.clamandarin.com Chinese learn] 
 
[http://www.clamandarin.com Chinese language] 
 
[http://www.ja010.com 美术培训] 
 
[http://www.ja010.com 画室] 
 
[http://www.ja010.com 美术高考] 
 
[http://www.chieftech.net.cn/product1.asp 空气净化器] 
 
[http://www.chieftech.net.cn/product-csjs.asp 工业除湿机] 
 
[http://www.chieftech.net.cn/product-csjs.asp 抽湿机] 
 
[http://www.chieftech.net.cn/product-csjs.asp 除湿机] 
 
[http://www.wxboleda.com/ 振动试验机] 
 
[http://www.wxboleda.com/ProductShow.asp?ArticleID=92 低温试验箱] 
 
[http://www.wxboleda.com/ 高低温箱] 
 
[http://www.wxboleda.com/ 盐雾试验箱] 
 
[http://www.wxboleda.com/product.asp 盐雾箱] 
 
[http://www.wxboleda.com/ProductShow.asp?ArticleID=88 振动台] 
 
[http://www.wxboleda.com/product.asp 恒温恒湿箱] 
 
[http://www.wxboleda.com/ProductShow.asp?ArticleID=88 恒温恒湿试验箱] 
 
[http://www.wxboleda.com/ProductShow.asp?ArticleID=92 高低温试验箱] 
 
[http://www.yanzifei.cn 生活随笔]
 
[http://www.yanzifei.cn 工作感想]
 
 
If you are compiling source from [[Git]], then you should run ./bootstrap before running configure.
 
If you are compiling source from [[Git]], then you should run ./bootstrap before running configure.
  
Line 165: Line 6:
 
  ./configure --options
 
  ./configure --options
  
 +
==''Beginner's guide''==
 +
: enter the command
 +
{{%}} ./configure --help | less
 +
and hit enter. Type a slash '/', type "disabled" (without quotes), hit enter. Pressing '''n''' goes to the next match, '''N''' goes to previous match, '''q''' returns to the command line. Use the up/down arrow keys to scroll. All matches except the ''--cache-file'' option (which belongs to <code>configure</code> itself) are VLC features that must be forced on if desired.)
 +
 +
'''VLC 1.1 and earlier''': You probably need to tweak the "configure" line.
 +
 
== Options ==
 
== Options ==
 
Below are some common options for configure:
 
Below are some common options for configure:
 
{|
 
{|
! option !! meaning
+
! scope="col" | option !! scope="col" | meaning
 
|-
 
|-
 
| --prefix=''/home/user/vlc/'' || Sets the location of where to install vlc
 
| --prefix=''/home/user/vlc/'' || Sets the location of where to install vlc
Line 179: Line 27:
 
|}
 
|}
  
See `./configure --help' for more information.
+
See [[VLC configure help|./configure --help]] for more information.
 +
 
 
== Examples ==
 
== Examples ==
 +
 +
This is an example of a typical VLC configure line: 
 +
./configure --enable-x11 --enable-xvideo --enable-sdl --enable-avcodec --enable-avformat \
 +
      --enable-swscale --enable-mad --enable-libdvbpsi --enable-a52 --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-live555 --with-live555-tree=/usr/lib/live --enable-caca \
 +
      --enable-skins --enable-skins2 --enable-alsa --enable-qt4 --enable-ncurses
  
 
=== Linux ===
 
=== Linux ===
  ./configure --enable-x11 --enable-xvideo --disable-gtk \
+
  {{%}} ./configure --enable-x11 --enable-xvideo --disable-gtk \
--enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame \
+
      --enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame \
--enable-mad --enable-libdvbpsi --enable-a52 --enable-dts \
+
      --enable-mad --enable-libdvbpsi --enable-a52 --enable-dts \
--enable-libmpeg2 --enable-dvdnav --enable-faad \
+
      --enable-libmpeg2 --enable-dvdnav --enable-faad \
--enable-vorbis --enable-ogg --enable-theora --enable-faac\
+
      --enable-vorbis --enable-ogg --enable-theora --enable-faac\
--enable-mkv --enable-freetype --enable-fribidi \
+
      --enable-mkv --enable-freetype --enable-fribidi \
--enable-speex --enable-flac --enable-livedotcom \
+
      --enable-speex --enable-flac --enable-livedotcom \
--with-livedotcom-tree=/usr/lib/live --enable-caca \
+
      --with-livedotcom-tree=/usr/lib/live --enable-caca \
--enable-skins --enable-skins2 --enable-alsa --disable-kde\
+
      --enable-skins --enable-skins2 --enable-alsa --disable-kde\
--disable-qt --enable-wxwindows --enable-ncurses \
+
      --disable-qt --enable-wxwindows --enable-ncurses \
--enable-release  
+
      --enable-release  
  
 
=== Linux GIT ===
 
=== Linux GIT ===
 
  ./configure --enable-x11 --enable-xvideo --disable-gtk \
 
  ./configure --enable-x11 --enable-xvideo --disable-gtk \
--enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame \
+
      --enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame \
--enable-mad --enable-libdvbpsi --enable-a52 --enable-dca \
+
      --enable-mad --enable-libdvbpsi --enable-a52 --enable-dca \
--enable-libmpeg2 --enable-dvdnav --enable-faad \
+
      --enable-libmpeg2 --enable-dvdnav --enable-faad \
--enable-vorbis --enable-ogg --enable-theora --enable-faac\
+
      --enable-vorbis --enable-ogg --enable-theora --enable-faac\
--enable-mkv --enable-freetype --enable-fribidi \
+
      --enable-mkv --enable-freetype --enable-fribidi \
--enable-speex --enable-flac --enable-livedotcom \
+
      --enable-speex --enable-flac --enable-livedotcom \
--with-livedotcom-tree=/usr/lib/live --enable-caca \
+
      --with-livedotcom-tree=/usr/lib/live --enable-caca \
--enable-skins --enable-skins2 --enable-alsa --disable-kde\
+
      --enable-skins --enable-skins2 --enable-alsa --disable-kde\
--disable-qt --enable-wxwindows --enable-ncurses \
+
      --disable-qt --enable-wxwindows --enable-ncurses \
--enable-asa --enable-release  
+
      --enable-asa --enable-release  
  
 
=== Windows ===
 
=== Windows ===
Line 212: Line 69:
  
 
If you are cross-compiling from Debian, you can use something along those lines:
 
If you are cross-compiling from Debian, you can use something along those lines:
 
 
   ./bootstrap && \
 
   ./bootstrap && \
 
   PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig \
 
   PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig \
Line 219: Line 75:
 
   CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \
 
   CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \
 
   ./configure --host=i586-mingw32msvc --build=i386-linux \
 
   ./configure --host=i586-mingw32msvc --build=i386-linux \
       --disable-[[gtk]] \
+
       --disable-gtk \
       --enable-[[nls]] --enable-[[sdl]] --with-sdl-config-path=/usr/win32/bin \
+
       --enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
       --enable-[[ffmpeg]] --with-ffmpeg-mp3lame --with-ffmpeg-[[faac]] \
+
       --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
       --with-ffmpeg-[[zlib]] --enable-[[faad]] --enable-[[flac]] --enable-[[theora]] \
+
       --with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \
       --with-[[wx]]-config-path=/usr/win32/bin \
+
       --with-wx-config-path=/usr/win32/bin \
       --with-[[freetype]]-config-path=/usr/win32/bin \
+
       --with-freetype-config-path=/usr/win32/bin \
       --with-[[fribidi]]-config-path=/usr/win32/bin \
+
       --with-fribidi-config-path=/usr/win32/bin \
       --enable-[[live555]] --with-live555-tree=/usr/win32/live.com \
+
       --enable-live555 --with-live555-tree=/usr/win32/live.com \
       --enable-[[caca]] --with-caca-config-path=/usr/win32/bin \
+
       --enable-caca --with-caca-config-path=/usr/win32/bin \
       --with-[[xml2]]-config-path=/usr/win32/bin \
+
       --with-xml2-config-path=/usr/win32/bin \
       --with-[[dvdnav]]-config-path=/usr/win32/bin \
+
       --with-dvdnav-config-path=/usr/win32/bin \
       --disable-[[cddax]] --disable-[[vcdx]] --enable-[[goom]] \
+
       --disable-cddax --disable-vcdx --enable-goom \
       --enable-[[twolame]] --enable-[[dvdread]] \
+
       --enable-twolame --enable-dvdread \
       --enable-[[debug]]
+
       --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:
 
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 && \
 
   ./bootstrap && \
 
   PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \
 
   PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \
Line 277: Line 132:
 
       --disable-cddax --disable-vcdx --enable-goom \
 
       --disable-cddax --disable-vcdx --enable-goom \
 
       --enable-twolame --enable-dvdread \
 
       --enable-twolame --enable-dvdread \
       --disable-[[mkv]] \
+
       --disable-mkv \
 
       --enable-debug
 
       --enable-debug
  
Line 290: Line 145:
 
       --enable-mkv --enable-caca --enable-live555\
 
       --enable-mkv --enable-caca --enable-live555\
 
       --enable-debug
 
       --enable-debug
 +
 +
 +
See also [[VLC configure help]]
  
 
[[Category:Building]]
 
[[Category:Building]]
 +
[[Category:GNU/Linux]]

Latest revision as of 08:15, 1 February 2019

configure (also known as ./configure) is a gigantic shell 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.

If you are compiling source from Git, then you should run ./bootstrap before running configure.

You can run configure like this:

./configure --options

Beginner's guide

enter the command
% ./configure --help | less

and hit enter. Type a slash '/', type "disabled" (without quotes), hit enter. Pressing n goes to the next match, N goes to previous match, q returns to the command line. Use the up/down arrow keys to scroll. All matches except the --cache-file option (which belongs to configure itself) are VLC features that must be forced on if desired.)

VLC 1.1 and earlier: You probably need to tweak the "configure" line.

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

This is an example of a typical VLC configure line:

./configure --enable-x11 --enable-xvideo --enable-sdl --enable-avcodec --enable-avformat \
     --enable-swscale --enable-mad --enable-libdvbpsi --enable-a52 --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-live555 --with-live555-tree=/usr/lib/live --enable-caca \
     --enable-skins --enable-skins2 --enable-alsa --enable-qt4 --enable-ncurses

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


See also VLC configure help