Re: Mono develeop and F-Spot



I second that, instructions on how to build head is seriously broken.

Here's how far I got on Ubuntu 9.04

1)  svn co svn://anonsvn.mono-project.com/source/trunk/gtk-sharp gtk-sharp
2)  cd gtk-sharp
3) ./configure --prefix=/opt/f-spot-new
Configuration summary

  * Installation prefix = /opt/f-spot-new
* C# compiler: /usr/bin/mcs -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GTK_SHARP_2_10 -define:GTK_SHARP_2_12 -define:GTK_SHARP_2_14

  Optional assemblies included in the build:

     * glade-sharp.dll: yes
     * gtk-dotnet.dll: yes
     * Mono.Cairo.dll: using system assembly

     NOTE: if any of the above say 'no' you may install the
           corresponding development packages for them, rerun
           autogen.sh to include them in the build.

  * Documentation build enabled: yes
     WARNING: The install prefix is different than the monodoc prefix.
              Monodoc will not be able to load the documentation.
---
4) make -j3
5) make install
6) export PKG_CONFIG_PATH=/opt/f-spot-new/lib/pkgconfig:/usr/lib/pkgconfig
7) cd ..
8) git clone git://git.gnome.org/f-spot
9) cd f-spot
10) ./autogen.sh --prefix=/opt/f-spot-new
11) make
*** Compiling FSpot.Utils.dll
/usr/bin/gmcs -debug -target:library -out:FSpot.Utils.dll -d:TEST_METADATA -d:BROKEN_RSVG -d:GSD_2_24 -d:MONO_1_2_5 -d:MONO_1_9_0 -d:MONO_2_0 -d:CAIRO_1_2_5 -d:GCONF_SHARP_2_18 -d:GCONF_SHARP_2_20_2 ./Utils/Cache.cs ./Utils/CairoUtils.cs ./Utils/ConsoleCrayon.cs ./Utils/DbUtils.cs ./Utils/GnomeUtil.cs ./Utils/GdkUtils.cs ./Utils/GtkUtil.cs ./Utils/Log.cs ./Utils/Unix.cs ./Utils/UriUtils.cs -pkg:gtk-sharp-2.0 -pkg:gnome-sharp-2.0 -r:Mono.Posix -r:Mono.Cairo -r:../glitz-sharp/src/NDesk.Glitz.dll -pkg:gconf-sharp-2.0 -pkg:ndesk-dbus-1.0 -pkg:ndesk-dbus-glib-1.0 ./Utils/GnomeUtil.cs(42,44): error CS1502: The best overloaded method match for `Gnome.Help.DisplayDesktopOnScreen(Gnome.Program, string, string, string, Gdk.Screen)' has some invalid arguments /usr/lib/mono/gac/gnome-sharp/2.24.0.0__35e10195dab3c99f/gnome-sharp.dll (Location of the symbol related to previous error) ./Utils/GnomeUtil.cs(42,44): error CS1503: Argument `#5' cannot convert `Gdk.Screen' expression to type `Gdk.Screen' ./Utils/GnomeUtil.cs(42,44): (equally named types possibly from different assemblies in previous error) /opt/f-spot-new/lib/mono/gac/gdk-sharp/2.14.0.0__35e10195dab3c99f/gdk-sharp.dll (Location of the symbol related to previous error) /usr/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll (Location of the symbol related to previous error)
Compilation failed: 2 error(s), 0 warnings
make[2]: *** [FSpot.Utils.dll] Error 1
make[2]: Leaving directory `/home/johan/SRC/f-spot/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/johan/SRC/f-spot'
make: *** [all] Error 2
johan hoppan:~/SRC/f-spot$

And there it is, dependency hell...

gnome-sharp is obvously built with the bundled gtk-shark - which I guess creates the clashes in Gdk.Screen

12) cd ..
13) apt-get source gnome-sharp2
14) tar xfvz gnome-sharp2_2.24.0.orig.tar.gz
15) zcat gnome-sharp2_2.24.0-3ubuntu1.diff.gz | patch -p0
16) cd gnome-sharp-2.24.0
17) ./configure --prefix=/opt/f-spot-new
18) make

rettype: GtkVisibility in method IconIsVisible in type Gnome.IconList
Name: Name Type: /* in gnome_scores_display in method Display in type Gnome.Scores Name: options Type: poptOption* in gnome_init_with_popt_table in method InitWithPoptTable in type Gnome.Global Defaulting CallbackMarshal param to 'call' scope in method App.CreateMenusInterp Defaulting DestroyNotify param to 'call' scope in method App.CreateMenusInterp Defaulting CallbackMarshal param to 'call' scope in method App.InsertMenusInterp Defaulting DestroyNotify param to 'call' scope in method App.InsertMenusInterp Defaulting CallbackMarshal param to 'call' scope in method App.CreateToolbarInterp Defaulting DestroyNotify param to 'call' scope in method App.CreateToolbarInterp Defaulting InteractFunction param to 'call' scope in method Client.RequestInteraction Defaulting CallbackMarshal param to 'call' scope in method Client.RequestInteractionInterp Defaulting DestroyNotify param to 'call' scope in method Client.RequestInteractionInterp

Unhandled Exception: System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count.
Parameter name: index
0
 at System.Collections.ArrayList.get_Item (Int32 index) [0x00000]
 at GtkSharp.Generation.Parameters.get_Item (Int32 idx) [0x00000]
at GtkSharp.Generation.Signal.GenDefaultHandlerDelegate (GtkSharp.Generation.GenerationInfo gen_info, GtkSharp.Generation.ClassBase implementor) [0x00000] at GtkSharp.Generation.Signal.Generate (GtkSharp.Generation.GenerationInfo gen_info, GtkSharp.Generation.ClassBase implementor) [0x00000] at GtkSharp.Generation.ClassBase.GenSignals (GtkSharp.Generation.GenerationInfo gen_info, GtkSharp.Generation.ClassBase implementor) [0x00000] at GtkSharp.Generation.ObjectGen.Generate (GtkSharp.Generation.GenerationInfo gen_info) [0x00000] at GtkSharp.Generation.CodeGenerator.Main (System.String[] args) [0x00000]
make[3]: *** [generated-stamp] Error 1
make[3]: Leaving directory `/home/johan/SRC/gnome-sharp-2.24.0/gnome'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/johan/SRC/gnome-sharp-2.24.0/gnome'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/johan/SRC/gnome-sharp-2.24.0'
make: *** [all] Error 2
johan hoppan:~/SRC/gnome-sharp-2.24.0$


