- 论坛徽章:
- 0
|
找的资料如下:(其他的都是大同小异)
1.安装Asterisk(略)
2.下载并编译OH323.SO模块,该模块会用到pwlib和openh323两个库,现已经成功编译一个静态连接pwlib和openh323库的模块。如果要编译,必须注意pwlib和openh323的版本,有个USE_OLD_CAPABILITIES_API编译开关对应较老的版本。我使用的是http://www.inaccessnetworks.com/ ... -oh323-0.7.3.tar.gz 即oh323 v0.7.3版本,该版本对应于Asterisk 1.2.x (Asterisk有两个版本树,一个是Stable版本系列1.0.x, 一个是Head系列1.2.x, 目前我使用的是1.2.x, 因此在编译oh323的时候要选择对应版本)
3.编译完成后使用make install, 安装模块以及添加文件。如果使用已编译模块,则需要将oh323.so复制到Asterisk的模块目录,默认安装目录是/usr/lib/asterisk/modules,并且手动添加配置文件oh323.conf到Asterisk的配置文件目录,默认是/etc/asterisk
我在机器里已经找好了aah2.7
接着,安装pwlib库的时候,找不到 g++
具体 信息如下:
cd ……/pwlib
./configure
之后显示:
PTLib version is 1.5.2
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
OSTYPE set to linux
OSRELEASE set to 2.6.9-34.EL
MACHTYPE set to x86
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether byte ordering is bigendian... no
checking if linker accepts --gc-sections... yes
checking if compiler accepts -ffunction-sections... yes
checking if compiler accepts -fdata-sections... yes
checking if compiler accepts -fvtable-gc... no
checking for pthread_create in -lpthread... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libdc1394/dc1394_control.h usability... no
checking libdc1394/dc1394_control.h presence... no
checking for libdc1394/dc1394_control.h... no
checking libavc1394/avc1394.h usability... no
checking libavc1394/avc1394.h presence... no
checking for libavc1394/avc1394.h... no
checking libdv/dv.h usability... no
checking libdv/dv.h presence... no
checking for libdv/dv.h... no
checking for res_search... no
checking for res_search in -lresolv... yes
checking ldap.h usability... no
checking ldap.h presence... no
checking for ldap.h... no
checking for /usr/local/include/ldap.h... no
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking expat.h usability... no
checking expat.h presence... no
checking for expat.h... no
checking for /usr/local/include/expat.h... no
checking SDL/SDL.h usability... no
checking SDL/SDL.h presence... no
checking for SDL/SDL.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for IPv6 Support... yes
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking machine/ioctl_meteor.h usability... no
checking machine/ioctl_meteor.h presence... no
checking for machine/ioctl_meteor.h... no
checking i386/ioctl_meteor.h usability... no
checking i386/ioctl_meteor.h presence... no
checking for i386/ioctl_meteor.h... no
checking dev/ic/bt8xx.h usability... no
checking dev/ic/bt8xx.h presence... no
checking for dev/ic/bt8xx.h... no
checking for swab... yes
checking for dlopen in -ldl... yes
configure: creating ./config.status
config.status: creating make/ptbuildopts.mak
config.status: creating make/ptlib-config
config.status: creating Makefile
config.status: creating include/ptbuildopts.h
config.status: include/ptbuildopts.h is unchanged
接着 我再执行 make
出来的信息如下:
make[1]: Entering directory `/src/pwlib'
set -e; for i in /src/pwlib; do make -C $i debugdepend debug; done
make[2]: Entering directory `/src/pwlib'
Created dependencies.
set -e; make -C src/ptlib/unix debugdepend; make -C tools/asnparser debugdepend;
make[3]: Entering directory `/src/pwlib/src/ptlib/unix'
g++ -DP_LINUX=2.6.9-34.EL -ffunction-sections -fdata-sections -D_REENTRANT -Wall -fPIC -DP_USE_PRAGMA -g -D_DEBUG -DPMEMORY_CHECK=1 -DPHAS_TEMPLATES -I/src/pwlib/include/ptlib/unix -I/usr/include/pwlib -I/src/pwlib/include -M ../../ptclib/asner.cxx >> /src/pwlib/lib/obj_linux_x86_d/asner.dep
/bin/sh: g++: command not found
make[3]: *** [/src/pwlib/lib/obj_linux_x86_d/asner.dep] Error 127
make[3]: *** Deleting file `/src/pwlib/lib/obj_linux_x86_d/asner.dep'
make[3]: Leaving directory `/src/pwlib/src/ptlib/unix'
make[2]: *** [debugdepend] Error 2
make[2]: Leaving directory `/src/pwlib'
make[1]: *** [libs] Error 2
make[1]: Leaving directory `/src/pwlib'
make: *** [debuglibs] Error 2
哪位帮忙指点一二,不胜感激! |
|