QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 905|回复: 7

在编译d4x时出现的问题!

[复制链接]
发表于 2005-1-19 21:56:18 | 显示全部楼层 |阅读模式
我在编译d4x时出现如下提示:
*** Could not run GLIB 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 GLIB is incorrectly installed.
configure: error: *** GLIB >= 2.4.0 not installed! ***

好像是GLIB的版本太低,不知道该如何解决?
或者在哪里可以下载到高版本?
小弟再次先谢谢了

ftp://ftp.trolltech.com/qt/source/qt-x11-free-3.1.2.tar.bz2
http://stardict.sourceforge.net/
发表于 2005-1-20 00:22:34 | 显示全部楼层
[code:1]
Beyond Linux From Scratch – Version svn-20041205


Chapter 8. General Libraries

Prev  
Next
Home

GLib-2.4.7


Introduction to GLib


The glib package contains a low-level core library. This is useful for providing data structure handling for C, portability wrappers and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.


Package information


Download (HTTP): http://gd.tuwien.ac.at/graphics/gimp/gtk/v2.4/glib-2.4.7.tar.bz2


Download (FTP): ftp://ftp.gtk.org/pub/gtk/v2.4/glib-2.4.7.tar.bz2


MD5 sum: eff6fec89455addf8b0dee5a19e343be


Download size: 2.1 MB


Estimated disk space required: 35 MB


Estimated build time: 1.01 SBU


GLib dependencies


Required


pkgconfig-0.15.0


Optional


GTK-Doc-1.2


Installation of GLib


Install glib by running the following commands:

./configure --prefix=/usr &&
make &&
make install

Command explanations


--enable-gtk-doc: This switch will rebuild the API documentation during the make command.


Contents


The glib package contains glib-genmarshal, glib-gettextize, glib-mkenums, gobject-query, libglib-2.0, libgobject-2.0, libgmodule-2.0 and libgthread-2.0 libraries.


Description


glib-genmarshal


glib-genmarshal is a C code marshaller generation utility for GLib closures.


glib-gettextize


glib-gettextize is a variant of the gettext internationalization utility.


glib-mkenums


glib-mkenums is a C language enum description generation utility.


gobject-query


gobject-query is a small utility that draws a tree of types.


GLib libraries


GLib libraries contain a low-level core library for the GIMP Toolkit.

Prev
GLib-1.2.10  
Next
libIDL-0.8.4

[/code:1]

[code:1]
pkgconfig-0.15.0


Introduction to pkgconfig


The pkgconfig package contains tools for passing the include path and/or library paths to build tools during the make file execution.


Package information


Download (HTTP): http://www.freedesktop.org/software/pkgconfig/releases/pkgconfig-0.15.0.tar.gz


Download (FTP):


Download size: 604 KB


Estimated Disk space required: 5.2 MB


Estimated build time: 0.22 SBU


Installation of pkgconfig


Install pkgconfig by running the following commands:

./configure --prefix=/usr &&
make &&
make install

Configuring pkgconfig


The default setting for PKG_CONFIG_PATH is /usr/lib/pkgconfig because of the prefix we use to install pkgconfig. You may add to PKG_CONFIG_PATH by exporting additional paths on your system where pkgconfig files are installed. Note that PKG_CONFIG_PATH is only needed when compiling packages, not during run-time.


Contents


The pkgconfig package contains pkg-config.


Description


pkg-config


pkg-config is a function that returns meta information for the specified library.
[/code:1]
回复

使用道具 举报

 楼主| 发表于 2005-1-20 12:14:27 | 显示全部楼层
谢谢了,glib终于可以了,但是GTK好像又有问题了.

checking for GTK+ - version >= 2.4.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.4.0 not installed! ***

在哪里可以找到高版本的 GTK啊?
回复

使用道具 举报

发表于 2005-1-20 17:01:37 | 显示全部楼层
ft...你是什么系统?怎么什么都没有。
我这里的gtk-2.4.13的文档需要 X (X.org-6.8.1 or XFree86-4.4.0)
你的X版本够吗?
回复

使用道具 举报

 楼主| 发表于 2005-1-20 18:40:59 | 显示全部楼层
