LinuxSir.cn,穿越时空的Linuxsir!

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

GTK+-2.6.7怎么无法configure

[复制链接]
发表于 2005-11-7 18:30:56 | 显示全部楼层 |阅读模式
我按照 BLFS上的说明先安装好X.org-6.8.2、Pango-1.8.1、ATK-1.9.1 ,
并且设置好PATH和
export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig

执行:./configure --prefix=/usr --sysconfdir=/etc

显示:
....................
checking return type of signal handlers... (cached) void
checking for x86 platform... yes
checking compiler support for MMX... yes
checking for freetype-config... /usr/bin/freetype-config
checking For sufficiently new FreeType (at least 2.0.1)... yes
configure: error: Xft Pango backend is required for x11 target

这是怎么回事?
怎么解决?
发表于 2005-11-7 19:34:00 | 显示全部楼层
装一下pango
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-7 19:40:09 | 显示全部楼层

安装过了

Post by Allan.Yu
装一下pango

我已经按照BLFS的手册正确安装了!
回复 支持 反对

使用道具 举报

发表于 2005-11-8 14:24:56 | 显示全部楼层
gtk+ need cairo,pango................

first install cairo, it's 2D lib, all gnome lib need it
回复 支持 反对

使用道具 举报

发表于 2005-11-8 14:31:32 | 显示全部楼层
BLFS book is not for your platform, only a book, you must change many for yourself.
like me. I first install X11,X11 only need 3 or 4 lib to install.
for the Gnome,gtk1 i not need, if install firefox, you must do it from source for firefox-1.5xx,so firefox-1.0.xxx need old gtk vesion.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-8 20:51:52 | 显示全部楼层

郁闷

Post by mengrz
gtk+ need cairo,pango................

first install cairo, it's 2D lib, all gnome lib need it


一定要安装cairo吗?我下载了cairo-1.0.2,configure时没问题,但是一make就报错!

在gtk+-2.6.7下configure时没有看到要求cairo的信息,但是在gtk+-2.8.6下configure时确实看到关于cairo的信息,难道这个错误是由于cairo引起的?那为什么在gtk+-2.6.7下configure时的错误提示是关于pango的?,而且我把pango升级到1.10.1错误依旧!

真是很郁闷,这么长时间了,一起这个错误的原因还没找到!
pango到底需要什么样的配置?

高手们请帮我找找错!
回复 支持 反对

使用道具 举报

发表于 2005-11-9 02:52:51 | 显示全部楼层
试试 GTK+-2.8.6。

cairo需要 /usr/X11R6/lib/pkgconfig/xrender.pc ,看看是否存在。
其他的,没什么,我装cairo很顺利,没问题。
回复 支持 反对

使用道具 举报

发表于 2005-11-9 14:32:02 | 显示全部楼层
atk-1.10.3.tar.bz2             libart_lgpl-2.3.17.tar.bz2
at-spi-1.6.6.tar.bz2           libbonobo-2.10.1.tar.bz2
audiofile-0.2.6.tar.bz2        libbonoboui-2.10.1.tar.bz2
cairo-1.0.2.tar.gz             libglade-2.5.1.tar.bz2
down.sum                       libgnome-2.12.0.1.tar.bz2
esound-0.2.36.tar.bz2          libgnomecanvas-2.12.0.tar.bz2
gail-1.8.5.tar.bz2             libgnomeui-2.12.0.tar.bz2
GConf-2.12.0.tar.bz2           libIDL-0.8.6.tar.bz2
glib-2.8.3.tar.bz2             libxml2-2.6.22.tar.bz2
gnome-mime-data-2.4.2.tar.bz2  libxslt-1.1.15.tar.bz2
gnome-vfs-2.12.1.1.tar.bz2     md5sum
gtk+-2.8.6.tar.bz2             ORBit2-2.12.4.tar.bz2
gtk-doc-1.4.tar.bz2            pango-1.10.1.tar.bz2
intltool-0.34.1.tar.bz2        pkg-config-0.19.tar.bz2

我用的是gnome-2.12.1,上面是我的gnome-platform软件版本,我装时没什么问题呀。
先装cairo再装pango,如是不是这样的话,gtk会说error:pango not with cairo
我是直接在gnome.org上下的,分三个包,分别是platform,desktop,binding,装platform时哪个包什么时侯装有时重要,desktop,binding随便装就行的,不过有的包之间有关系,不过在configure时都会提示的,而且每装一个包之前建议你先看看它的README,不过我想你应该去看看gnome的文档在装,还有不要照BLFS的命令,要根据自己的情况改变,BLFS只是给你一个提示而已,
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-9 20:37:12 | 显示全部楼层
Post by 黯然销魂
试试 GTK+-2.8.6。

cairo需要 /usr/X11R6/lib/pkgconfig/xrender.pc ,看看是否存在。
其他的,没什么,我装cairo很顺利,没问题。

我在configure时出现如下问题:
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking whether byte ordering is bigendian... no
checking for vasnprintf... no
checking for cos in -lm... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XRENDER... yes
checking for XrmFinalize... no
checking for some Win32 platform... no
configure: WARNING: Could not find libpng in the pkg-config search path
configure: WARNING: "*** To run the tests
checking for FONTCONFIG... checking for FcFini... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
configure: WARNING: PS backend requires FreeType 2.1.4 or newer, disabling
checking for compress in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
configure: WARNING: PDF backend requires FreeType 2.1.4 or newer, disabling
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking for uint64_t... yes
checking for uint128_t... no
checking For MMX/SSE intrinsics in the compiler... yes
configure: creating ./config.status
config.status: creating cairo.pc
config.status: creating Makefile
config.status: creating pixman/Makefile
config.status: creating pixman/src/Makefile
config.status: creating src/Makefile
config.status: creating src/cairo-features.h
config.status: creating test/Makefile
config.status: creating doc/Makefile
config.status: creating doc/public/Makefile
config.status: creating doc/public/version.xml
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

cairo will be compiled with the following surface backends:
  Xlib: yes
  Quartz: no
  XCB: no
  Win32: no
  PostScript: no
  PDF: no
  glitz: no

the following font backends:
  FreeType: no
  Win32: no
  ATSUI: no

and the following features:
  PNG functions: no
configure: error: Cairo requires at least one font backend.
                  Please install freetype and fontconfig, then try again:
                  http://freetype.org/        http://fontconfig.org/


               
我已经正确安装FreeType-2.1.10、Fontconfig-2.3.2怎么还有这样的提示?
难道这面提示到的软件包我都要先安装好吗?
回复 支持 反对

使用道具 举报

发表于 2005-11-9 21:37:31 | 显示全部楼层
libpng没检测到。

还有,PKG_CONFIG_PATH 里边有没有包括 fontconfig.pc?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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