title: Building F-spot from source
link: http://jj.isgeek.net/2007/02/building-f-spot-from-source/
author: Jj
description: 
post_id: 241
date: 2007/02/02 20:41:16
created_gmt: 2007/02/03 01:41:16
comment_status: open
slug: building-f-spot-from-source

I downloaded [F-spot's](http://f-spot.org/) latest version for Ubuntu, after having to manually install several mono libraries that weren't installed with [F-spot's instrucions](http://f-spot.org/How_To_Build_from_Release), I ran into this problem when running it:
    
    
    
    
    
    
    Starting new FSpot server
    
    
    
    
    XXXXX
    
    
    
    
    System.ArgumentNullException: Argument cannot be null.
    
    
    
    
    Parameter name: s
    
    
    
    
      at System.Int32.Parse (System.String s) [0x00000] 
    
    
    
    
      at MetaItem.get_ValueAsInt () [0x00000] 
    
    
    
    
      at FSpot.Database.Updater.Run (.Db database) [0x00000] 
    
    
    
    
      at Db.Init (System.String path, Boolean create_if_missing) [0x00000] 
    
    
    
    
      at FSpot.Core..ctor (Boolean nodb) [0x00000] 
    
    
    
    
      at FSpot.Driver.Main (System.String[] args) [0x00000] 
    
    
    
    
    XXXXX
    
    
    
    
    Starting new FSpot server
    
    
    
    
    Starting new FSpot server
    
    
    
    
    Starting new FSpot server
    
    
    
    
    ...
    
    
    
    
    ..
    
    
    
    
    .
    
    
    
    
    

Luckily Google helped me find a solution for this bug. What you have to do is delete your old f-spot's db file (in my case it was empty).
    
    
    
    
    
    
    jj@freya:: cd .gnome2/f-spot                                                                           [~]
    
    
    
    
    jj@freya:: ls                                                                                     [f-spot]
    
    
    
    
    photos.db
    
    
    
    
    jj@freya:: ls -lh photos.db                                                                       [f-spot]
    
    
    
    
    -rw-r--r-- 1 jj jj 3.0K 2007-01-29 01:47 photos.db
    
    
    
    
    jj@freya:: rm photos.db                                                                           [f-spot]
    
    
    
    
    jj@freya::     
    
    
    
    
    

Voila~, now I'm running into a new problem which I'm still working on :P
    
    
    
    
    
    
    jj@freya:: f-spot                                                           [~]
    
    
    
    
    Starting new FSpot server
    
    
    
    
    
    
    
    
    
    (f-spot:5098): libglade-WARNING **: unknown attribute `comment' for .
    
    
    
    
    System.DllNotFoundException: GL
    
    
    
    
      at (wrapper managed-to-native) GdkGlx.Context:glXChooseVisual (intptr,int,int[])
    
    
    
    
      at GdkGlx.Context..ctor (Gdk.Screen screen, GdkGlx.Context share_list, System.Int32[] attr) [0x00000] 
    
    
    
    
      at GdkGlx.Context..ctor (Gdk.Screen screen, System.Int32[] attr) [0x00000] 
    
    
    
    
      at FSpot.PhotoImageView.HandleRealized (System.Object sender, System.EventArgs args) [0x00000] 
    
    
    
    
      at FSpot.PhotoImageView..ctor (IBrowsableCollection query) [0x00000] 
    
    
    
    
      at FSpot.PhotoView..ctor (IBrowsableCollection query) [0x00000] 
    
    
    
    
      at MainWindow..ctor (.Db db) [0x00000] 
    
    
    
    
      at FSpot.Core.get_MainWindow () [0x00000] 
    
    
    
    
      at FSpot.Core.Import (System.String path) [0x00000] 
    
    
    
    
      at FSpot.Driver.Main (System.String[] args) [0x00000]