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

brew install cmake
brew install openssl
xiongziliang committed
10 11
brew install sdl
brew install ffmpeg
xiongziliang committed
12

13
mkdir -p mac_build
xiongziliang committed
14 15
rm -rf ./build
ln -s ./mac_build build
16
cd mac_build
xiongziliang committed
17 18
cmake .. -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2j/
make -j4