2017-05-11 22:55:29 +08:00
|
|
|
#!/bin/bash
|
|
|
|
path=`pwd`
|
2017-05-11 23:10:30 +08:00
|
|
|
wget https://raw.githubusercontent.com/xiongziliang/ZLToolKit/master/build_for_linux.sh -O ./toolkit_build.sh
|
2017-05-11 22:55:29 +08:00
|
|
|
sudo chmod +x ./toolkit_build.sh
|
|
|
|
./toolkit_build.sh
|
|
|
|
sudo apt-get install libx264-dev
|
|
|
|
sudo apt-get install libfaac-dev
|
|
|
|
sudo apt-get install libmp4v2-dev
|
2017-05-11 23:45:51 +08:00
|
|
|
#sudo apt-get install libsdl-dev
|
|
|
|
#sudo apt-get install libavcodec-dev
|
|
|
|
#sudo apt-get install libavutil-dev
|
2017-05-11 22:55:29 +08:00
|
|
|
cd $path
|
|
|
|
cd ..
|
|
|
|
git clone --depth=50 https://github.com/xiongziliang/ZLMediaKit.git
|
|
|
|
cd ZLMediaKit
|
2017-06-20 14:37:09 +08:00
|
|
|
mkdir -p linux_build
|
|
|
|
cd linux_build
|
2017-05-11 22:55:29 +08:00
|
|
|
cmake ..
|
|
|
|
make -j4
|
|
|
|
sudo make install
|