Linux的现状真是一堆散沙,编译个GNOMEGames痛苦得吐血不止

来源:互联网 发布:linux搭建代理服务器 编辑:程序博客网 时间:2024/06/05 10:14
想学习下GNOME Games中特别是俄罗斯方块(GnomeTetris)的按键控制,下载了gnome-games-2.25.4.tar.bz2,心血来潮,想编译一下看看,结果踏上长长的吐血之路,可怜...
最终结果,还是卡在GTK的编译上  :-(

花了整整一下午来搜索网络/下载各关联源程序包/编译/换版本...
首先,是GTK的编译需要 Glib, ATK, Pango, Cairo; 看似不多,然后是垃圾的Cairo需要 Pixman, libpng, freetype, libxml...

沙子的海洋,里面还有狗屎,要把散沙熔合成哪怕几块玻璃,都是不容易的事情;
感叹那些维护Linux发行版的弟兄们,辛苦了!
不过这种关联性与频繁的版本变动性,还将让人深陷其中,无边无际的苦海啊
在此,也鄙视下CSDN里面的一些专家,袁老师就算一个,整天喊Linux多好,何苦呢?
哪位仁兄,不看手册,直接去我列出的网站挑选各版本下载来编译,半天能搞定的,I服了U!

A. ===========================
glib-2.19.4.tar.bz2    http://ftp.gnome.org/pub/gnome/sources/
    >> Built & installed!

B. ===========================
atk-1.25.2.tar.gz    http://ftp.gnome.org/pub/gnome/sources/  
    >> Built & installed!

C. ==========================
pango-1.22.4.tar.bz2    http://ftp.gnome.org/pub/gnome/sources/
    >> Built & installed!
    
D. ==========================
D-a) cairo-1.7.2.tar.gz http://cairographics.org/releases/
    1) pixman-0.11.8.tar.gz  >> Built & installed!
    2) libpng-1.2.34.tar.gz  >> Built & installed! (www.libpng.org/pub/png/libpng.html)

    "configure: error: Cairo requires at least one font backend.
    Please install freetype and fontconfig, then try again:
      http://freetype.org/    http://fontconfig.org/"
    3) freetype-2.3.7.tar.gz >> Built & installed!    
        "rmdir: 删除 “/usr/local/include/freetype2/freetype/internal” 失败: 没有该文件或目录"  ---Only warning!


    cairoint.h:942:2: error: #error No font backends are available.
    make[1]: *** [libcairo_la-cairo.lo] 错误 1

    4) fontconfig-2.6.0.tar.-1.22.4.tar.bz2 /gz    >> Built & installed!
        http://fontconfig.org/release/
        "checking for LIBXML2... configure: error: Package requirements (libxml-2.0 >= 2.6) were not met:"

    4.1) libxml2-dev >>Installed via Synaptic!


cairo-user-font.c:38:37: error: cairo-user-font-private.h: 没有该文件或目录
cairo-user-font.c:450: 警告: ‘_cairo_font_face_is_user’先前没有原型
make[2]: *** [libcairo_la-cairo-user-font.lo] 错误 1
make[2]:正在离开目录 `/usr/share/cairo-1.7.2/src'
<<<<<Failed here !!!>>>>>>

------------------------------------------------
D-b)cairo-1.8.6.tar.gz    http://cairographics.org/releases/

checking whether cairo's image surface backend feature could be enabled... no (requires pixman-1 >= 0.12.0 http://cairographics.org/releases/)
configure: error: mandatory image surface backend feature could not be enabled

    5) pixman-0.12.0.tar.gz  >> Built & installed!
    OK!

E. =====================================
gtk+-2.15.0    http://ftp.gnome.org/pub/gnome/sources/

    checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.17.6    atk >= 1.13.0    pango >= 1.20    cairo >= 1.6) were not met:


    configure: error:
    *** Checks for TIFF loader failed. You can build without it by passing
    *** --without-libtiff to configure but some programs using GTK+ may
    *** not work properly

    *** Checks for JPEG2000 loader failed. You can build without it by passing
    *** --without-libjasper to configure
 
 ./configure --without-libtiff --without-libjpeg --without-libjasper
 
configure: error: *** libX11 not found. Check 'config.log' for more details.
<<<<<Failed here !!!>>>>>>