网站换皮肤了
mediainfo 静态编译脚本
时间:2019-08-13 09:38 浏览:65

摘要

因为需要mediainfo支持http协议,在老的版本中是不支持的,所以只能自己动手编译了。

说明

系统:ubuntu

mediainfo版本:0.7.71

编译环境:c/c++

脚本

cd ~/
apt-get install git automake autoconf libtool pkg-config make g++ zlib1g-dev libcurl4-gnutls-dev
git clone https://github.com/MediaArea/ZenLib.git
cd ZenLib
git checkout v0.4.37
cd Project/GNU/Library
./autogen.sh
./configure --enable-static
make -j4

cd ~/
git clone https://github.com/openssl/openssl.git
cd openssl
git checkout OpenSSL_1_0_2i
./Configure linux-generic64
make -j4


cd ~/
wget https://curl.haxx.se/download/curl-7.50.0.tar.gz
tar -zxvf curl-7.50.0.tar.gz 
cd curl-7.50.0/ 
./configure --enable-static --disable-share
make -j4


cd ~/
git clone https://github.com/MediaArea/MediaInfoLib.git
cd MediaInfoLib
git checkout v0.7.71
cd Project/GNU/Library/
./autogen
./configure --enable-static --with-libcurl=../../../../curl-7.50.0/
make -j4


cd ~/
git clone https://github.com/MediaArea/MediaInfo.git
cd MediaInfo
git checkout v0.7.71
cd Project/GNU/CLI
./autogen
./configure --enable-staticlibs
make -j4
# make install  
g++ -static -O2 -DUNICODE -DUNICODE -DSIZE_T_IS_LONG -o mediainfo CLI_Main.o CommandLine_Parser.o Help.o Core.o  ../../../../MediaInfoLib/Project/GNU/Library/.libs/libmediainfo.a -lz  ../../../../ZenLib/Project/GNU/Library/.libs/libzen.a ../../../../curl-7.50.0/lib/.libs/libcurl.a ../../../../openssl/libssl.a ../../../../openssl/libcrypto.a -lpthread -lstdc++ -pthread -Wl,-rpath -Wl,../../../../ZenLib/Project/GNU/Library/.libs -Wl,-rpath -Wl,../../../../curl-7.50.0/lib/.libs -Wl,-rpath -Wl,../../../../openssl -ldl



如果这篇文章对你有所帮助,可以通过下边的“打赏”功能进行小额的打赏。

本网站部分内容来源于互联网,如有侵犯版权请来信告知,我们将立即处理。


来说两句吧