- 論壇徽章:
- 0
|
找的資料如下:(其他的都是大同小異)
1.安裝Asterisk(略)
2.下載并編譯OH323.SO模塊,該模塊會用到pwlib和openh323兩個庫,現(xiàn)已經成功編譯一個靜態(tài)連接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
接著 我再執(zhí)行 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
哪位幫忙指點一二,不勝感激! |
|