suse10sp1编译glib-2

下载:

The GTK Project - A free and open-source cross-platform widget toolkit

GLib下载

下载glib-2.4版本,解压后,里面已经包含configure

./configure CFLAGS="-g -O2 -fPIC -Wall" --disable-shared --enable-static --prefix=/opt/mylib/glib/

另外编译libuuid.a/libblkid.a

下载 Ext2/Ext3/Ext4 Filesystems Utilities - Browse /e2fsprogs at SourceForge.net

我下载的是v1.38

./configure CFLAGS="-g -O2 -fPIC -Wall" --prefix=/opt/mylib/e2fsprogs/

############################

####以下是别的版本需要执行./autoconf的

###经过实测2.40的是不行的,执行./autogen.sh  -f 生成不了configure。也许需要加一些参数

./autogen.sh 
I am going to run ./configure with no arguments - if you wish 
to pass any to it, please specify them on the ./autogen.sh command line.

(none):~/glib_code/glib-2.20

.1 # ./autogen.sh  -f
gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
docs/reference/gio/Makefile.am:107:   `gtk-doc.make' included from here
gtk-doc.make:50: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/reference/gio/Makefile.am:107:   `gtk-doc.make' included from here
gtk-doc.make:175: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/reference/gio/Makefile.am:107:   `gtk-doc.make' included from here
gtk-doc.make:26: EXTRA_DIST multiply defined in condition TRUE ...
docs/reference/gio/Makefile.am:107:   `gtk-doc.make' included from here
Makefile.decl:8: ... `EXTRA_DIST' previously defined here
docs/reference/gio/Makefile.am:1:   `Makefile.decl' included from here
gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
docs/reference/glib/Makefile.am:73:   `gtk-doc.make' included from here
gtk-doc.make:50: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/reference/glib/Makefile.am:73:   `gtk-doc.make' included from here
gtk-doc.make:175: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/reference/glib/Makefile.am:73:   `gtk-doc.make' included from here
gtk-doc.make:26: EXTRA_DIST multiply defined in condition TRUE ...
docs/reference/glib/Makefile.am:73:   `gtk-doc.make' included from here
Makefile.decl:8: ... `EXTRA_DIST' previously defined here
docs/reference/glib/Makefile.am:2:   `Makefile.decl' included from here
gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
docs/reference/gobject/Makefile.am:61:   `gtk-doc.make' included from here
gtk-doc.make:50: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/reference/gobject/Makefile.am:61:   `gtk-doc.make' included from here
gtk-doc.make:175: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/reference/gobject/Makefile.am:61:   `gtk-doc.make' included from here
gtk-doc.make:26: EXTRA_DIST multiply defined in condition TRUE ...
docs/reference/gobject/Makefile.am:61:   `gtk-doc.make' included from here
Makefile.decl:8: ... `EXTRA_DIST' previously defined here
docs/reference/gobject/Makefile.am:2:   `Makefile.decl' included from here

以上可能是因为版本太高,换成低版本的glib试试。

首选通过镜像安装autoconf/authomake

其中gtk-doc找不到,只能下载源码编译

checking for DocBook XML DTD V4.3 in XML catalog... not found
configure: error: could not find DocBook XML DTD V4.3 in XML catalog

zypper install docbook-xsl-stylesheets

zypper install docbook_4

zypper install docbook_3

zypper install docbook-dsssl-stylesheets

/bin/sh: scrollkeeper-config: command not found
scrollkeeper-update -p  -o /usr/local/share/omf/gtk-doc-manual
/bin/sh: scrollkeeper-config: command not found
/bin/sh: scrollkeeper-update: command not found

zypper install scrollkeeper

附其它的配置:如果找不到安装包

(none):~/# zypper sl
# | Enabled | Refresh | Type | Name                                | URI           
--+---------+---------+------+-------------------------------------+---------------
1 | Yes     | No      | YaST | SUSE Linux Enterprise Server 10 SP1 | dvd:///       
2 | Yes     | Yes     | YaST | local-dvd1                          | file:/mnt/dvd1
3 | Yes     | Yes     | YaST | local-dvd2                          | file:/mnt/dvd2

第一个不存在,删除 zypper sd 1

docbook-xml-4.5

上面页面的右上方有Next可以看到docbook-xsl-1.78.1

docbook-xsl-1.78.1

这里的1.78.1可以改为1.70.1等不同的版本Download DocBook from SourceForge.netDownload DocBook from SourceForge.netFormer home for the DocBook stylesheets. The development of DocBook XSL has moved to Github at https://github.com/docbook/xslt10-stylesheets.http://downloads.sourceforge.net/docbook/docbook-xsl-1.78.1.tar.bz2Download DocBook from SourceForge.net

Index of /sources/intltool/

以上能在镜像中的找到的都优先用镜像安装来解决。