6692975,谢谢你对我的帮助.
我的是Fedora core 3.
我的好像是X11吧,具体的我也不清楚.
在哪里可以弄到gtk-2.4.13阿?
我刚才找了一个最新版本的.2.4.14
http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.4/
回复

使用道具 举报

发表于 2005-1-20 19:57:03 | 显示全部楼层
哦 fc3阿。用apt-get 阿。 多方便的工具阿。
那你需要的不是完整的gtk 只是需要devel包
你可以通过 rpm -qa |grep gtk 得到你现在系统已经安装了gtk+-2.x
应该在2.4以上了。
然后按照系统所有的版本去找相应的devel包
可以去http://rpm.pbone.net
www.rpmfind.net
去搜搜。

不过apt管理就可以解决这个问题,最好用它。

p.s : 你用的应该是Xorg 6.8.1
回复

使用道具 举报

 楼主| 发表于 2005-1-20 21:17:39 | 显示全部楼层
我还是不太清楚,它的提示如下:
gtk2-engines-2.2.0-6
gtkspell-2.0.7-2
pygtk2-libglade-2.4.0-1
usermode-gtk-1.74-1
gtkhtml3-3.3.2-3
gtk-engines-0.12-5
gtk2-2.4.13-9
gtkhtml2-2.6.2-1
authconfig-gtk-4.6.5-3.1
gtk+-1.2.10-33
aiksaurus-gtk-1.2.1-2
gtkhtml-1.1.9-10
iiimf-gtk-12.1-4
gnome-python2-gtkhtml2-2.6.0-3
pygtk2-2.4.0-1
gtksourceview-1.1.0-3
[root@maurice ~]#
我下了一个gtk+-2.4.14,但提示如下:

configure: error:
*** Checks for PNG loader failed. You can build without it by passing
*** --without-libpng to configure but many programs using GTK+ will
*** not work properly. The PNG loader is also needed if you are compiling
*** from CVS.

我安照的说法做了,还提示我Checks for TIFF loader failed.不知道是缺少哪些东西?
当我把这些都without之后,又出现了如下文题:
configure: error: Pango 1.2.0 and Xft backend is required for x11 target.
我的pango都1.8.0了,这是怎么回事啊?
回复

使用道具 举报

发表于 2005-1-20 22:02:27 | 显示全部楼层
你的系统已经安装gtk2-2.4.13-9 了阿。
缺少的是开发包,下个开发包就可以了,不过看来fc3不是以devel命名开发包了,
去问问正在使用FC3的gtk2-2.4.13-9的开发包是什么,下载装上就可以了
自己编译gtk2.4很麻烦。
你这个错误是因为没有找到/usr/lib/pkgconfig/pangoxft.pc这个文件。
如果你想自己编译gtk2.4的话,这有几篇文档可以参考:


[code:1]

GTK+-2.4.13
Introduction to GTK+

The GTK+ package contains GTK+ Libraries. This is useful for creating graphical user interfaces for applications.
Package information

    *

      Download (HTTP): http://gd.tuwien.ac.at/graphics/gimp/gtk/v2.4/gtk+-2.4.13.tar.bz2
    *

      Download (FTP): ftp://ftp.gtk.org/pub/gtk/v2.4/gtk+-2.4.13.tar.bz2
    *

      Download size: 8.9 MB
    *

      Estimated Disk space required: 198 MB
    *

      Estimated build time: 2.88 SBU

GTK+ dependencies
Required

X (X.org-6.8.1 or XFree86-4.4.0), Pango-1.6.0 and ATK-1.8.0
Optional

libtiff-3.7.0, libjpeg-6b, GTK-Doc-1.2 and DocBook-utils-0.6.14
Installation of GTK+

Install GTK+ by running the following commands:

./configure --prefix=/usr --sysconfdir=/etc \
    --without-libtiff --without-libjpeg &&
make &&
make install

Command explanations

--sysconfdir=/etc: This switch installs the configuration files into /etc instead of /usr/etc.

--without-libtiff: Omit this switch if you have libtiff installed.

--without-libjpeg: Omit this switch if you have libjpeg installed.

--enable-gtk-doc: This switch will rebuild the API documentation during the make command.
Contents

The GTK+ package contains libgdk_pixbuf-2.0, libgdk-x11-2.0, libgtk-x11-2.0 and libgdk_pixbuf_xlib-2.0 libraries.
Description
GTK+ Libraries

