mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 20:47:08 +08:00
更新编译脚本
This commit is contained in:
parent
ee9b6b64da
commit
e087d45f9c
@ -1,16 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
path=`pwd`
|
path=`pwd`
|
||||||
wget https://raw.githubusercontent.com/xiongziliang/ZLToolKit/develop/build_for_android.sh -O toolkit_build.sh
|
|
||||||
sudo chmod +x ./toolkit_build.sh
|
|
||||||
./toolkit_build.sh
|
|
||||||
cd $path
|
|
||||||
cd ..
|
cd ..
|
||||||
git clone --depth=50 https://github.com/xiongziliang/ZLMediaKit.git
|
git clone --depth=1 https://github.com/xiongziliang/ZLMediaKit.git
|
||||||
|
cd $path
|
||||||
cd ZLMediaKit
|
cd ZLMediaKit
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
|
||||||
mkdir -p android_build
|
mkdir -p android_build
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
ln -s ./android_build build
|
ln -s ./android_build build
|
||||||
cd android_build
|
cd android_build
|
||||||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DANDROID_NDK=$ANDROID_NDK_ROOT -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi" -DANDROID_NATIVE_API_LEVEL=android-9
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DANDROID_NDK=$ANDROID_NDK_ROOT -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi" -DANDROID_NATIVE_API_LEVEL=android-9
|
||||||
make -j4
|
make -j4
|
||||||
sudo make install
|
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
path=`pwd`
|
||||||
|
cd ..
|
||||||
|
git clone --depth=1 https://github.com/xiongziliang/ZLMediaKit.git
|
||||||
|
cd $path
|
||||||
|
cd ZLMediaKit
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
|
||||||
mkdir -p ios_build
|
mkdir -p ios_build
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
@ -6,4 +13,3 @@ ln -s ./ios_build build
|
|||||||
cd ios_build
|
cd ios_build
|
||||||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/iOS.cmake -DIOS_PLATFORM=OS
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/iOS.cmake -DIOS_PLATFORM=OS
|
||||||
make -j4
|
make -j4
|
||||||
sudo make install
|
|
||||||
|
@ -1,18 +1,22 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
path=`pwd`
|
path=`pwd`
|
||||||
wget https://raw.githubusercontent.com/xiongziliang/ZLToolKit/develop/build_for_linux.sh -O ./toolkit_build.sh
|
cd ..
|
||||||
sudo chmod +x ./toolkit_build.sh
|
git clone --depth=1 https://github.com/xiongziliang/ZLMediaKit.git
|
||||||
./toolkit_build.sh
|
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
|
||||||
sudo apt-get install libx264-dev
|
sudo apt-get install libx264-dev
|
||||||
sudo apt-get install libfaac-dev
|
sudo apt-get install libfaac-dev
|
||||||
sudo apt-get install libmp4v2-dev
|
sudo apt-get install libmp4v2-dev
|
||||||
#sudo apt-get install libsdl-dev
|
#sudo apt-get install libsdl-dev
|
||||||
#sudo apt-get install libavcodec-dev
|
#sudo apt-get install libavcodec-dev
|
||||||
#sudo apt-get install libavutil-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
|
mkdir -p linux_build
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
ln -s ./linux_build build
|
ln -s ./linux_build build
|
||||||
@ -20,4 +24,3 @@ cd linux_build
|
|||||||
|
|
||||||
cmake ..
|
cmake ..
|
||||||
make -j4
|
make -j4
|
||||||
sudo make install
|
|
||||||
|
@ -1,21 +1,24 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
path=`pwd`
|
path=`pwd`
|
||||||
wget https://raw.githubusercontent.com/xiongziliang/ZLToolKit/develop/build_for_mac.sh -O toolkit_build.sh
|
cd ..
|
||||||
sudo chmod +x ./toolkit_build.sh
|
git clone --depth=1 https://github.com/xiongziliang/ZLMediaKit.git
|
||||||
./toolkit_build.sh
|
cd $path
|
||||||
|
cd ZLMediaKit
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
|
||||||
|
brew install cmake
|
||||||
|
brew install mysql
|
||||||
|
brew install openssl
|
||||||
brew install x264
|
brew install x264
|
||||||
brew install faac
|
brew install faac
|
||||||
brew install mp4v2
|
brew install mp4v2
|
||||||
brew install sdl
|
brew install sdl
|
||||||
brew install ffmpeg
|
brew install ffmpeg
|
||||||
cd $path
|
|
||||||
cd ..
|
|
||||||
git clone --depth=50 https://github.com/xiongziliang/ZLMediaKit.git
|
|
||||||
cd ZLMediaKit
|
|
||||||
mkdir -p mac_build
|
mkdir -p mac_build
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
ln -s ./mac_build build
|
ln -s ./mac_build build
|
||||||
cd mac_build
|
cd mac_build
|
||||||
cmake .. -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2j/
|
cmake .. -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2j/
|
||||||
make -j4
|
make -j4
|
||||||
sudo make install
|
|
||||||
|
Loading…
Reference in New Issue
Block a user