附:dockbook-xml-4.3 的配置(以下每一段单独复制到shell中执行,其中cp拷贝的文件需要cd进入对应的目录中。若需要删除,则删除生成的目录,例如rm -rf  /usr/share/xml/docbook/

install -v -d -m755 /usr/share/xml/docbook/xml-dtd-4.3 &&
install -v -d -m755 /etc/xml &&
chown -R root:root . &&
cp -v -af docbook.cat *.dtd ent/ *.mod \
    /usr/share/xml/docbook/xml-dtd-4.3
    
    
    
if [ ! -e /etc/xml/docbook ]; then
    xmlcatalog --noout --create /etc/xml/docbook
fi &&
xmlcatalog --noout --add "public" \
    "-//OASIS//DTD DocBook XML V4.3//EN" \
    "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
    /etc/xml/docbook &&
xmlcatalog --noout --add "public" \
    "-//OASIS//DTD DocBook XML CALS Table Model V4.3//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-4.3/calstblx.dtd" \
    /etc/xml/docbook &&
xmlcatalog --noout --add "public" \
    "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-4.3/soextblx.dtd" \
    /etc/xml/docbook &&
xmlcatalog --noout --add "public" \
    "-//OASIS//ELEMENTS DocBook XML Information Pool V4.3//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-4.3/dbpoolx.mod" \
    /etc/xml/docbook &&
xmlcatalog --noout --add "public" \
    "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.3//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-4.3/dbhierx.mod" \
    /etc/xml/docbook &&
xmlcatalog --noout --add "public" \
    "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.3//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-4.3/htmltblx.mod" \
    /etc/xml/docbook &&
xmlcatalog --noout --add "public" \
    "-//OASIS//ENTITIES DocBook XML Notations V4.3//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-4.3/dbnotnx.mod" \
    /etc/xml/docbook &&
xmlcatalog --noout --add "public" \
    "-//OASIS//ENTITIES DocBook XML Character Entities V4.3//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-4.3/dbcentx.mod" \
    /etc/xml/docbook &&
xmlcatalog --noout --add "public" \
    "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.3//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-4.3/dbgenent.mod" \
    /etc/xml/docbook &&
xmlcatalog --noout --add "rewriteSystem" \
    "http://www.oasis-open.org/docbook/xml/4.3" \
    "file:///usr/share/xml/docbook/xml-dtd-4.3" \
    /etc/xml/docbook &&
xmlcatalog --noout --add "rewriteURI" \
    "http://www.oasis-open.org/docbook/xml/4.3" \
    "file:///usr/share/xml/docbook/xml-dtd-4.3" \
    /etc/xml/docbook
    
    
    if [ ! -e /etc/xml/catalog ]; then
    xmlcatalog --noout --create /etc/xml/catalog
fi &&
xmlcatalog --noout --add "delegatePublic" \
    "-//OASIS//ENTITIES DocBook XML" \
    "file:///etc/xml/docbook" \
    /etc/xml/catalog &&
xmlcatalog --noout --add "delegatePublic" \
    "-//OASIS//DTD DocBook XML" \
    "file:///etc/xml/docbook" \
    /etc/xml/catalog &&
xmlcatalog --noout --add "delegateSystem" \
    "http://www.oasis-open.org/docbook/" \
    "file:///etc/xml/docbook" \
    /etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
    "http://www.oasis-open.org/docbook/" \
    "file:///etc/xml/docbook" \
    /etc/xml/catalog
    
for DTDVERSION in 4.1.2 4.2
do
  xmlcatalog --noout --add "public" \
    "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
    /etc/xml/docbook
  xmlcatalog --noout --add "rewriteSystem" \
    "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
    "file:///usr/share/xml/docbook/xml-dtd-4.3" \
    /etc/xml/docbook
  xmlcatalog --noout --add "rewriteURI" \
    "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
    "file:///usr/share/xml/docbook/xml-dtd-4.3" \
    /etc/xml/docbook
  xmlcatalog --noout --add "delegateSystem" \
    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
    "file:///etc/xml/docbook" \
    /etc/xml/catalog
  xmlcatalog --noout --add "delegateURI" \
    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
    "file:///etc/xml/docbook" \
    /etc/xml/catalog
done    

参考文章:MirrorLink(四 VNC --Ubuntu下编译)_sui1005316018的博客-CSDN博客

搞这么一堆最后都没用上(实际使用glibc-2.4直接带configure就能解决):

(none):~/glib_code # ls
autoconf-2.59-92.2.x86_64.rpm   docbook-xsl-doc-1.78.1                glib-2.20.1
automake-1.9.6-13.2.x86_64.rpm  docbook-xsl-doc-1.78.1.tar.bz2        glib-2.20.1.tar.gz
docbook                         docbook_4-4.4-21.2.noarch.rpm         gtk-doc-GTK_DOC_1_11
docbook-xml-4.3.zip             ent                                   gtk-doc-GTK_DOC_1_11.zip
docbook-xsl-1.78.1              gettext-0.14.5-13.2.x86_64.rpm        intltool-0.35.2-4.10.noarch.rpm
docbook-xsl-1.78.1.tar.bz2      gettext-devel-0.14.5-13.2.x86_64.rpm
(none):~/glib_code # rm -rf 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值