build_for_mac.sh 434 Bytes
Newer Older
xiongziliang committed
1
#!/bin/bash
xiongziliang committed
2 3 4 5 6 7 8 9 10
cd ..
git clone --depth=1 https://github.com/xiongziliang/ZLMediaKit.git
cd ZLMediaKit
git submodule init
git submodule update

brew install cmake
brew install mysql
brew install openssl
xiongziliang committed
11 12 13 14 15
brew install x264
brew install faac
brew install mp4v2
brew install sdl
brew install ffmpeg
xiongziliang committed
16

17
mkdir -p mac_build
xiongziliang committed
18 19
rm -rf ./build
ln -s ./mac_build build
20
cd mac_build
xiongziliang committed
21 22
cmake .. -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2j/
make -j4