linux下的独立gtalk客户端,支持语音和传文件(已上传源码)

由本社区发起的开源项目
回复
xiongqin
帖子: 136
注册时间: 2007-05-07 7:17

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源文件)

#46

帖子 xiongqin » 2009-03-05 3:26

还有,ilbc这个库你进去之后,就根据里面的readme来安装,也很简单的,configure,make ,make install就搞定
xiongqin
帖子: 136
注册时间: 2007-05-07 7:17

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源文件)

#47

帖子 xiongqin » 2009-03-05 3:33

不需要安装automake阿
这个是我生成makefile.in用的,里面都已经生成了
xiongqin
帖子: 136
注册时间: 2007-05-07 7:17

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源文件)

#48

帖子 xiongqin » 2009-03-05 3:41

这样把,一劳永逸的方法,
安装automake 1,10版本,然后./automake --add-missing,
这样就完事了,
xiongqin
帖子: 136
注册时间: 2007-05-07 7:17

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源文件)

#49

帖子 xiongqin » 2009-03-05 3:55

原因我找到了,你不需要安装automake,是我没弄好,我机器里面有automake,所以他直接生成了一个链接指向我机器里面存在的文件,你没有,所以出错,我直接考出来了,打到包里面了,这次不会出这个错了
头像
yjcong
帖子: 2470
注册时间: 2006-02-28 3:11

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源文件)

#50

帖子 yjcong » 2009-03-05 4:43

xiongqin 写了:我现在放上去的就是对的,

另外,根据你的错误,你需要安装libglib2.0-dev 和libopenssl-dev
当时我编译libjingle的时候没遇到这么多错误,有些库估计以前就要用到,所以已经装了
正好你装的时候缺少哪些库,告诉我,我加到编译说明里面
libopenssl-dev这个包好像源里没有。另外openssl这个包我安装了。 下面的那个gtk+-2.0的问题我没看明白
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
mv -f .deps/stream.Tpo .deps/stream.Plo
/bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. `pkg-config --cflags gtk+-2.0` -DPOSIX -g -O2 -MT ssladapter.lo -MD -MP -MF .deps/ssladapter.Tpo -c -o ssladapter.lo ssladapter.cc
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
ssladapter.cc:46:28: error: openssl/crypto.h: No such file or directory
ssladapter.cc:47:26: error: openssl/rand.h: No such file or directory
ssladapter.cc:48:25: error: openssl/ssl.h: No such file or directory
ssladapter.cc: In function ‘void talk_base::locking_function(int, int, const char*, int)’:
ssladapter.cc:98: error: ‘CRYPTO_LOCK’ was not declared in this scope
ssladapter.cc: In function ‘void talk_base::dyn_lock_function(int, CRYPTO_dynlock_value*, const char*, int)’:
ssladapter.cc:119: error: ‘CRYPTO_LOCK’ was not declared in this scope
ssladapter.cc: In function ‘bool talk_base::InitializeSSL()’:
ssladapter.cc:133: error: ‘SSL_library_init’ was not declared in this scope
ssladapter.cc:135: error: ‘SSL_load_error_strings’ was not declared in this scope
ssladapter.cc:136: error: ‘ERR_load_BIO_strings’ was not declared in this scope
ssladapter.cc:137: error: ‘OpenSSL_add_all_algorithms’ was not declared in this scope
ssladapter.cc:138: error: ‘RAND_poll’ was not declared in this scope
ssladapter.cc: In function ‘bool talk_base::InitializeSSLThread()’:
ssladapter.cc:143: error: ‘CRYPTO_num_locks’ was not declared in this scope
ssladapter.cc:150: error: ‘CRYPTO_set_id_callback’ was not declared in this scope
ssladapter.cc:151: error: ‘CRYPTO_set_locking_callback’ was not declared in this scope
ssladapter.cc:152: error: ‘CRYPTO_set_dynlock_create_callback’ was not declared in this scope
ssladapter.cc:153: error: ‘CRYPTO_set_dynlock_lock_callback’ was not declared in this scope
ssladapter.cc:154: error: ‘CRYPTO_set_dynlock_destroy_callback’ was not declared in this scope
ssladapter.cc: In function ‘bool talk_base::CleanupSSL()’:
ssladapter.cc:161: error: ‘CRYPTO_set_id_callback’ was not declared in this scope
ssladapter.cc:162: error: ‘CRYPTO_set_locking_callback’ was not declared in this scope
ssladapter.cc:163: error: ‘CRYPTO_set_dynlock_create_callback’ was not declared in this scope
ssladapter.cc:164: error: ‘CRYPTO_set_dynlock_lock_callback’ was not declared in this scope
ssladapter.cc:165: error: ‘CRYPTO_set_dynlock_destroy_callback’ was not declared in this scope
ssladapter.cc:166: error: ‘CRYPTO_num_locks’ was not declared in this scope
make[3]: *** [ssladapter.lo] Error 1
========================
那个iLBC好像也有问题。 msilbc-2.0.0下面跟本没有ilbc这个文件夹
ilbc.c:4:30: error: ilbc/iLBC_encode.h: No such file or directory
ilbc.c:5:30: error: ilbc/iLBC_decode.h: No such file or directory
ilbc.c:16: error: expected specifier-qualifier-list before 'iLBC_Enc_Inst_t'
ilbc.c: In function 'enc_init':
我把下载的ilbc的源文件放到msilbc-2.0.0下面, 再make的时候, 显示
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -Wall -Werror -rdynamic -o libmsilbc.la -rpath /usr/lib/mediastreamer/plugins ilbc.lo -lilbc
gcc -shared .libs/ilbc.o -lilbc -Wl,-soname -Wl,libmsilbc.so.0 -o .libs/libmsilbc.so.0.0.0
/usr/bin/ld: cannot find -lilbc
collect2: ld returned 1 exit status
make: *** [libmsilbc.la] Error 1
一梦三年,
松风依旧,
萝月何曾老.


