Alejandro R. Mosteo

website

  • Increase font size
  • Default font size
  • Decrease font size

GtkAda-2.14, gtk+-2.18, Ubuntu Karmic

Today I tried to install GtkAda-2.14 in some Ubuntu Karmic machine. No luck. 
 
Until now, it sufficed to use the stock libgtk2.0-dev packages and simply compile GtkAda. However, the current gtk+ version is 2.18, and some fields in GtkEntry have changed, breaking GtkAda.
 
So I had to unpack the gtk+-2.14 available at AdaCore in my local account folder, and export the proper folder with $ export CFLAGS=-I$HOME/local/gtk+-2.14/include/gtk-2.0
 
Note the last /gtk-2.0 part, that throwed me out for a minute. Now GtkAda compiles and installs.
 
Amazingly, linking is done against the Ubuntu stock installation and it seems to work (and my program shows windows and stuff dude). I suppose this is a bomb waiting to blow up at the most interesting moment. Whatever.