codec_g729x 설치에 문제가 있습니다

codec_g729x 설치에 문제가 있습니다

codec_g729x를 컴파일하려고 하는데 컴파일에 문제가 있습니다.

코덱 링크는 다음과 같습니다 https://bitbucket.org/arkadi/asterisk-g72x

모든 명령을 실행한 후 다음 오류가 발생합니다.

[root@localhost@asterisk-g72x]# make all
make  all-am
make[1]: Entering directory `/usr/src/asterisk-g72x'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -DG72X_ASTERISK=100 -I"/opt/intel/ipp/include"  -include "/opt/intel/ipp/tools/intel64/staticlib/ipp_u8.h" -Wall -D_GNU_SOURCE -Iipp -DG72X_3 -O3 -fomit-frame-pointer -march=native   -MT codec_g723_la-codec_g72x.lo -MD -MP -MF .deps/codec_g723_la-codec_g72x.Tpo -c -o codec_g723_la-codec_g72x.lo `test -f 'codec_g72x.c' || echo './'`codec_g72x.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -DG72X_ASTERISK=100 -I/opt/intel/ipp/include -include /opt/intel/ipp/tools/intel64/staticlib/ipp_u8.h -Wall -D_GNU_SOURCE -Iipp -DG72X_3 -O3 -fomit-frame-pointer -march=native -MT codec_g723_la-codec_g72x.lo -MD -MP -MF .deps/codec_g723_la-codec_g72x.Tpo -c codec_g72x.c  -fPIC -DPIC -o .libs/codec_g723_la-codec_g72x.o
codec_g72x.c: In function 'lintog72x_sample':
codec_g72x.c:313: warning: implicit declaration of function 'ast_format_set'
codec_g72x.c:313: error: request for member 'format' in something not a structure or union
codec_g72x.c:320: error: request for member 'ptr' in something not a structure or union
codec_g72x.c: In function 'g72xtolin_sample':
codec_g72x.c:331: error: request for member 'format' in something not a structure or union
codec_g72x.c:338: error: request for member 'ptr' in something not a structure or union
codec_g72x.c: In function 'g72xtolin_framein':
codec_g72x.c:440: error: request for member 'i16' in something not a structure or union
codec_g72x.c:470: error: request for member 'ptr' in something not a structure or union
codec_g72x.c:473: error: request for member 'ptr' in something not a structure or union
codec_g72x.c: In function 'lintog72x_framein':
codec_g72x.c:494: error: request for member 'ptr' in something not a structure or union
codec_g72x.c: In function 'lintog72x_frameout':
codec_g72x.c:533: error: request for member 'uc' in something not a structure or union
codec_g72x.c: At top level:
codec_g72x.c:619: error: unknown field 'native_plc' specified in initializer
codec_g72x.c: In function 'parse_config':
codec_g72x.c:656: error: too many arguments to function 'ast_config_load'
codec_g72x.c: In function 'g72x_toggle_debug':
codec_g72x.c:707: error: 'CLI_FAILURE' undeclared (first use in this function)
codec_g72x.c:707: error: (Each undeclared identifier is reported only once
codec_g72x.c:707: error: for each function it appears in.)
codec_g72x.c:711: error: 'CLI_SUCCESS' undeclared (first use in this function)
codec_g72x.c: At top level:
codec_g72x.c:720: warning: 'struct ast_cli_args' declared inside parameter list
codec_g72x.c:720: warning: its scope is only this definition or declaration, which is probably not what you want
codec_g72x.c: In function 'handle_cli_g72x_toggle_debug':
codec_g72x.c:723: error: 'CLI_INIT' undeclared (first use in this function)
codec_g72x.c:724: error: 'struct ast_cli_entry' has no member named 'command'
codec_g72x.c:727: error: 'CLI_GENERATE' undeclared (first use in this function)
codec_g72x.c:730: error: dereferencing pointer to incomplete type
codec_g72x.c:731: error: 'CLI_SHOWUSAGE' undeclared (first use in this function)
codec_g72x.c:732: error: dereferencing pointer to incomplete type
codec_g72x.c:733: error: 'CLI_SUCCESS' undeclared (first use in this function)
codec_g72x.c: At top level:
codec_g72x.c:736: warning: implicit declaration of function 'AST_CLI_DEFINE'
codec_g72x.c:736: error: invalid initializer
codec_g72x.c: In function 'load_module':
codec_g72x.c:758: error: 'struct ast_translator' has no member named 'src_format'
codec_g72x.c:759: error: 'struct ast_translator' has no member named 'dst_format'
codec_g72x.c:761: error: 'struct ast_translator' has no member named 'src_format'
codec_g72x.c:762: error: 'struct ast_translator' has no member named 'dst_format'
codec_g72x.c: At top level:
codec_g72x.c:812: error: unknown field 'buildopt_sum' specified in initializer
make[1]: *** [codec_g723_la-codec_g72x.lo] Error 1
make[1]: Leaving directory `/usr/src/asterisk-g72x'
make: *** [all] Error 2
enter code here

