[Mono-devel-list] some problems with gtk# on OS X

Francis Crick fcrick at franciscrick.com
Mon Jun 7 05:14:34 EDT 2004


so I downloaded the gtk-sharp source beta 2, and used fink to get all the
dependencies, but I ran into some snags.

make install put the dlls into /usr/local/lib/mono/gac/*/ and just created
the following links in /usr/local/lib/mono/gtk-sharp:

lrwxr-xr-x  1 root  wheel  111  7 Jun 01:04 atk-sharp.dll ->
/Library/Frameworks/Mono.framework/Versions/0.95/lib/mono/gac/atk-sharp/1.0.0.0__35e10195dab3c99f/atk-sharp.dll
lrwxr-xr-x  1 root  wheel  111  7 Jun 01:04 gdk-sharp.dll ->
/Library/Frameworks/Mono.framework/Versions/0.95/lib/mono/gac/gdk-sharp/1.0.0.0__35e10195dab3c99f/gdk-sharp.dll
lrwxr-xr-x  1 root  wheel  113  7 Jun 01:04 glib-sharp.dll ->
/Library/Frameworks/Mono.framework/Versions/0.95/lib/mono/gac/glib-sharp/1.0.0.0__35e10195dab3c99f/glib-sharp.dll
lrwxr-xr-x  1 root  wheel  111  7 Jun 01:04 gtk-sharp.dll ->
/Library/Frameworks/Mono.framework/Versions/0.95/lib/mono/gac/gtk-sharp/1.0.0.0__35e10195dab3c99f/gtk-sharp.dll
lrwxr-xr-x  1 root  wheel  115  7 Jun 01:04 pango-sharp.dll ->
/Library/Frameworks/Mono.framework/Versions/0.95/lib/mono/gac/pango-sharp/1.0.0.0__35e10195dab3c99f/pango-sharp.dll

which just point to nowhere, as the gac directory doesn't exist.
And, my hello world gtk app still does:
[roam243-188:~/src/testmono] fcrick% mcs -r:gtk-sharp mtest.cs
error CS0006: Cannot find assembly `gtk-sharp'
Log:

Compilation failed: 1 error(s), 0 warnings

but if I moved the dll's into the local dir I could do:

[roam243-188:~/src/testmono] fcrick% mcs -r:gtk-sharp mtest.cs
Compilation succeeded
[roam243-188:~/src/testmono] fcrick% mono mtest.exe

Unhandled Exception: System.DllNotFoundException: libgtk-win32-2.0-0.dll
in <0x000dc> (wrapper managed-to-native) Gtk.Application:gtk_init
(int&,intptr&)
in <0x0004c> Gtk.Application:Init ()
in <0x00020> Hello:Main (string[])

Which I found a bit odd since i'm running OS X, not win32

Francis

On Mon, 7 Jun 2004, Francis Crick wrote:

> kangaroo_ in #mono directed me to try:
> www.go-mono.com/archive/beta2/macos/Mono_0.95_Beta_2.dmg
>
> it installed fine, and mono annd mcs ended in my path (weren't before)
>
> I wrote "Hello, World" and it compiled with mcs and ran with mono just
> fine.
>
> btw, thanks for coming to Matt Welsh's class Miguel :)
>
> Francis Crick
>
> Machine info:
> Powerbook 15"
> OS X 10.3.4
> Build 7H63
> pretty typical i think
>
>
>




More information about the Mono-devel-list mailing list