Table of contents

How to Build F-Spot from a released version

This page, evolved from Bengt's personal notes, will help people who do not have to much experience with compiling from sources to run latest F-Spot.

You can install F-Spot system-wide or build and run it from your home directory. In both cases, check the #Pre-requisites first.

Pre-requisites

Install the following tools and libs

  • Mono (>1.1.7), gmcs and some mono libs (Mono.Data.SqliteClient, Mono.Posix, System.Runtime.Remoting, System.Web, System.Web.Services, Mono.GetOptions)
  • Libraries and development packages for
    • gtk (>=2.6),
    • gnome (>=2.2),
    • gnomeui (>=2.2),
    • libexif (>=0.5.7, <=0.7.0),
    • gtksharp (>=2.7),
    • lcms (1.12),
    • libgphoto2 (>=2.1.4)
Note: on some systems, like recent debian or ubuntu, installing all this is as simple as running
'apt-get build-dep f-spot'
  • automake/autogen tool chain: automake1.9, libtool, intltool
'apt-get install automake1.9 build-essential intltool libtool' should do the job on ubuntu or debian

Get the latest sources from here

Fetch the latest stable F-Spot version, save it on your system and type the following command.

tar xfj <path/f-spot-0.3.0.tar.bz2>

If you copied the archive on your Desktop, the <path> extend to this

tar xfj ~/Desktop/f-spot-0.3.0.tar.bz2

Install F-Spot system-wide

Note: This is the normal/prefered/recommended way of installing F-Spot, even for testing. If you don't have root access or don't want to override an already installed version of F-Spot, you can try installing F-Spot in your home directory.

  • Remove any other version of F-Spot from your system.
    • If F-Spot was installed from a package for your linux distribution, use the adapted tools, like rpm, yast2, apt-get, ...
    • If you installed an older version from sources, go to the old-sources directory, switch to root and type 'make uninstall'
  • enter the directory we just extracted from the archive
cd ~/Desktop/f-spot-0.3.0
  • configure for the build. Note that the './' is mandatory. If you have all the required dependencies, everything should goes well. If something fails, check that you have all the dependencies installed (see upper) and try again. At this step, or any other, you can ask for some help either on IRC or on the mailing-list (See Main_Page#Participate).
./configure
  • build
make
  • install F-Spot
su root
make install
exit

Run F-Spot

Now, you should have an F-Spot menu entry in Applications/Graphics. You can also start F-Spot by issuing 'f-spot' on a x-terminal, like gnome-terminal.

Install F-Spot in your home directory

This will helps you to install F-Spot without root rights. F-Spot should works fine but you could see some edge effects, like not having entries for F-Spot in the Gnome menu, Nautilus not adding F-Spot as a valid url handler, no screensaver, no documentation, no translations, ...

  • create a directory for f-spot
mkdir ~/f-spot
  • go to the sources
cd ~/Desktop/f-spot-0.3.0
  • configure
./configure --prefix=${HOME}/f-spot --disable-scrollkeeper

or

./configure --prefix=/home/<user>/f-spot --disable-scrollkeeper
  • build and install
make
make install
  • Run F-Spot
cd ~/f-spot
./f-spot

Developing

A bit later you might want to start participate by testing patches or actually submit patches as well. To do this, you first need to install F-Spot TRUNK since all patches are based on this one. Then you should look at how to test a patch for further information.

This page was last modified 14:01, 26 Jan 2007. This page has been accessed 16748 times.