편집하다:

별표 개발 및 설치 후

make  all-am
make[1]: Entering directory `/usr/src/asterisk-g72x'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -DG72X_ASTERISK=100 -I"/opt/intel/ipp/include"  -include "/opt/intel/ipp/tools/intel64/staticlib/ipp_u8.h" -Wall -D_GNU_SOURCE -Iipp -DG72X_3 -O3 -fomit-frame-pointer -march=native   -MT codec_g723_la-codec_g72x.lo -MD -MP -MF .deps/codec_g723_la-codec_g72x.Tpo -c -o codec_g723_la-codec_g72x.lo `test -f 'codec_g72x.c' || echo './'`codec_g72x.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -DG72X_ASTERISK=100 -I/opt/intel/ipp/include -include /opt/intel/ipp/tools/intel64/staticlib/ipp_u8.h -Wall -D_GNU_SOURCE -Iipp -DG72X_3 -O3 -fomit-frame-pointer -march=native -MT codec_g723_la-codec_g72x.lo -MD -MP -MF .deps/codec_g723_la-codec_g72x.Tpo -c codec_g72x.c  -fPIC -DPIC -o .libs/codec_g723_la-codec_g72x.o
codec_g72x.c: In function 'lintog72x_sample':
codec_g72x.c:313: warning: implicit declaration of function 'ast_format_set'
codec_g72x.c:313: error: 'union ast_frame_subclass' has no member named 'format'
codec_g72x.c: In function 'g72xtolin_sample':
codec_g72x.c:331: error: 'union ast_frame_subclass' has no member named 'format'
codec_g72x.c: In function 'load_module':
codec_g72x.c:758: error: 'struct ast_translator' has no member named 'src_format'
codec_g72x.c:759: error: 'struct ast_translator' has no member named 'dst_format'
codec_g72x.c:761: error: 'struct ast_translator' has no member named 'src_format'
codec_g72x.c:762: error: 'struct ast_translator' has no member named 'dst_format'
make[1]: *** [codec_g723_la-codec_g72x.lo] Error 1
make[1]: Leaving directory `/usr/src/asterisk-g72x'
make: *** [all] Error 2

이 오류에 대해 아시는 분 계시나요? 왜 일부 메소드를 찾을 수 없음 오류가 발생하는지, 작동하려면 어떤 추가 도구를 설치해야 합니까?

답변1

Makefile이 설치될 때 잘못된 버전의 Asterisk를 사용하는 것 같습니다. ~에서별표-g72x용 Bitbucket개요페이지:

코덱을 만드는 방법에는 두 가지가 있습니다.

  1. ./configure를 사용하세요. ./configure --help를 사용하여 사용 가능한 옵션을 확인하세요. Asterisk가 비표준 위치에 설치된 경우 --prefix를 지정합니다. ICC 지원이 진행 중입니다. 임시로 CFLAGS를 설정해 주세요.

  2. build-ipp.sh(IPP) 또는 build-itu.sh(ITU-T)를 편집하여 Asterisk 버전, 컴파일러 및 기본 최적화 매개변수를 선택하세요.

올바른 버전 정의를 얻으려면 ./configure를 다시 실행하거나 "build-iXX.sh" 파일을 다시 편집해야 할 수도 있습니다.

관련 정보