Clone this wiki locally
Back to Home
We compiled the library and the examples using test.sh, under Ubuntu 11.04 with GTK+ 3.0.8 (see below for installation). All examples are now running ! The problems that were encountered and fixed are listed here: gtk3 fixed problems
When running notebooks.f90, menu.f90, julia_pixbuf.f90, hl_menu.f90, hl_combo.f90, hl_choosers.f90 and bazaar.f90, some "undefined symbol: menu_proxy_module_load" messages appear because GTK+ 3.0 is not fully integrated in the Ubuntu 11.04 GNOME 2 desktop. These messages disappear after installation of appmenu-gtk3 0.3.0. Under Fedora 15, which natively includes GNOME 3 (GTK+ 3.0.9), these messages don't occur. But under Fedora 15, there are problems with gtkbuilder.f90 and gtkbuilder2.f90.
#Python script test It runs without problem with the new default python interpreter (2.7.1 instead of 2.6.6). With GTK+ 2.24.4 (master branch) cfwrapper.py generates 8811 interfaces. With GTK+ 3.0.8 (gtk3 branch) cfwrapper.py generates 8466 interfaces.
#Advices for migrating to GTK+ 3.0 If you still use GTK+ 2, for your applications to be 3.0 ready, avoid using deprecated functions, for example gdk_draw functions (use Cairo and GdkPixbuf functions instead for vectorial drawing and pixel drawing).
#GTK+ 3.0 installation Ubuntu 11.04 comes with GTK+ 2.24.4 by default. To use gtk-fortran you need to install the development files of GTK+ 2 and libmpfr1ldbl. But you can also install in parallel GTK+ 3.0.8 (needs the canberra library):
sudo apt-get install libgtk2.0-dev libmpfr1ldbl libgtk-3-dev libcanberra-gtk3-module
A new directory gtk-3.0 appears in /usr/include.
The gfortran 4.5.2 available in Ubuntu 11.04 has still the bug preventing us from compiling gtk-fortran. So we downloaded and decompressed the last build gfortran-4.6-20110318-linux-i686.tar.gz (gfortran 4.7.0 experimental). The compiler is in /usr/local/gfortran/bin. We created a link:
sudo ln -s /usr/local/gfortran/bin/gfortran /usr/local/bin/gfortran
Back to Home