星期一, 8月 01, 2005

Build GnuGk ...OpenGk --這是不一樣的

以下在Sarge_Text作:

pwlib

Download pwlib 到自己的目錄
untar (zxvf) 解開到自己的目錄 -- 自己解到pwlib

ReadMe.txt說會需要bison和flex
#apt-get install bison
#apt-get install flex

#apt-get install libc6-dev (會安裝gcc和library, include file)
#apt-get install g++

#cd pwlib
#./configure
#make both
~~~~ wait ~~~~

OK了。到sample_src下build hello看看...
#make both
執行,出現找不到share library,所以大概要設path。
果然在ReadMe找到。要設LD_LIBRARY_PATH變數
bash shell script:
LD_LIBRARY_PATH=/root/pwlib/lib
export LD_LIBRARY_PATH

run過這個script後(要用繼承shell . command),再run hello 已經ok。

接著是OpenH323

download openh323
一樣,解開(會到openh323)。
#./configure
#make opt
~~~~ wait~~~~ ~~~~wait~~~~ 比pwlib更久

OK,到sample\simple 下run simph323看看,
出現一樣的,找不到share library的warnning..
所以也要把 openh323的lib加入LD_LIBRARY_PATH中,因為已經有宣告過,所以:
#LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/openh323/lib
在run一次simph323 ---- OK!
* 不要忘記修改shell script.

然後是OpenGk

...不是GnuGk喔..
download OpenGk,解開,make
#make both
~~ wait ~~
#make install
#opengk -xc
Segment Fault !
掛點!

啟動gdb,到obj_linux_d下執行
#gdb opengk
(gdb) b main
(gdb) run
next ....
Program received signal SIGSEGV, segmentation fault.
0x40e072a9 in std::istream::get() from /usr/lib/libstdc++.so.5

So ?

先build gnugk試試..

看看是不是bison的影響..
download gnugk,解壓。(( homepage的source link好像有錯,是executable。要到sourceforg去download(網頁下面,沒有x86的部分)才對)。

readme.txt說document在doc folder下,要用sgml2txt轉為txt(或是sgml2html轉html)。
#apt-get install sgml-tools
說sgml-tools已經被linuxdoc-tools取代。
#apt-get install linuxdoc-tools
到docs下,看Makefile
#make html
說可以./configure --help看看
#./configure --disable-radius --disable-mysql --disable-pgsql
#make opt
make說沒有autoconf ---- 這個在./configure時就要告訴我吧?
#apt-get install autoconf
#make opt
Error !!!!

cisco.cxx: In member function `virtual PObject::Comparison
Cisco_ARQnonStandardInfo::Compare(const PObject&) const':
cisco.cxx:92: error: parse error before `)' token
cisco.cxx:92: error: `PIsDescendant' undeclared (first use this function)
cisco.cxx:92: error: (Each undeclared identifier is reported only once for each
function it appears in.)
cisco.cxx: In member function `virtual PObject::Comparison
Cisco_LRQnonStandardInfo::Compare(const PObject&) const':
cisco.cxx:203: error: parse error before `)' token
cisco.cxx:203: error: `PIsDescendant' undeclared (first use this function)
make[2]: *** [obj_linux_x86_r/cisco.o] Error 1
make[2]: Leaving directory `/root/gnugk-2.2.2'
make[1]: *** [optshared] Error 2
make[1]: Leaving directory `/root/gnugk-2.2.2'
make: *** [bothshared] Error 2

查cisco.cxx,發現那是一個#ifndef


在RH9下build OpenGk

-> Run OK。
build gnugk..一樣的error.

後來發現是openh323和pwlib的版本問題

沒有留言:

網誌存檔