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/