GTK+ Libraries provide the API to implement graphical user interfaces.
[/code:1]

[code:1]

Pango-1.6.0
Introduction to Pango

The Pango package contains the libpango library. This is useful for the layout and rendering of text.
Package information

    *

      Download (HTTP): http://ftp.gnome.org/pub/GNOME/sources/pango/1.6/pango-1.6.0.tar.bz2
    *

      Download (FTP): ftp://ftp.gnome.org/pub/GNOME/sources/pango/1.6/pango-1.6.0.tar.bz2
    *

      Download size: 930 KB
    *

      Estimated Disk space required: 22.8 MB
    *

      Estimated build time: 0.49 SBU

Pango dependencies
Required

GLib-2.4.7
Optional

Xft (included in XFree86-4.4.0 or X.org-6.8.1), Fontconfig-2.2.3 and GTK-Doc-1.2
Installation of Pango

In order for Pango to find Xft, the PKG_CONFIG_PATH must include /usr/X11R6/lib/pkgconfig. This is a good time to add it if you haven't already. You can utilize the example for X.sh to create a script for modifying this variable located in the section The Bash Shell Startup Files.

Install Pango by running the following commands:

./configure --prefix=/usr --sysconfdir=/etc &&
make &&
make install

Command explanations

--sysconfdir=/etc: This switch installs the configuration files into /etc instead of /usr/etc.

--enable-gtk-doc: This switch will rebuild the API documentation during the make command.
Configuring Pango
Config files

/etc/pango/pangorc, ~/.pangorc and the file specified in the environment variable PANGO_RC_FILE
Configuration Information

The Pango module path is specified by the key Pango/ModulesPath in the Pango config database, which is read from the config files listed above.
Contents

The Pango package contains pango-querymodules, libpango libraries and Pango loadable modules.
Description
pango-querymodules

pango-querymodules is a module registration utility that collects information about Pango loadable modules
Pango libraries

Pango libraries contain low level layout rendering routines, a high level driver for laying out entire blocks of text, and routines to assist in editing internationalized text.
[/code:1]

[code:1]

ATK-1.8.0
Introduction to ATK

The ATK package contains the ATK libraries. They are useful for allowing accessibility solutions to be available for all GTK2 applications.
Package information

    *

      Download (HTTP): http://ftp.gnome.org/pub/GNOME/sources/atk/1.8/atk-1.8.0.tar.bz2
    *

      Download (FTP): ftp://ftp.gnome.org/pub/GNOME/sources/atk/1.8/atk-1.8.0.tar.bz2
    *

      Download size: 489 KB
    *

      Estimated Disk space required: 7.9 MB
    *

      Estimated build time: 0.13 SBU

ATK dependencies
Required

GLib-2.4.7
Optional

GTK-Doc-1.2
Installation of ATK

Install ATK by running the following commands:

./configure --prefix=/usr &&
make &&
make install

Command explanations

--enable-gtk-doc: This switch will rebuild the API documentation during the make command.
Contents

The ATK package contains libatk libraries.
Description
ATK Libraries

ATK libraries contain the API used by assistive technologies in order to interact with the desktop and applications.
[/code:1]

[code:1]

libtiff-3.7.0
Introduction to libtiff

The libtiff package contains the TIFF libraries and associated utilities. The libraries are used by many programs for reading and writing TIFF files and the utilities are useful for general work with TIFF files.
Package information

    *

      Download (HTTP): http://libtiff.maptools.org/dl/tiff-3.7.0.tar.gz
    *

      Download (FTP): ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.7.0.tar.gz
    *

      Download size: 1.2 MB
    *

      Estimated Disk space required: 15.6 MB
    *

      Estimated build time: 0.41 SBU

Additional downloads

    *

      Required Patch: http://www.linuxfromscratch.org/blfs/downloads/svn/tiff-3.7.0-libtool_fix-1.patch

libtiff dependencies
Optional

libjpeg-6b, X (XFree86-4.4.0 or X.org-6.8.1) and freeglut-2.2.0
Installation of libtiff

Install libtiff by running the following commands:

patch -Np1 -i ../tiff-3.7.0-libtool_fix-1.patch &&
./configure --prefix=/usr &&
make &&
make install

