2
0

build.sh 454 B

1234567891011121314
  1. #!/bin/bash
  2. src_dir='src'
  3. if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; exit 1; fi
  4. # step 1: build srs
  5. # nginx is not needed, we use cherrypy to delivery hls.
  6. # demo needs ffmpeg to transcode the live stream.
  7. echo "编译SRS"
  8. ./configure --demo && make
  9. ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:编译SRS失败"; exit $ret; fi
  10. echo "编译SRS成功"
  11. echo "你可以启动SRS:"
  12. echo " bash scripts/run.sh"