AW: [mono-vb] Compiling dificulties

Jochen Wezel jwezel@compumaster.de
Fri, 21 May 2004 09:03:26 +0200


This is a multi-part message in MIME format.

------_=_NextPart_001_01C43F01.B71198ED
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi Mauricio,
=20
first of all: you're using an old version of mono. There is a newer
build mono-0.91 alias Beta 1 out there. I recommend to try the download
of the last daily snapshot.
=20
Please take notice that the mbas compiler is not finished and only an
alpha version.
=20
If you install with
./configure --prefix=3D/usr/local
then you should be able to work with mono without any export of a
MONO_PATH.
=20
Regars
Jochen

________________________________

Von: mono-vb-admin@lists.ximian.com
[mailto:mono-vb-admin@lists.ximian.com] Im Auftrag von Mauricio
Henriquez
Gesendet: Donnerstag, 20. Mai 2004 17:46
An: mono-vb@lists.ximian.com
Betreff: [mono-vb] Compiling dificulties


Hi to all:
=20
    I new in the list, my name is Mauricio Henriquez and I write you
from Chili.
=20
    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??
=20
    I also install the "MonoDevelop" and I write and run correctly some
basic C#--Gtk and C#-Windows.Forms 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:
=20
$ export MONO_PATH=3D/usr/lib/mono
=20
..and then..
=20
$ mbas gtk.vb -r gtk-sharp
 Compilation succeded
=20
....where can I put the "MONO_PATH" in the "profile" files???
=20
I have the "gtk.exe", but when I try to run the program...
=20
$ mono gtk.exe
=20
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 ()
   =20
Any ideas??
=20
The code is very simple, is only for a test:
=20
Imports System
Imports Gtk
=20
Module GtkTest
 Sub Main()
  Dim Win as Window
  Dim Btn as Button
=20
  Application.Init ()
  Win =3D new Window ("VB .NET Gtk+ en Linux!!!")
  Btn =3D new Button ("Apretame")
  Win.Add (Btn)
  Win.ShowAll ()
  Application.Run ()
 End Sub
End Module
=20
=20
With "mono" in Windows I can't even compile the code, I get this
terrible message:
=20
C:\Archivos de programa\Mono-0.31\bin>mbas gtk.vb -r gtk-sharp
=20
Unhandled Exception: System.IO.FileNotFoundException: File or assembly
name Mono
.GetOptions, or one of its dependencies, was not found.
File name: "Mono.GetOptions"
=20
Fusion log follows:
=3D=3D=3D Pre-bind state information =3D=3D=3D
LOG: DisplayName =3D Mono.GetOptions, Version=3D1.0.2003.1014,
Culture=3Dneutral, Publ
icKeyToken=3Dnull
 (Fully-specified)
LOG: Appbase =3D C:\Archivos de programa\Mono-0.31\bin\
LOG: Initial PrivatePath =3D NULL
Calling assembly : mbas, Version=3D0.29.0.0, Culture=3Dneutral,
PublicKeyToken=3Dnull.
=20
=3D=3D=3D
=20
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=3D1.0.2003.1014,
Culture=3Dneut
ral, PublicKeyToken=3Dnull
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.