灵幽听微, 谁观玉颜?
灼灼春华, 绿叶含丹.
xiongqin
帖子: 136
注册时间: 2007-05-07 7:17

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源码)

#51

帖子 xiongqin » 2009-03-05 4:51

libssl-dev 应该是这个

msilbc下面还有一个压缩包要解压才能编译,里面的readme文件说的很清楚
xiongqin
帖子: 136
注册时间: 2007-05-07 7:17

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源码)

#52

帖子 xiongqin » 2009-03-05 4:54

libgtk的问题,你装了libgtk2.0-dev就好了
xiongqin
帖子: 136
注册时间: 2007-05-07 7:17

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源码)

#53

帖子 xiongqin » 2009-03-05 5:01

安装libgtk2.0-dev之后,运行pkg-config --cflags --libs gtk+-2.0 可以看见

-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

就表示装好了
头像
yjcong
帖子: 2470
注册时间: 2006-02-28 3:11

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源码)

#54

帖子 yjcong » 2009-03-05 5:06

那个libssl-dev是可以用的. 装了后, 没有因为gtk的问题停下了。所以我没装libgtk2.0-dev。但我试了下, 发现这个libgtk2.0-dev好像和我的系统里的一些包有依赖冲突的问题。

然后编译了N久之后, 得到下面的错误
g++ -DHAVE_CONFIG_H -I. -I../../.. -DPOSIX -g -O2 -MT xxpalk-xxpalk_main.o -MD -MP -MF .deps/xxpalk-xxpalk_main.Tpo -c -o xxpalk-xxpalk_main.o `test -f 'xxpalk_main.cc' || echo './'`xxpalk_main.cc
xxpalk_main.cc:27:35: error: talk/login/xmppthread.h: No such file or directory
xxpalk_main.cc:28:33: error: talk/login/xmppauth.h: No such file or directory
In file included from xxpalk_main.cc:29:
../../../talk/examples/xxpalk/callclient.h:31:31: error: talk/login/status.h: No such file or directory
In file included from ../../../talk/examples/xxpalk/callclient.h:33,
from xxpalk_main.cc:29:
../../../talk/examples/xxpalk/chatclient.h:47:7: warning: no newline at end of file
In file included from ../../../talk/examples/xxpalk/callclient.h:34,
from xxpalk_main.cc:29:
../../../talk/examples/xxpalk/fileclient.h:48:35: error: talk/login/xmppthread.h: No such file or directory
../../../talk/examples/xxpalk/fileclient.h:49:33: error: talk/login/xmppauth.h: No such file or directory
../../../talk/examples/xxpalk/fileclient.h:53:41: error: talk/login/presencepushtask.h: No such file or directory
../../../talk/examples/xxpalk/fileclient.h:54:40: error: talk/login/presenceouttask.h: No such file or directory
../../../talk/examples/xxpalk/fileclient.h:55:39: error: talk/login/jingleinfotask.h: No such file or directory
../../../talk/examples/xxpalk/fileclient.h:164:7: warning: no newline at end of file
../../../talk/examples/xxpalk/fileclient.h:78: error: expected unqualified-id before ‘&’ token
../../../talk/examples/xxpalk/fileclient.h:78: error: expected ‘,’ or ‘...’ before ‘&’ token
../../../talk/examples/xxpalk/fileclient.h:78: error: ISO C++ forbids declaration of ‘parameter’ with no type
../../../talk/examples/xxpalk/fileclient.h:106: error: ‘buzz::JingleInfoTask’ has not been declared
../../../talk/examples/xxpalk/callclient.h:56: error: ‘Show’ in class ‘buzz::Status’ does not name a type
xxpalk_main.cc: In function ‘int main(int, char**)’:
xxpalk_main.cc:208: error: ‘XmppPump’ was not declared in this scope
xxpalk_main.cc:208: error: expected `;' before ‘pump’
xxpalk_main.cc:227: error: ‘pump’ was not declared in this scope
xxpalk_main.cc:244: error: ‘cout’ is not a member of ‘std’
xxpalk_main.cc:245: error: ‘cin’ is not a member of ‘std’
xxpalk_main.cc:249: error: ‘cout’ is not a member of ‘std’
xxpalk_main.cc:250: error: ‘cin’ is not a member of ‘std’
xxpalk_main.cc:252: error: ‘cout’ is not a member of ‘std’
xxpalk_main.cc:281: error: ‘cout’ is not a member of ‘std’
xxpalk_main.cc:317: error: expected type-specifier before ‘XmppSocket’
xxpalk_main.cc:317: error: expected `)' before ‘XmppSocket’
make[4]: *** [xxpalk-xxpalk_main.o] Error 1
一梦三年,
松风依旧,
萝月何曾老.


