How to compile GTK+-3.14

Build GTK+-3.0

  • glib-2.40.0

      configure: error: *** Working zlib library and headers not found ***
    

    solve: sudo apt-get install ruby
    step 2 sudo apt-get install zlib1g-dev

      configure: error: Package requirements (libffi >= 3.0.0) were not met:
    

    step 1 sudo apt-get install libffi-dev


  • atk-2.12.0

  • gdk-pixbuf-2.30.8

      configure: WARNING: *** TIFF loader will not be built (TIFF library not found)
    

    step 1 sudo apt-get install libtiff4-dev

      configure: WARNING: *** PNG loader will not be built (PNG library not found) ***
      configure: WARNING: *** PNG loader will not be built (PNG header file not found) ***
    

    step 1 sudo apt-get install libpng-dev


  • gobject-introspection-1.40.0

      configure: error: flex not found but required
    

    step 1 sudo apt-get install flex

      configure: error: bison not found but required
    

    step 1 sudo apt-get install bison

      configure: error: Python headers not found
    

    step 1 sudo apt-get install python-dev


  • pango-1.36.5

      configure: error: *** Could not enable any backends.
    

    step 1 sudo apt-get install libcairo-dev
    step 2 sudo apt-get install libcairomm-1.0-dev

    What's more, ensure you have all the dependencies installed,
    They are: fontconfig , FreeType , HarfBuzz

    To install HarfBuzz , you can download the source file HERE.

    When you have downloaded the file and unzip it, then you can use the listed command to build it:

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

  • gtk+-3.12.2

      configure: error: *** XInput2 extension not found. Check 'config.log' for more details.    
    

    step 1 sudo apt-get install libXi-dev

      configure: error: Package requirements (atk atk-bridge-2.0) were not met:
    
      No package 'atk-bridge-2.0' found
    
      Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
    
      Alternatively, you may set the environment variables ATK_CFLAGS and ATK_LIBS to avoid the need to call pkg-config.
      See the pkg-config man page for more details.
    

    step 1 `sudo apt-get install libatk-bridge2.0-dev

          Couldn't find include 'GdkPixbuf-2.0.gir' (search path: ['../gdk', '/usr/share/gnome/gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/usr/local/share/gir-1.0'])
    make[4]: *** [Gdk-3.0.gir] Error 1
    make[4]: Leaving directory `/home/simowce/GTK/gtk+-3.12.2/gdk'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/home/simowce/GTK/gtk+-3.12.2/gdk'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/simowce/GTK/gtk+-3.12.2/gdk'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/simowce/GTK/gtk+-3.12.2'
    make: *** [all] Error 2`
    

    step 1 sudo apt-get install gobject-introspection

    What' s more, you need to install gdk-pixbuf. First you should download the source file from HERE.

    After you have downloaded the file and unzip it, you can build it by using the command listed:

      ./configure --prefix=/usr --with-x11
      make
      sudo make install
    
      Couldn't find include 'Atk-1.0.gir'
    

    To solve this problem, we should download ATK-2.14.0 from HERE.

    Then, we can build it by using the listed command:

      ./configure --prefix=/usr
      make
      sudo amek install
    

After do all of this, we have successfully built GTK+-3.14 in our computer! It's not so easy for our beginer. But now we can be a bit relaxed and then to create a application to say Hello to the GTK world~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值