[Gtk-sharp-list] Cannot compile with gtk/glib-sharp assemblies etc. (CS0006)

kyloe . togetfiles at hotmail.com
Fri Dec 9 14:33:00 EST 2005


Hi,
I'm very new to C# and Mono, but honor the whole concept great.

Using rpm install packages of go-mono.com for FC3:
Mono 1.1
XSP/mod_mono
Gtk# 1
Gtk# 2
Development Tools

Error produced by mono using GTK# tutorial, HelloWorld, from gotmono.com.

******
]# mcs helloworld.cs -r gtk-sharp.dll -r glib-sharp.dll

warning CS8029: Compatibility: Use -r:LIBRARY instead of -r library
warning CS8029: Compatibility: Use -r:LIBRARY instead of -r library
error CS0006: Cannot find assembly `gtk-sharp.dll'
Log:

error CS0006: Cannot find assembly `glib-sharp.dll'
Log:

*******
]# echo $MONO_PATH
/usr/lib

]# echo $PKG_CONFIG_PATH
/usr/lib/pkgconfig

]# ls /usr/lib/pkgconfig/ <---- the config goods are there
glib-sharp-2.0.pc, gtk-sharp.pc & gtk-sharp-2.0.pc

**************
]# vi /usr/lib/pkgconfig/glib-sharp-2.0.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib


Name: GLib#
Description: GLib# - .NET Binding for the glib library.
Version: 2.4.0
Cflags:
Libs: -r:${libdir}/mono/gtk-sharp-2.0/glib-sharp.dll

**************
]# vi /usr/lib/pkgconfig/gtk-sharp.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib


Name: Gtk#
Description: Gtk# - GNOME .NET Binding
Version: 1.0.4
Libs: -r:${libdir}/mono/gtk-sharp/glib-sharp.dll 
-r:${libdir}/mono/gtk-sharp/pango-sharp.dll 
-r:${libdir}/mono/gtk-sharp/atk-sharp.dll 
-r:${libdir}/mono/gtk-sharp/gdk-sharp.dll 
-r:${libdir}/mono/gtk-sharp/gtk-sharp.dll

**************

Am I missing something simple here like version compatability issues with 
GTK# & GLIB# & MONO? I don't know, but I'm all Google'd out.




More information about the Gtk-sharp-list mailing list