1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix bug of mips

This commit is contained in:
winlin 2014-05-04 18:52:32 +08:00
parent a88e95d558
commit 97f4d81193
3 changed files with 12 additions and 13 deletions

View file

@ -107,7 +107,7 @@ function Ubuntu_prepare()
# for arm, install the cross build tool chain.
if [ $SRS_ARM_UBUNTU12 = YES ]; then
`$SrsArmCC` --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then
`$SrsArmCC --help` >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then
echo "install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi"
require_sudoer "sudo apt-get install -y --force-yes gcc-arm-linux-gnueabi g++-arm-linux-gnueabi"
sudo apt-get install -y --force-yes gcc-arm-linux-gnueabi g++-arm-linux-gnueabi; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi
@ -117,7 +117,7 @@ function Ubuntu_prepare()
# for mips, user must installed the tool chain.
if [ $SRS_MIPS_UBUNTU12 = YES ]; then
`$SrsArmCC` --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then
`$SrsArmCC --help` >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then
echo "user must install the tool chain: $SrsArmCC"
return 2
fi

View file

@ -140,6 +140,7 @@ Presets:
--x86-x64 [default] for x86/x64 cpu, common pc and servers.
--pi for raspberry-pi(directly build), open features hls/ssl/static.
--arm alias for --with-arm-ubuntu12
--mips alias for --with-mips-ubuntu12
--dev for dev, open all features, no gperf/gprof/arm.
--fast the most fast compile, nothing, only support vp6 RTMP.
--pure-rtmp only support RTMP with ssl.
@ -147,13 +148,11 @@ Presets:
--disable-all disable all features, only support vp6 RTMP.
Conflicts:
1. --dev/x86-x64 vs --static:
the --static only for arm cpus.
2. --with-gmc vs --with-gmp:
1. --with-gmc vs --with-gmp:
@see: http://google-perftools.googlecode.com/svn/trunk/doc/heap_checker.html
3. --with-gperf/gmc/gmp vs --with-gprof:
2. --with-gperf/gmc/gmp vs --with-gprof:
gperftools not compatible with gprof.
4. --arm vs --with-ffmpeg/bwtc/gperf/gmc/gmp/gprof:
3. --arm vs --with-ffmpeg/bwtc/gperf/gmc/gmp/gprof:
the complex tools not available for arm.
Experts:

12
trunk/configure vendored
View file

@ -64,12 +64,12 @@ if [ $SRS_MIPS_UBUNTU12 = YES ]; then
__SrsArmRANDLIB="mipsel-openwrt-linux-ranlib";
fi
# the arm-ubuntu12 options for make for depends
if [[ -z $SrsArmCC ]]; then SrsArmCC=__SrsArmCC; fi
if [[ -z $SrsArmGCC ]]; then SrsArmGCC=__SrsArmGCC; fi
if [[ -z $SrsArmCXX ]]; then SrsArmCXX=__SrsArmCXX; fi
if [[ -z $SrsArmAR ]]; then SrsArmAR=__SrsArmAR; fi
if [[ -z $SrsArmLD ]]; then SrsArmLD=__SrsArmLD; fi
if [[ -z $SrsArmRANDLIB ]]; then SrsArmRANDLIB=__SrsArmRANDLIB; fi
if [[ -z $SrsArmCC ]]; then SrsArmCC=$__SrsArmCC; fi
if [[ -z $SrsArmGCC ]]; then SrsArmGCC=$__SrsArmGCC; fi
if [[ -z $SrsArmCXX ]]; then SrsArmCXX=$__SrsArmCXX; fi
if [[ -z $SrsArmAR ]]; then SrsArmAR=$__SrsArmAR; fi
if [[ -z $SrsArmLD ]]; then SrsArmLD=$__SrsArmLD; fi
if [[ -z $SrsArmRANDLIB ]]; then SrsArmRANDLIB=$__SrsArmRANDLIB; fi
# write to source file
if [ $SRS_EMBEDED_CPU = YES ]; then
echo "cc=$SrsArmCC gcc=$SrsArmGCC g++=$SrsArmCXX ar=$SrsArmAR ld=$SrsArmLD randlib=$SrsArmRANDLIB"