Build GTK+-3.0
-
glib-2.40.0
configure: error: *** Working zlib library and headers not found ***
solve:
sudo apt-get install ruby
step 2sudo 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 2sudo 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~