⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build.sh

📁 G.729 and G.723.1 codecs x86 (and x86_64) Linux and FreeBSD source code for Asterisk open source PBX
💻 SH
字号:
# choose Asterisk or Callweaver version# Asterisk 1.6#inc=/home/arkadi/opt/asterisk-1.6/include#def=-DG72X_ASTERISK=16# Asterisk 1.4inc=/home/arkadi/opt/asterisk-1.4/includedef=-DG72X_ASTERISK=14# Asterisk 1.2 - not supported yet#inc=/home/arkadi/opt/asterisk-1.2/usr/include#def=-DG72X_ASTERISK=12# Asterisk TRUNK#inc=/home/arkadi/opt/asterisk-trunk/include#def=-DG72X_ASTERISK=17# Callweaver - not supported yet#inc=/home/arkadi/opt/callweaver-rc5/include#incw=-I/home/arkadi/tmp/callweaver-1.2-rc5/include # source dir for confdefs.h#def=-DG72X_CALLWEAVER# specify IPP locationipproot=/opt/intel/ipp/5.3/ia32 # 32-bit#ipproot=/opt/intel/ipp/5.3/em64t # 64-bito="-O3 -fomit-frame-pointer" # generic optimization#o="-O -g"# the defaults below are pretty reasonable choice for pentium4 class cpu# running in 32-bit mode with static link# choose the compiler# GNU C Compilercc=gcc# Intel C compiler# to achieve fully static link move libsvml.so (and libirc.so for em64t)# out of /opt/intel/cc/lib and the linker will use static library#cc=/opt/intel/cc/bin/icc # 32-bit#cc=/opt/intel/cce/bin/icc # 64-bit#o="$o -ipo" # enable multi-file IP optimizations#icclibs=-lsvml#export PATH="/opt/crosstool/gcc-3.4.4-glibc-2.3.2/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin:$PATH"# choose 32-bit or 64-bit# 32-bit  # gcc    # core2 penryn with sse4   #opt=-march=nocona   #ippcore=p8    # core2   #opt=-march=nocona   #ippcore=v8    # pentium4 prescott with sse3 - check for PNI flag in /proc/cpuinfo   #opt=-march=prescott   #ippcore=t7    # pentium4    opt=-march=pentium4    ippcore=w7    # pentium4 but disable compiler generated sse   #opt="-march=pentium4 -mno-sse -mno-sse2"   #ippcore=w7    # pentium-m   #opt=-march=pentium-m   #ippcore=w7    # pentium3   #opt=-march=pentium3   #ippcore=a6    # pentium3 but disable compiler generated sse   #opt="-march=pentium3 -mno-sse"   #ippcore=a6    # pentium2   #opt=-march=pentium2   #ippcore=px   #def2=-DIPPCORE_NO_SSE    # pentium   #opt=-march=pentium   #ippcore=px   #def2=-DIPPCORE_NO_SSE    # opteron athlon64   #opt=-march=k8   #ippcore=w7    # opteron athlon64 with sse3   #opt=-march=k8   #ippcore=t7    # athlon with sse   #opt=-march=athlon-xp   #ippcore=a6  # icc  # cflags from http://www.intel.com/support/performancetools/sb/CS-009787.htm    # core2 penryn with sse4   #opt=-xS   #ippcore=p8    # core2   #opt=-xT   #ippcore=v8    # pentium4 pentium-m with sse3   #opt=-xP   #ippcore=t7    # pentium4 pentium-m   #opt=-xN   #ippcore=w7    # pentium3   #opt=-xK   #ippcore=a6# 32-bit static linkippstatic_include="-include $ipproot/tools/staticlib/ipp_$ippcore.h"ipplibs="-L$ipproot/lib -lippscmerged -lippsrmerged -lippsmerged -lippcore"#o="$o -static-intel" # if ICC is used# 32-bit dynamic link#ipplibs="-L$ipproot/sharedlib -lippsc -lippsr -lipps -lippcore"# 64-bit  # gcc    # x86_64 pentium4   #opt=-march=nocona  # icc    # x86_64 core2 with sse4.1   #opt=-xS    # x86_64 core2   #opt=-xT    # x86_64 pentium4   #opt=-xP# 64-bit static link#def2=-DIPPCORE_STATIC_INIT#ipplibs="-L$ipproot/lib -lippscemergedem64t -lippsremergedem64t -lippsemergedem64t -lippscmergedem64t -lippsrmergedem64t -lippsmergedem64t -lippcoreem64t"#o="$o -static-intel" # if ICC is used# 64-bit dynamic link#ipplibs="-L$ipproot/sharedlib -lippscem64t -lippsrem64t -lippsem64t -lippscem64t -lippsrem64t -lippsem64t -lippcoreem64t"# end of configurationsrc3="codec_g72x.c decg723.c encg723.c owng723.c vadg723.c aux_tbls.c"src9fp="codec_g72x.c decg729fp.c encg729fp.c owng729fp.c vadg729fp.c" # floating-point codecsrc9="codec_g72x.c decg729.c encg729.c owng729.c vadg729.c aux_tbls.c" # integer codeccompile_cmd="$cc -Wall -shared -Xlinker -x \    -D_GNU_SOURCE $def $def2 -I"$inc" $incw -I"$ipproot"/include $ippstatic_include \    $opt $o \    -fPIC"libs="$ipplibs $icclibs"cmd="$compile_cmd -DG72X_3 -o codec_g723.so $src3 $libs"; echo $cmd; $cmdcmd="$compile_cmd -DG72X_9 -DG72X_9_FP -o codec_g729.so $src9fp $libs"; echo $cmd; $cmd#cmd="$compile_cmd -DG72X_9 -o codec_g729.so $src9 $libs"; echo $cmd; $cmdstrip codec_g723.sostrip codec_g729.so

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -