Building gtk+-3.2.3 on natty



Could someone please tell me how to build gtk+-3.2.3 on Ubuntu natty (classic no-effects) I've been trying to do this for a week ! First I installed the following with synaptic:

For glib:
libffi-dev  
zlib1g-dev   
fam      
libdbus-1-dev   
libdbus-glib-1-dev 
gobject-introspection
---------------------------------------------
For gtk:
libxext-dev        
libxrender1-dbg   
colordiff    
libcairo2-dev  
---------------------------------------------
For pango:
libtiff4-dev   
libpng12-dev     
libxft-dev 

I created a folder called gtk so I have:  /home/me/gtk then installed these in the following order:

glib-2.31.0
cd /home/me/gtk/glib-2.31.0
./configure --prefix=/home/me/gtk
make
rm -rf /home/me/gtk/include/glib.h  /home/me/gtk/include/gmodule.h  ( glib INSTALL says to do this )
make install

atk-2.1.5
cd /home/me/gtk/atk-2.1.5
./configure --prefix=/home/me/gtk
make
make install

gdk-pixbuf-2.24.1
cd /home/me/gtk/gdk-pixbuf-2.24.1
./configure --prefix=/home/me/gtk
make
make install

pango-1.29.5
cd /home/me/gtk/pango-1.29.5
./configure --prefix=/home/me/gtk
make
make install

gtk+-3.2.3
cd /home/me/gtk/gtk+-3.2.3
CPPFLAGS="-I/home/me/gtk/include"
LDFLAGS="-L/home/me/gtk/lib"
PKG_CONFIG_PATH="/home/me/gtk/lib/pkgconfig"
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH
LD_LIBRARY_PATH="/home/me/gtk/lib"
PATH="/home/me/gtk/bin:$PATH"
export LD_LIBRARY_PATH PATH
./configure --prefix=/home/me/gtk
make
make install

And here's my minimal test app:

/*  Compile with:
*  gcc -Wall -o test1 test1.c `pkg-config --cflags --libs gtk+-3.0`
*/

#include <gtk/gtk.h>

int main(int argc, char *argv[] )
{
  GtkWidget *window;

  gtk_init (&argc, &argv);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_default_size(GTK_WINDOW(window), 500, 300);
  g_signal_connect (GTK_WIDGET (window), "destroy",
                        G_CALLBACK (gtk_main_quit), NULL);
                                                                                                                                                       
  gtk_widget_show_all(window);
  gtk_main();
return(0);
}

Please, Please help me!!


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]