LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 757|回复: 7

[救助]安装gtk+-2.4.10的时候老是通不过。。。

[复制链接]
发表于 2004-9-23 14:10:48 | 显示全部楼层 |阅读模式


---------------
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -DXTHREADS -I/usr/X11R6/include -g -O2 -Wall -MT gdkasync.lo -MD -MP -MF .deps/gdkasync.Tpo -c gdkasync.c  -fPIC -DPIC -o .libs/gdkasync.o
In file included from /usr/X11R6/include/X11/Xft/Xft.h:41,
                 from ../../gdk/x11/gdkdrawable-x11.h:35,
                 from ../../gdk/x11/gdkwindow-x11.h:30,
                 from gdkprivate-x11.h:36,
                 from gdkx.h:78,
                 from gdkasync.c:49:
/usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/include/freetype2/freetype/freetype.h:21:2: #error "lease always use macros to include FreeType header files."
/usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/include/freetype2/freetype/freetype.h:23:2: #error "  #include <ft2build.h>"
/usr/include/freetype2/freetype/freetype.h:24:2: #error "  #include FT_FREETYPE_H"
make[4]: *** [gdkasync.lo] 错误 1
make[4]: Leaving directory `/home/root/software/gtk+-2.4.10/gdk/x11'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/home/root/software/gtk+-2.4.10/gdk'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/home/root/software/gtk+-2.4.10/gdk'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/root/software/gtk+-2.4.10'
make: *** [all] 错误 2
root@0[gtk+-2.4.10]#
------------------------------------------------
这个错误是什么意思?
 楼主| 发表于 2004-9-24 20:42:06 | 显示全部楼层
没人遇到这情况?
没有人知道这错误说的是什么么?
:(
发表于 2004-9-24 21:22:25 | 显示全部楼层
打开 /usr/X11R6/include/X11/Xft/Xft.h
在41行前加入一行;
#include <ft2build.h>
就ok了
 楼主| 发表于 2004-9-26 16:46:32 | 显示全部楼层
多谢:)

加入#include<ft2build.h>后,顺利通过,提示pango

装!也通过

再装gtk+-2.5.3
tar
cd gtk+-2.5.3
#./configure --sysconfdir=/etc  没错误
make  没错误
make install 后得:
-------------
/bin/sh ./mkinstalldirs /usr/local/lib/pkgconfig
/usr/bin/install -c -m 644 gdk-pixbuf-2.0.pc /usr/local/lib/pkgconfig/gdk-pixbuf-2.0.pc
/usr/bin/install -c -m 644 gdk-x11-2.0.pc /usr/local/lib/pkgconfig/gdk-x11-2.0.pc
/usr/bin/install -c -m 644 gtk+-x11-2.0.pc /usr/local/lib/pkgconfig/gtk+-x11-2.0.pc
make  install-data-hook
make[3]: Entering directory `/home/root/software/gtk+-2.5.3'
(cd /usr/local/lib/pkgconfig && \
test -f gdk-x11-2.0.pc && \
test -f gtk+-x11-2.0.pc && \
rm -f gdk-2.0.pc && cp -f gdk-x11-2.0.pc gdk-2.0.pc && \
rm -f gtk+-2.0.pc && cp -f gtk+-x11-2.0.pc gtk+-2.0.pc) || \
(cd /usr/local/lib/pkgconfig && \
rm -f gdk-2.0.pc && cp -f gdk-x11-2.0.pc gdk-2.0.pc && \
rm -f gtk+-2.0.pc && cp -f gtk+-x11-2.0.pc gtk+-2.0.pc)
make[3]: Leaving directory `/home/root/software/gtk+-2.5.3'
make[2]: Leaving directory `/home/root/software/gtk+-2.5.3'
make[1]: Leaving directory `/home/root/software/gtk+-2.5.3'
root@8[gtk+-2.5.3]#
------------------------------------
也不见错误,应该成功了吧?

可是这时改如何指定gtk的路径问题呢?

偶直接

cd gaim-1.0.0
./configure
还是提示

checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.5.3)
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
*** GTK+ 2.0 is required to build Gaim; please make sure you have the GTK+
*** development headers installed. The latest version of GTK+ is
*** always available at http://www.gtk.org/.
root@8[gaim-1.0.0]#
=====================================================
改如何指定路径呢?
老提示找不到:(

希望大家帮忙,搜索了一个下午没有找到相应的解决办法
:(
 楼主| 发表于 2004-9-26 16:58:29 | 显示全部楼层
错误提示是:

checking for pkg-config... /usr/bin/pkg-config
checking for silc... Package silc was not found in the pkg-config search path.
Perhaps you should add the directory containing `silc.pc'
to the PKG_CONFIG_PATH environment variable
No package 'silc' found
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking for uname... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.5.3)
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
*** GTK+ 2.0 is required to build Gaim; please make sure you have the GTK+
*** development headers installed. The latest version of GTK+ is
*** always available at http://www.gtk.org/.
root@8[gaim-1.0.0]#
--------------------------------------------------------
checking for pkg-config... /usr/bin/pkg-config
checking for silc... Package silc was not found in the pkg-config search path.
Perhaps you should add the directory containing `silc.pc'
to the PKG_CONFIG_PATH environment variable
No package 'silc' found

没有找到silc package.感觉应该是PKG_CONFIG_PATH环境变量没有设置好,倒置找不到吧?

正确改如何设置呢?gtk没有搞定好多软件的安装都卡在这里
发表于 2004-9-26 17:22:44 | 显示全部楼层
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH /usr/local/lib/pkgconfig"
 楼主| 发表于 2004-9-26 17:42:32 | 显示全部楼层
谢谢帮忙

root@10[gaim-0.77]# export PKG_CONFIG_PATH="$PKG_CONFIG_PATH /usr/local/lib/pkgconfig"
root@10[gaim-0.77]# ./configure
-------------------------------------
这样吗?还是通不过:(
 楼主| 发表于 2004-9-26 20:56:03 | 显示全部楼层
谢谢帮忙

不过还有问题:(

安装openq 在make 的时候

qq.c:942: error: `GAIM_PLUGIN_API_VERSION' undeclared here (not in a function)
qq.c:942: error: initializer element is not constant
qq.c:942: error: (near initialization for `info.magic')
qq.c:944: warning: initialization makes integer from pointer without a cast
qq.c:949: warning: initialization from incompatible pointer type
qq.c:950: warning: initialization makes integer from pointer without a cast
qq.c:964: warning: initialization from incompatible pointer type
make[2]: *** [qq.lo] 错误 1
make[2]: Leaving directory `/home/root/software/OpenQ-0.3.0.p3/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/root/software/OpenQ-0.3.0.p3'
make: *** [all] 错误 2
root@10[OpenQ-0.3.0.p3]#
---------------------------------------

意思是什么,改如何处理?
谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表