[Mono-devel-list] mono SDL linux/win32 SDL.DLL - my brain hurts!

David_Hudson at capgroup.com David_Hudson at capgroup.com
Thu Jul 21 10:22:35 EDT 2005


I am the maintainer of SDL.NET and Tao.Sdl. The easiest course of action to
get you up and running (and the method I used to produce the Linux
screenshots) is to put Tao.Sdl.dll, SdlDotNet.dll in your path and make
sure that Tao.Sdl.dll.config lists the correct filenames (either for Linux
or MacOSX). I hope to get rid of the config file and set the lib name at
runtime for Tao.Sdl, but I have not implemented that yet. Any advice on the
best way to do that would be greatly appreciated.

Dave

>
> ------------------------------
>
> Message: 4
> Date: Thu, 21 Jul 2005 00:50:56 -0400
> From: ted leslie <tleslie at tcn.net>
> Subject: Re: [Mono-devel-list] mono SDL linux/win32 SDL.DLL - my brain
>    hurts!
> To: mono-devel-list at lists.ximian.com
> Message-ID: <20050721045056.GC16096 at localhost>
> Content-Type: text/plain; charset=us-ascii
>
> I got it working on the really old SDL.NET package that had
> Make/Build support for Mono,
> I needed to put up the SDL-Dev libs too !! arggh!!! :(
>
> But still, i'd love to be able to get a recent  (this year) build
> for SDL.NET working,
> as it looks really different (the new one) then the older one.
>
> Also if anyone could write a small, or "point to" a resource talking to
the:
> "How you write a wrapper in C#/Mono/Linux to wrap a standard libraryin
linux"
> that would be appreciated.
>
> and if someone could build the latest SDL.NET and post it somewhere
> that would be very much appreciated as well.
>
> -tl
>
>
> On Thu, Jul 21, 2005 at 03:36:48PM +1200, David Mitchell wrote:
> > Try this:
> >
> >
http://prdownloads.sourceforge.net/cs-sdl/SdlDotNet-3.1.2-1.zip?download
> >
> > Looks like the latest linux version to me.
> >
> > David
> >
> > ted leslie wrote:
> > >(After my preamble, I am essentially asking .. how does a wrapper to
> > >.Net/Mono work .....)
> > >
> > >There must not be to many people writting cross platform apps
> > >that need sound? Searching for sound (audio, mp3, sound) on
> > >mono-project.com via mail list, etc
> > >returns almost nothing.
> > >
> > >Anyways I came across SDL on the Resources page!!!! wow!!! this will
solve
> > >my problems!
> > >
> > >I go to   cs-sdl.sourceforge.net
> > >and check it out,
> > >It has SDL.NET for Win32 and Linux (mono is supported, it says)
> > >So i download the support libraries for SDL.NET which are the
traditional
> > >SDL libs .. put them on Win32 and updated
> > >my ones on my Suse box.
> > >I ran the Examples just fine on Win32
> > >
> > >Now on to Linux and Mono ...............
> > >
> > >First off the latest SDL.NET downloads on sourceforge seem to be for
Win32
> > >only (as an aside they have a nice installer that does everything for
you
> > >on the Win32 side of things)
> > >
> > >So i dig back a COUPLE years and get a gz file (of SDL.NET) that has
linux
> > >support
> > >   (incidently i see screen caps in SDL.NET project page of SDL apps
> > >   running on linux so even thought
> > >      the linux support in the project seems old, it infact looks
> > >      like it run and works)
> > >
> > >I build the SDL.NET on Linux (using latest stable release Mono), but
there
> > >is an error in the Makefile,
> > >the pathing slash is of the windows variety (hmmmmm...?), so i fix
that
> > >and Makefile the SDL.NET DLL's
> > >and the examples.
> > >
> > >The Examples compile/build fine but the give a Mono runtime error that

> > >they can't
> > >find System DLL:SDL.dll
> > >
> > >
> > >>--An exception was thrown by the type initializer for SdlDotNet.Music

> > >>---> System.DllNotFoundException: SDL.dll
> > >
> > >
> > >So this is were I hit a dead end because I don't know anything about
> > >.Net/C# wrappers to traditional C based libraries on Linux.
> > >I looked at the gtk-sharp wrapper (cause i know it works), I see a
mixer
> > >of C and CS files and traditional
> > >gcc references in makefiles, but basically it looks like a big job to
> > >figure out gtk-sharp's process of a wrapper.
> > >
> > >On that note, is there a doucmentation section somewhere on that -
i.e.
> > >building wrappers?
> > >
> > >To me, I am thinking in the end SDL.NET has to get hold of the
routines in
> > >the
> > >SDL ".so" file right?
> > >how does that happen? I know how it happens in a traditional C/gcc
> > >compile, link, create a .so file, and compile your apps with dynamic
> > >support againt the ".so" ....  what bit of magic get Mono to see/do
that
> > >(with its wrapper)?
> > >
> > >I check around the SDL.NET code and see in the Natives.cs file this:
> > >
> > >                const string SDL_DLL = "SDL";
> > >                const string MIX_DLL = "SDL_mixer";
> > >                // General
> > >                [DllImport(SDL_DLL,
> > >                CallingConvention=CallingConvention.Cdecl),
> > >                SuppressUnmanagedCodeSecurity]
> > >                public static extern int SDL_Init(int flags);
> > >
> > >which I am thinking is pretty key to the process ...
> > >but why reference   SDL.DLL  ... I don't have that on Linux, thats on
> > >Win32.
> > >
> > >Anyone shed light?
> > >
> > >Also, would it be a hard job making the same wrapper to the SDL lib on

> > >MAC-OSX to complete a good cross-platfrom
> > >SDL.NET class for Mono ?
> > >
> > >-tl
> > >
> > >
> > >
> > >_______________________________________________
> > >Mono-devel-list mailing list
> > >Mono-devel-list at lists.ximian.com
> > >http://lists.ximian.com/mailman/listinfo/mono-devel-list
> > >
> > >
> >
> >
> > --
> > David Mitchell
> > Software Engineer
> > Telogis
> >
> >
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 21 Jul 2005 07:36:26 +0100
> From: Vladimir Lushnikov <vladimir.lushnikov at gmail.com>
> Subject: [Mono-devel-list] System.Collections.Generic - build on
>    Linux?
> To: mono-devel-list at lists.ximian.com
> Message-ID: <fc5994020507202336671265d9 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> I was wondering what kind of support there is for Generics and Partial
> classes in MSC at the moment? I noticed that in my SVN checkout of
> Mono and msc there exists a few classes with the proposed
> functionality, but I was wondering how to compile them into the GAC,
> since "make" & "make install" say that there are no targets for
> compilation.
>
> That said, I'm currently developing on Windows in VS 2005.b2
>
> Thanks,
> --
> Vladimir Lushnikov
> C.E.O and Software Developer
> EverythingX Limited (http://www.everythingx.net)
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 21 Jul 2005 12:44:23 +0530
> From: tsureshkumar <tsureshkumar at novell.com>
> Subject: Re: [Mono-devel-list] Patch for ForeignKeyConstraint .cs
> To: Boris Kirzner <borisk at mainsoft.com>
> Cc: mono-devel-list at lists.ximian.com
> Message-ID: <42DF4B4F.7040807 at novell.com>
> Content-Type: text/plain; charset="utf-8"
>
> Boris Kirzner wrote:
> > Hello all,
> >
> > Attached is a proposed patch for ForeignKeyConstraint :
> > - IsConstraintViolated() should check also for Table.EnforceConstraints
> > (for the case dataset enforce constraints = false, but datatable
enforce
> > constraints = true)
> >
> > If no one objects, I'll commit.
> >
> > Boris
> > -         if (!Table.DataSet.EnforceConstraints)
> > +         if (!Table.DataSet.EnforceConstraints && !Table.
> EnforceConstraints)
> >              return false;
>
> this check contrasts with the meaning of Table.EnforceConstraints. If
> DataSet's EnforceConstraints is set, all tables under it, should inherit
> that property.
>
> I prefer the attached patch. Please check in the test cases.
>
> Thanks,
> suresh.
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: fk.patch
> Type: text/x-patch
> Size: 1616 bytes
> Desc: not available
> Url : http://lists.ximian.com/pipermail/mono-devel-
> list/attachments/20050721/c1da26ac/fk.bin
>
> ------------------------------
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
> End of Mono-devel-list Digest, Vol 3, Issue 45
> **********************************************




More information about the Mono-devel-list mailing list