[Mono-list] Starting out using mono

jim lawrence jim lawrence <fedorajim@gmail.com>
Wed, 11 May 2005 01:01:29 -0400


Sorry for the Noobie questions and such=20

i have developmed a few mid size applications using vb.net c#.net and
want to play with mono to develop code for both windows & more
importantly linux.
Question 1
i tested out the sample hello.cs in the monodoc that compiled file and
ran .  I found a example gtk.vb and tried to compile that as well. No
good!  i get a error
[jim@Notebook ~]$ mbas hello.vb -r gtk-sharp
MonoBASIC Compiler  0.96.1.0 - (c)2002, 2003, 2004, 2005 Rafael Teixeira
--------
THIS IS AN ALPHA SOFTWARE.
--------
error BC0006: Can not find assembly `gtk-sharp'
Log:

Compilation failed: 1 Error(s), 0 warnings

Here is the source code I used=20
#########################################################################
'testing the mono Vb
' Me 5-11-2005

Imports System
Imports Gtk

Module Gtktest

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

         Application.Init ()
           ' Create the  window
           Win =3D new Window ("VB Gtk + Hello All")
           ' Create a button
           Btn =3D new Button ("Click Me Fool")
           ' Add the Button
           Win.add (Btn)=20
           Win.ShowAll ()
        End Sub

End Module
####################################################################
Question 2=20
I believe i have everything installed Except the monodevelop IDE Which
i would Love to have. What i have installed mono related

[jim@Notebook ~]$ rpm -qa | grep mono
 mono-devel-1.1.7-1.novell
mono-data-sybase-1.1.7-1.novell
mono-complete-1.1.7-1.novell
mono-data-sqlite-1.1.7-1.novell
mono-web-1.1.7-1.novell
monodoc-1.0.5-1.1.fc3.rf
mono-data-postgresql-1.1.7-1.novell
mono-data-oracle-1.1.7-1.novell
mono-winforms-1.1.7-1.novell
mono-locale-extras-1.1.7-1.novell
mono-core-1.1.7-1.novell
mono-basic-1.1.7-1.novell
mono-ikvm-1.1.7-1.novell
mono-data-1.1.7-1.novell
mono-extras-1.1.7-1.novell
[jim@Notebook ~]$ rpm -qa | grep gtk
usermode-gtk-1.74-1
pygtk2-2.4.0-1
gtkhtml2-2.6.2-1
gtk-doc-1.2-2
gtk-sharp-1.0.9-0.fedora3.novell
pygtk2-libglade-2.4.0-1
gnome-python2-gtkhtml2-2.6.0-3
gtk+-1.2.10-33
aiksaurus-gtk-1.2.1-2
gtk-engines-0.12-5
pygtk2-devel-2.4.0-1
gtksourceview-1.1.0-4.fc3
gtkhtml3-3.3.2-3
gtk2-devel-2.4.14-3.fc3
authconfig-gtk-4.6.5-3.1
gtkspell-2.0.7-2
gtk2-engines-2.2.0-6
gtk2-2.4.14-3.fc3
gtk-sharp2-1.9.3.1-0.fedora3.novell

Apparently mozilla is needed for monodevelop
[jim@Notebook ~]$ rpm -qa | grep mozilla
mozilla-nspr-1.7.7-1.3.1
mozilla-1.7.7-1.3.1
mozilla-nspr-devel-1.7.7-1.3.1
mozilla-nss-devel-1.7.7-1.3.1
mozilla-devel-1.7.7-1.3.1
mozilla-nss-1.7.7-1.3.1

Question 3=20
Do i have everything installed to compile the .vb example? =20

Question 4=20
 It appears  that there isn't a binary Fedora rpm for monodevelop.  If
someone has the src.rpm for it i'll be glad to attempt to build a rpm
for monodevelop.  I have tried to make geko-sharp-0 .6 but errors out
#####################################################################
[jim@Notebook gecko-sharp-0.6]$ make
Making all in sources
make[1]: Entering directory `/home/jim/momo/gecko-sharp-0.6/sources'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jim/momo/gecko-sharp-0.6/sources'
Making all in gtkmozembed
make[1]: Entering directory `/home/jim/momo/gecko-sharp-0.6/gtkmozembed'
mono /usr/bin/gapi_codegen.exe --generate ./gtkgecko-api.xml --include
/usr/share/gapi/gdk-api.xml /usr/share/gapi/gtk-api.xml
/usr/share/gapi/atk-api.xml --outdir=3Dgenerated --customdir=3D.
--assembly-name=3Dgecko-sharp && touch generated-stamp
cannot open assembly /usr/bin/gapi_codegen.exe
make[1]: *** [generated-stamp] Error 2
make[1]: Leaving directory `/home/jim/momo/gecko-sharp-0.6/gtkmozembed'
make: *** [all-recursive] Error 1
[jim@Notebook gecko-sharp-0.6]$
#####################################################################
So I haven't even tried with monodevelop yet as this is required for it.=20

Please advise On how to approach all of my current mono issues

Thanks =20
-- Jim
Registered Linux User: #376813
www.fedorajim.homelinux.com