IT@Home: Building F-Spot 0.5.0.2 on ubuntu Hardy

Today I was trying to update F-spot, the very nice photo album manager, that is available from the Ubuntu universe repository. The version available from the repository is 0.4.3.1. However, the current version from the F-spot site is 0.5.0.2. Ubuntu Intrepid, currently in development, seems to be integrating it. So, using this version on Hardy requires a build and the site provides instructions for how to do so. However for the build to work correctly I needed to do some additional steps.

After downloading and unpacking the distribution I did the following installation as suggested

apt-get install automake build-essential intltool libtool

I already had build-essential installed. F-spot depends on a large number of libraries including mono libraries. Thankfully the following takes care almost all of it.

apt-get build-dep f-spot

But doing a ./configure in the unpacked f-spot directory gave me the following error

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for MONO_DEPENDENCY... yes
checking for al... /usr/bin/al
checking for mono... /usr/bin/mono
checking for mcs... no
configure: error: No C# compiler found
configure: error: ./configure failed for gio-sharp

Turns out the build-dep installation installed the mono-gmcs C# compiler for CLI 2.0. Instead I needed the mono-mcs C# compiler or CLI 1.1. Installing mono-mcs fixed that problem. Then I then ran into the following error with ./configure

=== configuring in gio-sharp (/home/dm/f-spot-0.5.0.2/gio-sharp)
configure: running /bin/bash ./configure '--prefix=/usr/local' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for MONO_DEPENDENCY... yes
checking for al... /usr/bin/al
checking for mono... /usr/bin/mono
checking for mcs... /usr/bin/mcs
checking for GLIB_SHARP... configure: error: Package requirements (glib-sharp-2.0 >= 2.12.1) were not met:

Requested ‘glib-sharp-2.0 >= 2.12.1’ but version of GLib is 2.12.0

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_SHARP_CFLAGS
and GLIB_SHARP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Turns out the the version of gtk-sharp libraries currently available for Hardy is 2.12.0 and F-spot expects it to be 2.12.1 or higher. Thankfully, following this F-blog post I found Ruben Vermeersch’s repository with the needed gtk-sharp binaries ready to go. Went ahead and installed the i386 version of the following libraries

  • gtk-sharp2 GTK# 2.10 suite, CLI bindings for GTK+
  • gtk-sharp2-examples sample applications for the GTK# 2.10 toolkit
  • gtk-sharp2-gapi C source parser and C# code generator for GObject based APIs
  • libglade2.0-cil CLI binding for the Glade libraries 2.6
  • libglib2.0-cil CLI binding for the GLib utility library 2.12
  • libgtk2.0-cil CLI binding for the GTK+ toolkit 2.12
  • monodoc-gtk2.0-manual compiled XML documentation for GTK# 2.10

Installing these took care of the build problems and so far the new version seems to be working fine.

Advertisements

1 Comment

Filed under ubuntu

One response to “IT@Home: Building F-Spot 0.5.0.2 on ubuntu Hardy

  1. Johan

    Thanks for the post, really helped me out!
    Cheers // Johan

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s