-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_dev_env.sh
34 lines (17 loc) · 1.04 KB
/
setup_dev_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/zsh
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew cask install visual-studio-code
#install ffmpeg built from source (debug&static)
brew install cmake pkg-config nasm freetype opus
git clone https://git.ffmpeg.org/ffmpeg.git /tmp/ffmpeg
pushd /tmp/ffmpeg
./configure --prefix=/usr/local/Cellar/ffmpeg/HEAD_Debug --disable-avfoundation --disable-iconv --disable-filters --disable-devices --disable-shared --enable-static --disable-optimizations --disable-mmx --disable-audiotoolbox --disable-videotoolbox --disable-stripping --disable-appkit --disable-zlib --disable-coreimage --disable-bzlib --disable-securetransport --disable-sdl2 --disable-lzma --enable-libopus --pkg-config-flags=--static --cc=/usr/bin/clang --cxx=/usr/bin/clang++
make -j
make install
popd
git clone https://github.com/tomoyanonymous/rtpsendreceive.git ~/Desktop/rtpsendreceive
pushd ~/Desktop/rtpsendreceive
mkdir build && cd build && cmake ..
cmake --build . --target all
popd