I just moved from C# programming on Windows to C# on Linux and I tried a simple Hello World application that uses GTK# for GUI. However, the first time I tried to built it MonoDevelop complained that package Gtk cannot be found. I installed "GTK and GNOME bindings for Mono" from yum (along with other GTK-related packages) but the problem persisted. Then I type in the terminal
Code:
pkg-config --list-all
but no GTK package was listed. I found in another forum that pkg-config lists only packages that have *.pc file. I tried
Code:
locate gtk-sharp-2.0.pc
but no file was found. Finally I added manually inside MonoDevelop an assembly reference to 'gtk-sharp.dll' (which is in /usr/lib/mono/gtk-sharp-2.0). The program compiled but now crashed with uncaught exception.
Code:
public static void Main (string[ ] args)
{
Application.Init ( );
}
Application.init(); causes System.DllNotFoundException.
A file named libglib-2.0-0.dll is referenced in the report.