Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4466755
  • 博文数量: 356
  • 博客积分: 10458
  • 博客等级: 上将
  • 技术积分: 4734
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-24 14:59
文章分类

全部博文(356)

文章存档

2020年(17)

2019年(9)

2018年(26)

2017年(5)

2016年(11)

2015年(20)

2014年(2)

2013年(17)

2012年(15)

2011年(4)

2010年(7)

2009年(14)

2008年(209)

分类: LINUX

2016-07-08 13:54:28

想编译一个最精简版本的mplayer, 想把./configure中的所有选项都disable掉
比如需要把下面的选项加入到编译选项中,首先使用
:%s/--enable/--disable/g 把 enable的都换成diable
:%s/  --//g
并把--前面的空白删除
  --enable-gui           enable GMPlayer compilation (GTK+ GUI) [disable]
  --enable-termcap       use termcap database for key codes [autodetect]
  --enable-termios       use termios database for key codes [autodetect]
  --disable-iconv        disable iconv for encoding conversion [autodetect]
替换后变成
--disable-gui           enable GMPlayer compilation (GTK+ GUI) [disable]
--disable-termcap       use termcap database for key codes [autodetect]
--disable-termios       use termios database for key codes [autodetect]
--disable-iconv        disable iconv for encoding conversion [autodetect]
再使用
:%s/ .*/  \\/g
替换空格及后面所有字符成'\'符号变成
--disable-gui  \
--disable-termcap  \
--disable-termios  \
--disable-iconv  \
这样把就可以得到想要的配置命令
./configure \
--disable-gui  \
--disable-termcap  \
--disable-termios  \
--disable-iconv

作者:帅得不敢出门  程序员群:31843264

阅读(4013) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~