Contents

The libtiff package contains bmp2tiff, fax2ps, fax2tiff, gif2tiff, pal2rgb, ppm2tiff, ras2tiff, raw2tiff, rgb2ycbcr, thumbnail, tiff2bw, tiff2pdf, tiff2ps, tiff2rgba, tiffcmp, tiffcp, tiffdither, tiffdump, tiffgt, tiffinfo, tiffmedian, tiffset, tiffsplit and libtiff libraries.
Description
bmp2tiff

bmp2tiff converts a Microsoft Windows Device Independent Bitmap image file to a TIFF image.
fax2ps

fac2ps converts a TIFF facsimile to compressed PostScript file.
fax2tiff

fax2tiff creates a TIFF Class F fax file from raw fax data.
gif2tiff

gif2tiff creates a TIFF file from a GIF87 format image file.
pal2rgb

pal2rgb converts a palette color TIFF image to a full color image.
ppm2tiff

ppm2tiff creates a TIFF file from a PPM image file.
ras2tiff

ras2tiff creates a TIFF file from a Sun rasterfile.
raw2tiff

raw2tiff converts a raw byte sequence into TIFF.
rgb2ycbcr

rgb2ycbcr converts non-YCbCr TIFF images to a YCbCr TIFF image.
thumbnail

thumbnail creates a TIFF file with thumbnail images.
tiff2bw

tiff2bw converts a color TIFF image to grayscale.
tiff2pdf

tiff2pdf converts a TIFF image to a PDF document.
tiff2ps

tiff2ps converts a TIFF image to a PostScript file.
tiff2rgba

tiff2rgba converts a wide variety of TIFF images into an RGBA TIFF image.
tiffcmp

tiffcmp compares two TIFF files.
tiffcp

tiffcp copies (and possibly converts) a TIFF file.
tiffdither

tiffdither converts a grayscale image to bilevel using dithering.
tiffdump

tiffdump prints verbatim information about TIFF files.
tiffgt

tiffgt displays an image stored in a TIFF file in an X window.
tiffinfo

tiffinfo prints information about TIFF files.
tiffmedian

tiffmedian applies the median cut algorithm to data in a TIFF file.
tiffsplit

tiffsplit splits a multi-image TIFF into single-image TIFF files.
libtiff libraries

The libtiff libraries are used by many programs to read and write TIFF files.
[/code:1]

[code:1]
libjpeg-6b
Introduction to libjpeg

The libjpeg package contains libraries that allow compression of image files based on the Joint Photographic Experts Group standard. It is a "lossy" compression algorithm.
Package information

    *

      Download (HTTP): http://www.ijg.org/files/jpegsrc.v6b.tar.gz
    *

      Download (FTP): ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
    *

      Download size: 599 KB
    *

      Estimated Disk space required: 3.7 MB
    *

      Estimated build time: 0.26 SBU

Installation of libjpeg

Install libjpeg by running the following commands:

./configure --prefix=/usr --enable-static --enable-shared &&
make &&
make install

Command explanations

--enable-static --enable-shared: These switches tell libjpeg to build both shared and static libraries.
Configuring libjpeg
Configuration Information

As with most libraries, there is no configuration to do, save that the library directory i.e., /opt/lib or /usr/local/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries. After checking that this is the case, /sbin/ldconfig should be run while logged in as root.
Contents

The libjpeg package contains cjpeg, djpeg, jpegtran, rdjpgcom, wrjpgcom and libjpeg libraries.
Description
cjpeg

cjpeg compresses image files to produce a JPEG/JFIF file on the standard output. Currently supported input file formats are: PPM (PBMPLUS color format), PGM (PBMPLUS gray-scale format), BMP, and Targa.
djpeg

djpeg decompresses image files from JPEG/JFIF format to either PPM (PBMPLUS color format), PGM (PBMPLUS gray-scale format), BMP, or Targa format.
jpegtran

jpegtran is used for lossless transformation of JPEG files.
rdjpgcom

rdjpgcom displays text comments from within a JPEG file.
wrjpgcom

wrjpgcom inserts text comments into a JPEG file.
jpeg libraries

These libraries are used by many programs for reading and writing jpeg format files.
[/code:1]
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-24 20:41 , Processed in 0.075000 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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