编译VLC2.0.7

本文详细记录了在Ubuntu 12.04 32位系统上编译VLC 2.0.7的步骤,包括下载源代码、安装交叉编译工具、配置第三方库、编译过程中遇到的libgcrypt问题及解决方法,以及最后编译失败的错误提示。主要涉及libgcrypt、qt4-dev-tools、lua5.1等依赖库的安装,并提供了相关参考资料链接。
摘要由CSDN通过智能技术生成

Unbutn 12.04,32位

VLC 2.0.7

一、下载vlc2.0.7,解压缩到/home/testtest目录下
tar -xvf vlc-2.0.7.tar.xz

cd vlc-2.0.7/

二、安装交叉编译工具
apt-get install gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-tools

三、安装其他工具
apt-get install lua5.1

apt-get install libtool automake autoconf autopoint make gettext

apt-get install pkg-config

apt-get install qt4-dev-tools

apt-get install git

apt-get install subversion

### apt-get install cmake cvs 编译contribs使用(不需要安装,安装其他工具会附带把该工具安装上)

apt-get install zip p7zip nsis bzip2

i686-w64-mingw32 for Windows 32-bits, using the Mingw-w64 toolchain
x86_64-w64-mingw32 for Windows 64-bits, using the Mingw-w64 toolchain
i586-mingw32msvc for Windows 32-bits, using the Mingw32 toolchain

四、配置第三方库(没有编译QT的步骤)
mkdir -p contrib/win32

cd contrib/win32

../bootstrap --host=i686-w64-mingw32

make prebuilt (把之前下载好的vlc-contrib-i686-w64-mingw32-latest.tar,拷贝到contrib/win32下,就不用重新下载了)

五、编译VLC源代码
cd -   返回vlc根目录

./bootstrap

mkdir win32 && cd win32

../extras/package/win32/configure.sh --host=i686-w64-mingw32

checking whether GCRYCTL_SET_THREAD_CBS is declared... yes
checking for gcry_control in -lgcrypt... no
configure: error: libgcrypt not found. Install libgcrypt or use --disable-libgcrypt. Have a nice day.


安装libgcrypt

sudo apt-get install libgcrypt

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgcrypt


安装libgcrypt11-dev

sudo apt-get install libgcrypt11-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
libgcrypt11-dev is already the newest version.
The following package was automatically installed and is no longer required:
g++
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 566 not upgraded.

更新apt-get

sudo apt-get update
 

查询是否安装libgcrypt
root@ubuntu:/home# updatedb
root@ubuntu:/home# locate libgcrypt
/home/libgcrypt-1.5.2.tar.gz
/home/testtest/vlc-2.0.7/contrib/i686-w64-mingw32/bin/libgcrypt-config
/home/testtest/vlc-2.0.7/contrib/i686-w64-mingw32/lib/libgcrypt.a
/home/testtest/vlc-2.0.7/contrib/i686-w64-mingw32/lib/libgcrypt.def
/home/testtest/vlc-2.0.7/contrib/i686-w64-mingw32/lib/libgcrypt.la
/home/testtest/vlc-2.0.7/contrib/i686-w64-mingw32/share/aclocal/libgcrypt.m4
/lib/i386-linux-gnu/libgcrypt.a
/lib/i386-linux-gnu/libgcrypt.so
/lib/i386-linux-gnu/libgcrypt.so.11
/lib/i386-linux-gnu/libgcrypt.so.11.7.0
/usr/bin/libgcrypt-config
/usr/share/aclocal/libgcrypt.m4
/usr/share/doc/libgcrypt11
/usr/share/doc/libgcrypt11-dev
/usr/share/doc/libgcrypt11/AUTHORS.gz
/usr/share/doc/libgcrypt11/NEWS.gz
/usr/share/doc/libgcrypt11/README.gz
/usr/share/doc/libgcrypt11/THANKS.gz
/usr/share/doc/libgcrypt11/TODO
/usr/share/doc/libgcrypt11/changelog.Debian.gz
/usr/share/doc/libgcrypt11/copyright
/usr/share/doc/libgcrypt11-dev/AUTHORS.gz
/usr/share/doc/libgcrypt11-dev/NEWS.gz
/usr/share/doc/libgcrypt11-dev/README.gz
/usr/share/doc/libgcrypt11-dev/THANKS.gz
/usr/share/doc/libgcrypt11-dev/TODO
/usr/share/doc/libgcrypt11-dev/changelog.Debian.gz
/usr/share/doc/

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值