Now what?

Back track, what did configure tell us at the end?
---
Configuration summary

  * Installation prefix = /opt/f-spot-new
* C# compiler: /usr/bin/mcs -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16 -define:GNOME_SHARP_2_20 -define:GNOME_SHARP_2_24

  Optional assemblies included in the build:

     * art-sharp.dll: yes
     * gnomevfs-sharp.dll: yes
     * gnome-sharp.dll: yes

     NOTE: if any of the above say 'no' you may install the
           corresponding development packages for them, rerun
           autogen.sh to include them in the build.

           gnome-sharp.dll requires libgnomecanvas, libgnome,
           and libgnomeui.
---

Nope dont know what to do after here... Should one build gtk, glib and all theres cousins from scratch (the C libraries that is)?

regards
Johan

Bc. Marek Pasičnyk wrote:
Well, I think that Igor is solving similar homework assignment as me.

Unfortunately, tutorial How To Build from HEAD won't help:

http://mail.gnome.org/archives/f-spot-list/2009-May/msg00013.html

Can anyone help us with this issue ?

Thanks...
  Marek Pasicnyk



2009/5/12 Ruben Vermeersch <ruben savanne be>:
On Tue, 2009-05-12 at 13:59 +0200, igor ludha wrote:
hi
as homework assignment, i have to work on F-Spot's bug #330381
http://bugzilla.gnome.org/show_bug.cgi?id=330381
My operating system is ubuntu, i installed mono develop, downloaded
f-spot source code, but i am not able to open it in mono develop. So
now iam little bit confused :) I dont know what IDE should i use to
repair bug and generate patch
i would really appreciate any help :)
my mail igoludha gmai com
Monodevelop support is currently broken (we should fix it or delete it).
So for now there's no IDE usable. You'll have to use a text editor and
the command line.

This should get you going:
http://f-spot.org/How_To_Build_from_HEAD

To create a patch, simply run:

       git diff > myawesomepatch.diff

And attach the .diff file to the bug report.

Out of curiosity: which school requires you to work on f-spot? That's
really cool :-)
_______________________________________________
F-spot-list mailing list
F-spot-list gnome org
http://mail.gnome.org/mailman/listinfo/f-spot-list

_______________________________________________
F-spot-list mailing list
F-spot-list gnome org
http://mail.gnome.org/mailman/listinfo/f-spot-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]