=20
=20
But the same code (and others C# examples) with VS .NET run perfectly.
Why?? What is my mistake??
=20
By the way I run correctly with "mono" on linux a very simple VB .NET
aplication with a Windows.Form!!!, that work!!??!!?? but the .exe was
compiled in VS .NET on Windows.
=20
Ideas??, suggestions??, tips??, link??, black magic???, pray's???
=20
Thanks
=20
Mauricio.
=20

------_=_NextPart_001_01C43F01.B71198ED
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D645525706-21052004><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Hi Mauricio,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D645525706-21052004><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D645525706-21052004><FONT face=3DArial color=3D#0000ff =
size=3D2>first=20
of all: you're using an old version of mono. There is a newer build =
mono-0.91=20
alias Beta 1 out there. I recommend to try the download of the last =
daily=20
snapshot.</FONT></SPAN></DIV>
<DIV><SPAN class=3D645525706-21052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D645525706-21052004><FONT face=3DArial color=3D#0000ff =
size=3D2>Please=20
take notice that the mbas compiler is not finished and only an alpha=20
version.</FONT></SPAN></DIV>
<DIV><SPAN class=3D645525706-21052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D645525706-21052004><FONT face=3DArial color=3D#0000ff =
size=3D2>If you=20
install with</FONT></SPAN></DIV>
<DIV><SPAN class=3D645525706-21052004><FONT face=3DArial color=3D#0000ff =

size=3D2>./configure --prefix=3D/usr/local</FONT></SPAN></DIV>
<DIV><SPAN class=3D645525706-21052004><FONT face=3DArial color=3D#0000ff =
size=3D2>then=20
you should be able to work with mono without any export of a=20
MONO_PATH.</FONT></SPAN></DIV>
<DIV><SPAN class=3D645525706-21052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D645525706-21052004><FONT face=3DArial color=3D#0000ff =

size=3D2>Regars</FONT></SPAN></DIV>
<DIV><SPAN class=3D645525706-21052004><FONT face=3DArial color=3D#0000ff =

size=3D2>Jochen</FONT></SPAN></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Dde dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>Von:</B> mono-vb-admin@lists.ximian.com=20
[mailto:mono-vb-admin@lists.ximian.com] <B>Im Auftrag von </B>Mauricio=20
Henriquez<BR><B>Gesendet:</B> Donnerstag, 20. Mai 2004 =
17:46<BR><B>An:</B>=20
mono-vb@lists.ximian.com<BR><B>Betreff:</B> [mono-vb] Compiling=20
dificulties<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hi to all:</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I new in the list, =
my name is=20
Mauricio Henriquez and I write you from Chili.</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Recently I try the =
"mono-0.31"=20
proyect in my Fedora linux, I install the RPM's from the "go-mono" web =
site and=20
I need some basic points to correctly compile my applications. For =
example,=20
where or what "path" I have to put in my linux system to find the =
correct=20
DLL's??</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I also install the =
"MonoDevelop"=20
and I write and run correctly some basic C#--Gtk and C#-Windows.Forms =
examples,=20
but yesterday I try to write my first mono-VB example with Gtk (I can =
run this=20
VB-Gtk example in Windows with VS .NET and is from the mono web =
site)&nbsp;and=20
use the VB-mono command line compiler, but I have to do this =
first:</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>$ export =
MONO_PATH=3D/usr/lib/mono</FONT></DIV>
<DIV><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV>..and then..</DIV>
<DIV><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>$ mbas gtk.vb -r gtk-sharp</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;Compilation succeded</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>....where can I put the "MONO_PATH" in =
the=20
"profile" files???</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have the "gtk.exe", but when I try to =
run the=20
program...</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>$ mono gtk.exe</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Unhandled Exception: =
System.DllNotFoundException:=20
libgtk-win32-2.0-0.dll</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>in &lt;0x0053&gt; (wrapper =
managed-to-native)=20
Gtk.Application:gtk_init (int&amp;,intptr&amp;)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>in &lt;0x00038&gt; Gtk.Application:Init =

()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>in &lt;0x00014&gt; GtkTest:Main =
()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Any ideas??</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The code is very simple, is only for a=20
test:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Imports System<BR>Imports =
Gtk</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Module GtkTest<BR>&nbsp;Sub=20
Main()<BR>&nbsp;&nbsp;Dim Win as Window<BR>&nbsp;&nbsp;Dim Btn as=20
Button</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;Application.Init =
()<BR>&nbsp;&nbsp;Win=20
=3D new Window ("VB .NET Gtk+ en Linux!!!")<BR>&nbsp;&nbsp;Btn =3D new =
Button=20
("Apretame")<BR>&nbsp;&nbsp;Win.Add (Btn)<BR>&nbsp;&nbsp;Win.ShowAll=20
()<BR>&nbsp;&nbsp;Application.Run ()<BR>&nbsp;End Sub<BR>End =
Module</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>With "mono" in Windows I can't even =
compile the=20
code, I get this terrible message:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>C:\Archivos de =
programa\Mono-0.31\bin&gt;mbas=20
gtk.vb -r gtk-sharp</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Unhandled Exception:=20
System.IO.FileNotFoundException: File or assembly name =
Mono<BR>.GetOptions, or=20
one of its dependencies, was not found.<BR>File name:=20
"Mono.GetOptions"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Fusion log follows:<BR>=3D=3D=3D =
Pre-bind state=20
information =3D=3D=3D<BR>LOG: DisplayName =3D Mono.GetOptions, =
Version=3D1.0.2003.1014,=20
Culture=3Dneutral, =
Publ<BR>icKeyToken=3Dnull<BR>&nbsp;(Fully-specified)<BR>LOG:=20
Appbase =3D C:\Archivos de programa\Mono-0.31\bin\<BR>LOG: Initial =
PrivatePath =3D=20
NULL<BR>Calling assembly : mbas, Version=3D0.29.0.0, Culture=3Dneutral,=20
PublicKeyToken=3Dnull.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>=3D=3D=3D</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LOG: Application configuration file =
does not=20
exist.<BR>LOG: Policy not being applied to reference at this time =
(private,=20
custom, partia<BR>l, or location-based assembly bind).<BR>LOG: =
Post-policy=20
reference: Mono.GetOptions, Version=3D1.0.2003.1014, =
Culture=3Dneut<BR>ral,=20
PublicKeyToken=3Dnull<BR>LOG: Attempting download of new URL <A=20
href=3D"file:///C:/Archivos">file:///C:/Archivos</A> de=20
programa/Mono-0.31/bi<BR>n/Mono.GetOptions.DLL.<BR>LOG: Attempting =
download of=20
new URL <A href=3D"file:///C:/Archivos">file:///C:/Archivos</A> de=20
programa/Mono-0.31/bi<BR>n/Mono.GetOptions/Mono.GetOptions.DLL.<BR>LOG:=20
Attempting download of new URL <A=20
href=3D"file:///C:/Archivos">file:///C:/Archivos</A> de=20
programa/Mono-0.31/bi<BR>n/Mono.GetOptions.EXE.<BR>LOG: Attempting =
download of=20
new URL <A href=3D"file:///C:/Archivos">file:///C:/Archivos</A> de=20
programa/Mono-0.31/bi<BR>n/Mono.GetOptions/Mono.GetOptions.EXE.<BR></FONT=
></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>But the same code (and others C# =
examples) with VS=20
.NET run perfectly.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Why?? What is my mistake??</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>By the way I run correctly with "mono" on linux a very simple VB =
.NET=20
aplication with a Windows.Form!!!, that work!!??!!?? but the .exe was =
compiled=20
in VS .NET on Windows.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Ideas??, suggestions??, tips??, link??, =
black=20
magic???, pray's???</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Mauricio.</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>&nbsp;</DIV></FONT></FONT></DIV></BODY></HTML>

------_=_NextPart_001_01C43F01.B71198ED--