VLC自学笔记2-配置./configuree


./config

checking for luaL_newstate in -llua ... no

configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.


解决:apt-get install lua5.1 liblua5.1-dev


./configure

configure: WARNING: Library libmpg123 needed for mpg123 was not found

checking for libavutil variant... none

checking for GST_APP... no

configure: WARNING: No package 'gstreamer-app-1.0' found. GStreamer modules will not be built.

checking for AVCODEC... no

configure: error: No package 'libavcodec' found

No package 'libavutil' found. Pass --disable-avcodec to ignore this error.

解决:sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libavutil-dev

继续报错:

configure: error: Requested 'libavcodec >= 55.0.0' but version of libavcodec is 53.35.0

Requested 'libavutil >= 52.0.0' but versision

of libavutil is 51.22.3. Pass --disable-avcodec to ignore this error.


//sudo aptitude install libavcodec-dev libavformat-dev libswscale-dev libavutil-dev 用这个继续


pkg-config --modversion libavcodec   //看当前的版本号


   版本太老 参考如下

       linux下编译ffmpeg             

http://blog.csdn.net/dgyanyong/article/details/12052857

1、下载ffmpeg。
下载网址:http://www.ffmpeg.org/download.html

2、解压缩
tar -zxvf ffmpeg-2.0.1.tar.gz

3、配置,生成Makefile
./configure --enable-shared --disable-yasm --prefix=/usr/local/ffmpeg --pkg-config=pkg-config 

如果执行结果不对,可以根据提示信息,并查看帮助,解决问题
./configure --help

4、编译安装
make
make install

5、安装之后在/usr/local/ffmpeg会看到有三个目录
bin 执行文件目录
lib 静态,动态链接库目录
include 编程用到的头文件

为了防止执行程序找不到库文件,
可以将/usr/local/ffmpeg/lib目录设置到LD_LIBRARY_PATH环境变量,
或者查看/usr/local/ffmpeg/lib下所有的链接,并在/usr/lib下建立同样的链接。如下。
ln -s /usr/local/ffmpeg/lib/libavcodec.so /usr/lib/libavcodec.so
ln -s /usr/local/ffmpeg/lib/libavdevice.so /usr/lib/libavdevice.so
ln -s /usr/local/ffmpeg/lib/libavfilter.so /usr/lib/libavfilter.so
ln -s /usr/local/ffmpeg/lib/libavformat.so /usr/lib/libavformat.so
ln -s /usr/local/ffmpeg/lib/libavutil.so /usr/lib/libavutil.so
ln -s /usr/local/ffmpeg/lib/libswresample.so /usr/lib/libswresample.so
ln -s /usr/local/ffmpeg/lib/libswscale.so /usr/lib/libswscale.so

ln -s /usr/local/ffmpeg/lib/libavcodec.so /usr/lib/libavcodec.so.56
ln -s /usr/local/ffmpeg/lib/libavdevice.so /usr/lib/libavdevice.so.56
ln -s /usr/local/ffmpeg/lib/libavfilter.so /usr/lib/libavfilter.so.3
ln -s /usr/local/ffmpeg/lib/libavformat.so /usr/lib/libavformat.so.56
ln -s /usr/local/ffmpeg/lib/libavutil.so /usr/lib/libavutil.so.54
ln -s /usr/local/ffmpeg/lib/libswresample.so /usr/lib/libswresample.so.0
ln -s /usr/local/ffmpeg/lib/libswscale.so /usr/lib/libswscale.so.2

6、编译测试程序
gcc -o ffmpegtest ffmpegtest.c -I/usr/local/ffmpeg/include -L/usr/local/ffmpeg/lib -lavformat -lavcodec -lavtuil

7、执行程序
./ffmpegtest
或直接执行/usr/local/ffmpeg/lib目录下的./ffmpeg进行测试。


发现不行,之前没有  配置--pkg-config=pkg-config  加上编译ffmpeg时 //这部分过去了


/usr/local/ffmpeg/lib/pkgconfig/


$export PKG_CONFIG_PATH=/home/liuxianguo/opensdk/lib/pkgconfig:$PKG_CONFIG_PATH
$export LIBRARY_PATH=/home/liuxianguo/opensdk/lib
$export LD_LIBRARY_PATH=/home/liuxianguo/opensdk/lib


export PKG_CONFIG_PATH=/usr/local/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH

export LIBRARY_PATH=/usr/local/ffmpeg/lib/

export LD_LIBRARY_PATH=/usr/local/ffmpeg/lib/


继续报错

checking for a52dec/a52.h... no

configure: error: Could not find liba52 on your system: you may get it from http://liba52.sf.net/. Alternatively you can use --disable-a52 to disable the a52 plugin.


解决: apt-get install liba52-dev


继续报错 xcb 找不到

解决:apt-get install libxcb-shm0-dev


configure: error: Package requirements (xcb-composite) were not met:


No package 'xcb-composite' found

解决:apt-get install libxcb-shm0-dev


继续报错

configure: error: Package requirements (xcb-randr >= 1.3) were not met:

No package 'xcb-randr' found

apt-get install  libxcb-randr0-dev


继续报错:

checking for PULSE... no

checking for ALSA... no

configure: error: No package 'alsa' found. alsa-lib 1.0.24 or later required.

解决:sudo apt-get install libalsa-ocaml-dev 


继续报错:

configure: error: libgcrypt version 1.1.94 or higher not found. Install libgcrypt or pass --disable-libgcrypt.

解决:apt-get install libgcrypt.dev


这一步成功了!!!!!!

libvlc configuration

--------------------

version               : 3.0.0-git

system                : linux

architecture          : x86_64 mmx sse sse2

optimizations         : yes

vlc aliases           : cvlc rvlc


To build vlc and its plugins, type `make', or `./compile' if you like nice colors.

root@linux:/home/linux/work/vlc-git# 









  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值