[Gtk-sharp-list] rsvg sharp on windows

Gerhard Götz rootie232 at googlemail.com
Wed Oct 20 12:20:42 EDT 2010


Hi Matt,

I quickly tried the copy approach. But it didn't work, maybe because I
used .Net on Windows.

I thought I could try to move rsvg-sharp.dll to gtk-sharp, build it
(maybe on Windows? Are the official downloads built on Windows?) and at
least use the dll from there. Maybe if that's done the chances are
higher that it gets into the official source tree.
But i didn't spent much time working on this yet, because i want to get
some more basic stuff ready before fully starting the windows porting.
The past tests were just to quickly see where the problems are.

The game is open source. It's name is Koushu Shogi.
It should run fine under Linux. You can play against a computer (only
gnushogi at the moment) or against a human player.

http://github.com/Rootie/KoushuShogi

Greetings
Gerhard Götz


On Tue, 2010-10-19 at 12:59 +0800, Matt Guo wrote:
> Gerhard,
> 
> I just had the same requirement/issue several months before.
> 
> First of all I agreed on that the rsvg2-sharp.dll shall be included in
> the gtk-sharp windows installer.
> 
> Since the native lib is already there, (on my Windows it's named
> librsvg-2-2.dll), I used the the following solution:
> a) if using mono on Windows, then just copy rsvg2-sharp.dll, and
> rsvg2-sharp.dll.config from Linux to Windows, then rewrite the .config
> to:
> <configuration>
>   <dllmap dll="rsvg-2" target="librsvg-2-2.dll"/>
> </configuration>
> 
> b) if using .Net on Windows, then modify the GAPI generated code and
> build it again, the modification includes:
>     1) change all [DllImport("rsvg-2")] to [DllImport("librsvg-2-2.dll")]
>     2) call gapi-cdecl-insert (see "Win32 binding issues" in this
> page: http://www.mono-project.com/GAPI)
> Then the compiled dll shall work on Windows .Net (I'm not 100% sure
> since I already lost the related files). BTW, the (generated) code
> base of rsvg2-sharp's is really small and straight-forward.
> 
> BTW, is your shogi game open source? Any URL of it?
> 
> B.R.
> 
> 
> On Sat, Aug 28, 2010 at 10:00 PM, Gerhard Götz <rootie232 at googlemail.com> wrote:
> > Hi,
> >
> > i have been testing my c# shogi game on Windows (developed on linux). It
> > worked perfectly except one thing: librsvg-sharp is not available for
> > Windows. At least i couldn't find it.
> >
> > Looking at [1] it's said that it is available for Windows. But on the
> > other hand it is in the gnome-desktop-sharp module which is gnome
> > specific.
> >
> > Is there a specific reason why librsvg-sharp is in gnome-desktop-sharp?
> > Maybe it can be moved to the gtk-sharp module. I think that it shouldn't
> > be too complicated since the native librsvg is already there.
> >
> > Greetings
> > Gerhard Götz
> >
> > [1] http://www.mono-project.com/GtkSharpDetails
> >
> > _______________________________________________
> > Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> >
> 
> 
> 




More information about the Gtk-sharp-list mailing list