ZLMediaKit/build_for_linux.sh

27 lines
562 B
Bash
Raw Normal View History

2017-05-11 22:55:29 +08:00
#!/bin/bash
path=`pwd`
2018-03-21 15:23:05 +08:00
cd ..
git clone --depth=1 https://github.com/xiongziliang/ZLMediaKit.git
cd $path
cd ZLMediaKit
git submodule init
git submodule update
sudo apt-get install cmake
sudo apt-get install libmysqlclient-dev
sudo apt-get install libssl-dev
2017-05-11 22:55:29 +08:00
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
2018-03-21 15:23:05 +08:00
2017-06-20 14:37:09 +08:00
mkdir -p linux_build
2017-10-13 15:19:24 +08:00
rm -rf ./build
ln -s ./linux_build build
2017-06-20 14:37:09 +08:00
cd linux_build
2017-10-13 15:19:24 +08:00
2017-05-11 22:55:29 +08:00
cmake ..
make -j4