都係唔得
[code]root@raspberrypi:/usr/src/bcg729# cd /usr/src/bcg729/samm_hg-asterisk-g72x-7c924918dff5
root@raspberrypi:/usr/src/bcg729/samm_hg-asterisk-g72x-7c924918dff5# #o="-march=barcelona -msse -msse2 -msse3 -O3 -fomit-frame-pointer -fPIC"
root@raspberrypi:/usr/src/bcg729/samm_hg-asterisk-g72x-7c924918dff5# o="-march=armv6zk -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -O3 -Wall"
root@raspberrypi:/usr/src/bcg729/samm_hg-asterisk-g72x-7c924918dff5# ./build-portable.sh
gcc -Wall -shared -Xlinker -x -D_GNU_SOURCE -march=barcelona -msse -msse2 -msse3 -O3 -fomit-frame-pointer -fPIC -fPIC -DG72X_ASTERISK=18 -I/home/arkadi/opt/asterisk-1.8.0/include -DG72X_3 -DG72X_ITU -Iitu/g.723.1a -o codec_g723.so codec_g72x.c itu/g.723.1a/basop.c itu/g.723.1a/cod_cng.c itu/g.723.1a/coder.c itu/g.723.1a/dec_cng.c itu/g.723.1a/decod.c itu/g.723.1a/exc_lbc.c itu/g.723.1a/lpc.c itu/g.723.1a/lsp.c itu/g.723.1a/tab_lbc.c itu/g.723.1a/tame.c itu/g.723.1a/util_cng.c itu/g.723.1a/util_lbc.c itu/g.723.1a/vad.c
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’作者: orangelau 時間: 2014-5-3 23:48
gcc -Wall -shared -Xlinker -x -D_GNU_SOURCE -march=barcelona -msse -msse2 -msse3 -O3 -fomit-frame-pointer -fPIC -fPIC -DG72X_ASTERISK=18 -I/home/arkadi/opt/asterisk-1.8.0/include -DG72X_9 -DG72X_ITU -Ibcg729 -o codec_g729.so codec_g72x.c bcg729/adaptativeCodebookSearch.c bcg729/codebooks.c bcg729/computeAdaptativeCodebookGain.c bcg729/computeLP.c bcg729/computeWeightedSpeech.c bcg729/decodeAdaptativeCodeVector.c bcg729/decodeFixedCodeVector.c bcg729/decodeGains.c bcg729/decodeLSP.c bcg729/decoder.c bcg729/encoder.c bcg729/findOpenLoopPitchDelay.c bcg729/fixedCodebookSearch.c bcg729/gainQuantization.c bcg729/interpolateqLSP.c bcg729/LP2LSPConversion.c bcg729/LPSynthesisFilter.c bcg729/LSPQuantization.c bcg729/postFilter.c bcg729/postProcessing.c bcg729/preProcessing.c bcg729/qLSP2LP.c bcg729/utils.c
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
cc1: error: bad value (barcelona) for -march switch
cc1: error: unrecognized command line option ‘-msse’
cc1: error: unrecognized command line option ‘-msse2’
cc1: error: unrecognized command line option ‘-msse3’
strip: 'codec_g723.so': No such file
strip: 'codec_g729.so': No such file
root@raspberrypi:/usr/src/bcg729/samm_hg-asterisk-g72x-7c924918dff5# ./build-astconv.sh
astconv.c: In function ‘main’:
astconv.c:110:19: error: ‘union ast_frame_subclass’ has no member named ‘codec’
astconv.c: In function ‘__ast_register_translator’:
astconv.c:203:10: error: ‘struct ast_translator’ has no member named ‘srcfmt’
astconv.c:205:15: error: ‘struct ast_translator’ has no member named ‘dstfmt’
root@raspberrypi:/usr/src/bcg729/samm_hg-asterisk-g72x-7c924918dff5# cp /var/lib/asterisk/sounds/en/demo-thanks.gsm /tmp/demo-thanks.gsm
root@raspberrypi:/usr/src/bcg729/samm_hg-asterisk-g72x-7c924918dff5# rasterisk -x "file convert /tmp/demo-thanks.gsm /tmp/demo-thanks.sln"
Converted /tmp/demo-thanks.gsm to /tmp/demo-thanks.sln in 63ms
root@raspberrypi:/usr/src/bcg729/samm_hg-asterisk-g72x-7c924918dff5# ./astconv ./codec_g729.so -e 160 /tmp/demo-thanks.sln demo-thanks.g729
-bash: ./astconv: No such file or directory
root@raspberrypi:/usr/src/bcg729/samm_hg-asterisk-g72x-7c924918dff5#
[/code]作者: h20555 時間: 2014-8-21 23:34
I'm able to compile g729 on raspberry pi. The trick is you have to compile and install Bcg729 1st following by compiling asterisk-g72x. That is.作者: orangelau 時間: 2014-8-22 13:33