[Mono-devel-list] Compiling dificulties

Mauricio Henriquez buho-1 at entelchile.net
Thu May 20 11:37:17 EDT 2004


Hi to all:

    I new in the list, my name is Mauricio Henriquez and I write you from Chili.

    Recently I try the "mono-0.31" proyect in my Fedora linux, I install the RPM's from the go-mono web site and I need some basic points to correctly compile my applications. For example, where or what "path" I have to put in my linux system to find the correct DLL's??

    I also install the "MonoDevelop" and I write and run correctly some basic examples, but yesterday I try to write my first mono-VB example with Gtk (I can run this VB-Gtk example in Windows with VS .NET and is from the mono web site) and use the VB-mono command line compiler, but I have to do this first:

$ export MONO_PATH=/usr/lib/mono
$ mbas gtk.vb -r gtk-sharp
 Compilation succeded
....
I have the "gtk.exe", but when I try to run the program...

$ mono gtk.exe

Unhandled Exception: System.DllNotFoundException: libgtk-win32-2.0-0.dll
in <0x0053> (wrapper managed-to-native) Gtk.Application:gtk_init (int&,intptr&)
in <0x00038> Gtk.Application:Init ()
in <0x00014> GtkTest:Main ()
    
Any ideas??

The code is very simple, is only for a tes:

Imports System
Imports Gtk

Module GtkTest
 Sub Main()
  Dim Win as Window
  Dim Btn as Button

  Application.Init ()
  Win = new Window ("VB .NET Gtk+ en Linux!!!")
  Btn = new Button ("Apretame")
  Win.Add (Btn)
  Win.ShowAll ()
  Application.Run ()
 End Sub
End Module


With "mono" in Windows I can' even compile the code, I get this terrible message:

C:\Archivos de programa\Mono-0.31\bin>mbas gtk.vb -r gtk-sharp

Unhandled Exception: System.IO.FileNotFoundException: File or assembly name Mono
.GetOptions, or one of its dependencies, was not found.
File name: "Mono.GetOptions"

Fusion log follows:
=== Pre-bind state information ===
LOG: DisplayName = Mono.GetOptions, Version=1.0.2003.1014, Culture=neutral, Publ
icKeyToken=null
 (Fully-specified)
LOG: Appbase = C:\Archivos de programa\Mono-0.31\bin\
LOG: Initial PrivatePath = NULL
Calling assembly : mbas, Version=0.29.0.0, Culture=neutral, PublicKeyToken=null.

===

LOG: Application configuration file does not exist.
LOG: Policy not being applied to reference at this time (private, custom, partia
l, or location-based assembly bind).
LOG: Post-policy reference: Mono.GetOptions, Version=1.0.2003.1014, Culture=neut
ral, PublicKeyToken=null
LOG: Attempting download of new URL file:///C:/Archivos de programa/Mono-0.31/bi
n/Mono.GetOptions.DLL.
LOG: Attempting download of new URL file:///C:/Archivos de programa/Mono-0.31/bi
n/Mono.GetOptions/Mono.GetOptions.DLL.
LOG: Attempting download of new URL file:///C:/Archivos de programa/Mono-0.31/bi
n/Mono.GetOptions.EXE.
LOG: Attempting download of new URL file:///C:/Archivos de programa/Mono-0.31/bi
n/Mono.GetOptions/Mono.GetOptions.EXE.



But the same code (and others C# examplles) with VS .NET run perfectly.
Why?? What is my mistake??

Ideas??

Thanks

Mauricio.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040520/1ea85297/attachment.html 


More information about the Mono-devel-list mailing list