Hello everyone,
I visited the gtk.org website and I downloaded the latest version of GTK+,GLib,Pango,GDK-Pixbuf and ATK.All of them were tar.xz.So first I copied first the GTK+ tar file in the /opt directory and I followed the installation guide from here.So I untar the GTK+ in the /opt directory with root privileges and then I typed
Code:
./configure --prefix=/opt/gtk
in the gtk+ folder which waS created after the untar procedure.After I did and .So far so good.I did the exact same procedure by copying the tar.xz files of the GLib,Pango,GSK-Pixbuf,ATK in the /opt/gtk+-3.4.4 (mind that I have two folders in the /opt directory one of them is called gtk and the other gtk+-3.4.4.).I untar them in /opt/gtk+-3.4.4,I went to the folder which was created after I untar each of these tars and I run
Code:
./configure --prefix=/opt/gtk
and then and then .I did this procedure for each one of them separately with the following sequence: GLib,Pango,GDK-Pixbuf and ATK.The problem showed up when I tried to do the aforementioned procedure with GDK-Pixbuf.After I ran
Code:
./configure --prefix=/opt/gtk
in terminal there was was a message after the configure was failing telling me that GLib must be in 2.31.0 and above.I checked my GLib version and it was 2.34.2.So after that I ran ldconfig and did the configure again of the GDK-Pixbuff,but still the same error message.I even ran sudo apt-get update,but nothing happened.So I decided to build and install the exact previous version of GLib.The 2.32.3.Which I did.After that I ran
Code:
./configure --prefix=/opt/gtk
for GDK-Pixbuff and it worked and then I ran and and everything worked.I continued with ATK without any problems.In the end,I edited my .bashrc file by adding these lines:
Code:
CPPFLAGS="-I/opt/gtk/include"
LDFLAGS="-L/opt/gtk/lib"
PKG_CONFIG_PATH="/opt/gtk/lib/pkgconfig"
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH
LD_LIBRARY_PATH="/opt/gtk/lib"
PATH="/opt/gtk/bin:$PATH"
export LD_LIBRARY_PATH PATH
I saved them and I decided to restart my system to make sure that every change will take effect.After the restart Nautilus was freaking dead.I tried to reinstall it,purge it and install it again,but without any success.So installed Nemo( you know the fork of Nautilus) and I have a file manager again.
Can somebody tell me if I have installed correctly GTK+,because I want to make a C program with graphical environment?And how on earth can I compile it with gcc or icc?
Thanks for your time and patience.I will post two screenshot of my gtk and gtk+- folder to show you what are the contained folders.
Bookmarks