编译iptux-0.5.2时出错

编译打包和其他
回复
头像
cwll
帖子: 190
注册时间: 2011-07-05 11:10

编译iptux-0.5.2时出错

#1

帖子 cwll » 2011-11-07 17:26

我下载的iptux-0.5.1按照说明,先./configure再make,没有问题。
编译iptux-0.5.2时出错如下:
utils.o: In function `ipmsg_get_attach(char const*, char, unsigned char)':
/home/ubuntu/Downloads/iptux-0.5.2/src/utils.cpp:485: undefined reference to `g_strdup'
utils.o: In function `iptux_erase_filename_suffix(char const*)':
/home/ubuntu/Downloads/iptux-0.5.2/src/utils.cpp:559: undefined reference to `g_strdup'
wrapper.o: In function `operator new(unsigned int)':
/home/ubuntu/Downloads/iptux-0.5.2/src/wrapper.cpp:22: undefined reference to `g_malloc'
collect2: ld returned 1 exit status
make[3]: *** [iptux] Error 1
make[3]: Leaving directory `/home/ubuntu/Downloads/iptux-0.5.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ubuntu/Downloads/iptux-0.5.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ubuntu/Downloads/iptux-0.5.2'
make: *** [all] Error 2

非常多的“undefined reference”错误,上面只列出了部分,高手帮看看问题在哪里?
我是ubuntu11.10,GTK环境是按照下面顺序安装的
sudo apt-get install build-essential
sudo apt-get install gnome-core-devel
sudo apt-get install pkg-config

这个是官方下载的iptux-0.5.2。
http://iptux.googlecode.com/files/iptux-0.5.2.tar.gz
头像
cwll
帖子: 190
注册时间: 2011-07-05 11:10

Re: 编译iptux-0.5.2时出错

#2

帖子 cwll » 2011-11-08 8:54

问题解决了,是iptux-0.5.2/src/makefile.am写的有问题。
小马专用
帖子: 25
注册时间: 2012-03-01 21:02

Re: 编译iptux-0.5.2时出错

#3

帖子 小马专用 » 2012-03-30 22:25

cwll 写了:问题解决了,是iptux-0.5.2/src/makefile.am写的有问题。
写的有问题?我的安装的时候说缺少glib什么的。。。。。完全不会弄阿
头像
cwll
帖子: 190
注册时间: 2011-07-05 11:10

Re: 编译iptux-0.5.2时出错

#4

帖子 cwll » 2012-03-31 23:00

小马专用 写了:
cwll 写了:问题解决了,是iptux-0.5.2/src/makefile.am写的有问题。
写的有问题?我的安装的时候说缺少glib什么的。。。。。完全不会弄阿
你在./configure时根据提示看少了什么依赖库,用sudo apt-get install 把缺少的库安装一下就可以了。
回复