mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
24 lines
603 B
Bash
Executable File
24 lines
603 B
Bash
Executable File
#!/bin/bash
|
|
path=`pwd`
|
|
wget https://raw.githubusercontent.com/xiongziliang/ZLToolKit/develop/build_for_linux.sh -O ./toolkit_build.sh
|
|
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
|
|
#sudo apt-get install libsdl-dev
|
|
#sudo apt-get install libavcodec-dev
|
|
#sudo apt-get install libavutil-dev
|
|
cd $path
|
|
cd ..
|
|
git clone --depth=50 https://github.com/xiongziliang/ZLMediaKit.git
|
|
cd ZLMediaKit
|
|
mkdir -p linux_build
|
|
rm -rf ./build
|
|
ln -s ./linux_build build
|
|
cd linux_build
|
|
|
|
cmake ..
|
|
make -j4
|
|
sudo make install
|