Home
entries friends calendar user info The Pædantic Programmer

Advertisement

The Pædantic Programmer's LiveJournal
Add to Memories
Tell a Friend
Urs Muff tells me that mono will load on thread zero these days, so CocoaSharpLoader is no longer needed.

Tao is working fine with GLUt. Whee! It was as simple as finding the corresponding DLLs and chaning the Tao.FreeGlut.dll.config thusly:

<configuration>
    <dllmap dll="freeglut.dll" target="/System/Library/Frameworks/GLUT.framework/GLUT" />
</configuration>


Tao.OpenGL.dll.config looks like this:

<configuration>
    <dllmap dll="opengl32.dll" target="/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries/libGL.dylib" />
    <dllmap dll="glu32.dll" target="/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries/libGLU.dylib" />
</configuration>


I had to compile SDL by hand. I installed it in /usr/local.

Tao.Sdl.dll.config looks like this:

<configuration>
    <dllmap dll="SDL.dll" target="/usr/local/lib/libSDL.dylib" />
    <dllmap dll="SDL_image.dll" target="/usr/local/lib/libSDL_image.dylib" />
    <dllmap dll="SDL_mixer.dll" target="/usr/local/lib/libSDL_mixer.dylib" />
    <dllmap dll="SDL_ttf.dll" target="/usr/local/lib/libSDL_ttf.dylib" />
    <dllmap dll="smpeg.dll" target="libsmpeg.dylib" />
    <dllmap dll="SDL_gfx.dll" target="/usr/local/lib/libSDL_gfx.dylib" />
</configuration>


I spoke with kangaroo, and he helped me get rid of all of the nasty cocoa-sharp warnings. Whee.

Here's the command line I used to compile this new GfxPrimitives.cs


PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/Library/Frameworks/Mono.framework/Versions/1.1.4/lib/pkgconfig/ mcs -pkg:cocoa-sharp -o GfxPrimitives.exe AssemblyInfo.cs GfxPrimitives.cs -r:Tao.Sdl.dll && macpack -a GfxPrimitives.exe -n GfxPrimitives -m:2 -o:. -r Tao.Sdl.dll -r Tao.Sdl.dll.config -r /Library/Frameworks/Mono.framework/Versions/Current/lib/libCocoaSharpGlue.dylib && open GfxPrimitives.app & tail -f /Library/Logs/Console/cjcollier/console.log


Ugly, eh?

Here's a diff against the GfxPrimitives.cs from Tao in svn.

GfxPrimitives.cs diff )

Alright. Off to bed for me.

Tags: , , ,

profile
C.J. Adams-Collier
User: [info]cjcollier
Name: C.J. Adams-Collier
calendar
Back January 2010
12
3456789
10111213141516
17181920212223
24252627282930
31
Ads by Google
foo. bar.
page summary
tags