灵幽听微, 谁观玉颜?
灼灼春华, 绿叶含丹.
xiongqin
帖子: 136
注册时间: 2007-05-07 7:17

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源码)

#55

帖子 xiongqin » 2009-03-05 5:26

我的问题,你已经马上就要编译好了,在编译最后一个东西
不过你要重头编译了。。。
有2个包以为没有用了,结果我还是用了。。。
我加上去,重新传过来
头像
yjcong
帖子: 2470
注册时间: 2006-02-28 3:11

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源码)

#56

帖子 yjcong » 2009-03-05 5:35

ilbc的问题。

/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -Wall -Werror -rdynamic -o libmsilbc.la -rpath NONE/lib/mediastreamer/plugins ilbc.lo -lilbc
libtool: link: only absolute run-paths are allowed
make: *** [libmsilbc.la] Error 1
一梦三年,
松风依旧,
萝月何曾老.


灵幽听微, 谁观玉颜?
灼灼春华, 绿叶含丹.
头像
yjcong
帖子: 2470
注册时间: 2006-02-28 3:11

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源码)

#57

帖子 yjcong » 2009-03-05 5:50

老兄, 你确定这个是新传的??error和上次的一样啊
g++ -DHAVE_CONFIG_H -I. -I../../.. -DPOSIX -g -O2 -MT xxpalk-xxpalk_main.o -MD -MP -MF .deps/xxpalk-xxpalk_main.Tpo -c -o xxpalk-xxpalk_main.o `test -f 'xxpalk_main.cc' || echo './'`xxpalk_main.cc
xxpalk_main.cc:27:35: error: talk/login/xmppthread.h: No such file or directory
xxpalk_main.cc:28:33: error: talk/login/xmppauth.h: No such file or directory
In file included from xxpalk_main.cc:29:
../../../talk/examples/xxpalk/callclient.h:31:31: error: talk/login/status.h: No such file or directory
In file included from ../../../talk/examples/xxpalk/callclient.h:33,
from xxpalk_main.cc:29:
../../../talk/examples/xxpalk/chatclient.h:47:7: warning: no newline at end of file
In file included from ../../../talk/examples/xxpalk/callclient.h:34,
from xxpalk_main.cc:29:
../../../talk/examples/xxpalk/fileclient.h:48:35: error: talk/login/xmppthread.h: No such file or directory
一梦三年,
松风依旧,
萝月何曾老.


灵幽听微, 谁观玉颜?
灼灼春华, 绿叶含丹.
xiongqin
帖子: 136
注册时间: 2007-05-07 7:17

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源码)

#58

帖子 xiongqin » 2009-03-05 5:54

现在好了,我刚刚传上去。。。正要给你说的。。。
xiongqin
帖子: 136
注册时间: 2007-05-07 7:17

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源码)

#59

帖子 xiongqin » 2009-03-05 5:56

ilbc这个,你把你自己下的删了,就用我那个msilbc,然后解压,进入文件夹,再解压另外一个,然后配置编译安装
头像
mymathersname
帖子: 2870
注册时间: 2008-09-18 23:40
系统: Ubuntu 15.04 x64
来自: Mars

Re: linux下的独立gtalk客户端,支持语音和传文件(已上传源码)

#60

帖子 mymathersname » 2009-03-05 7:42

yjcong和xiongqin很强啊,你们辛苦了,作为致力于初级用户使用ubuntu的用户,建议以后加入ubuntu源里,并希望LZ能把源代码上传至google code,有利于全世界linux用户的使用,我也非常关注这个软件(虽然pidgin可以上gtalk),我将在新的一期Full Circle杂志中提到LZ的gtalk,并希望LZ能整理好软件说明和安装方法,这样有利于初学者使用,麻烦了…… :em11
转移各位校内,百毒朋友,把目标转向twitter和facebook,别总看局域网的内容
其实从那么多的ubuntu发行版和fedora的各个发行版中,我们不难看出,linux的进步是惊人的,从长久的发展规律和更加深远的意义来看,linux桌面版与微软的距离在缩小,这是值得庆幸的……
ubuntu是半年还去偷情一次的初恋。fedora是一生挚爱的正室。debian是和正室同等地位的妾侍。rh/cent是用来偷窥的正室大姐姐。suse是一夜夫妻百二蚊。gentoo是有内涵的才女。arch是久闻其名不敢接触的怪叔叔。其余发行版,我是帝皇它们是屁民,无福宠幸。
回复