红联Linux门户
Linux帮助

Linux下的飞鸽传书

发布时间:2007-04-19 00:40:41来源:红联作者:forest
在Linux下使用ipmsg(飞鸽传书)

ipmsg是个不错的局域网通讯软件,非常小巧,无需服务器端,使用非常方便。

在Linux下使用需要自行编译。

在官方网站下载源码:http://www.ipmsg.org/index.html.en

解压后需要修改源码以支持中文:
文件:src/codeset.c
原文:#define IPMSG_PROTO_CODE "CP932"
改成:#define IPMSG_PROTO_CODE "GBK"

然后,编译之,为了方便在任务栏运行,加编译参数:--enable-systray

./configure --enable-systray
make
make install

运行 g2ipmsg就OK了。
文章评论

共有 1 条评论

  1. 202.106.74.* 于 2007-07-25 17:25:33发表:

    [root@DevHost g2ipmsg-0.8.6]# make
    make all-recursive
    make[1]: Entering directory `/root/tools/g2ipmsg-0.8.6'
    Making all in src
    make[2]: Entering directory `/root/tools/g2ipmsg-0.8.6/src'
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DGNOMELOCALEDIR=\""/usr/local/share/locale"\" -DORBIT2=1 -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/freetype2/config -I/usr/include/libxml2 -I/usr/include/panel-2.0 -g -O2 -MT ipmsg.o -MD -MP -MF ".deps/ipmsg.Tpo" -c -o ipmsg.o ipmsg.c; \
    then mv -f ".deps/ipmsg.Tpo" ".deps/ipmsg.Po"; else rm -f ".deps/ipmsg.Tpo"; exit 1; fi
    In file included from message.h:4,
    from common.h:16,
    from ipmsg.c:29:
    callbacks.h:235: error: syntax error before "on_downloadfilechooserdialog_confirm_overwrite"
    callbacks.h:237: warning: data definition has no type or storage class
    make[2]: *** [ipmsg.o] 错误 1
    make[2]: Leaving directory `/root/tools/g2ipmsg-0.8.6/src'
    make[1]: *** [all-recursive] 错误 1
    make[1]: Leaving directory `/root/tools/g2ipmsg-0.8.6'
    make: *** [all] 错误 2