[Mono-list] Read in environment variables

2003-06-12 Thread Joseph Roberts
How can I read in environment variables such as $ENV{'UPLOAD_VUSER'} being
passed into a console app.  Would I just read them in as standard command
line args??

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Can't be able to build mono from CVS.

2003-06-12 Thread Ritchard Nash
Hi all , 

i'm trying to build mono from CVS but it seems i miss something.
I checkout mono mcs and gtk-sharp and do the following:

cd /cw/cvsroot/mono/mono
./autogen.sh --prefix=/cw/cvsroot/mono/install
make
make install

and it builds. On the end it complains about some unexistent exe files
but ignore them. Then i do:

cd /cw/cvsroot/mono/mcs
make -f makefile.gnu install prefix=/cw/cvsroot/mono/install

and it complains that it can't find a mcs to build libraries.
If i install a 0.23 mono it try to build the classlib but
says that my corlib is out of sync.

Someone can help me with a precise & correct procedure to follow to
build mono from cvs in a system without any preinstalled mono version?

--
Best Regards, 
Ritchard Nash <[EMAIL PROTECTED]>

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Unboxing a MonoObject

2003-06-12 Thread Paolo Molaro
On 06/10/03 Candace Bain wrote:
> I need to unbox the MonoObject pointer that mono_runtime_invoke returned
> to me to get the return value of the function.  If I'm expecting a
> string I've found that the following code will work:
> 
> MonoString * str = NULL;
> gchar *message = (char *) "";
> 
> 
> 
>   str = (MonoString *)mono_runtime_invoke (method, test, NULL, NULL);
>   if ( str )
> {
>   message = mono_string_to_utf8(str);
> }
> 
> But it's not clear to me how to unbox a MonoObject to get to a bool,
> double, or int value.  Thanks in advance for any pointers about how to
> do this.

I just added in cvs an API you can use to get a pointer to the data that
you'll need to dereference:

gpointer mono_object_unbox (MonoObject *obj);

So, for a C# int, you'd do:

gint32 *intval = mono_object_unbox (result);
g_print ("got %d\n", *intval);

The implementation is just:

(char*)obj + sizeof (MonoObject)

if you're not using cvs, but I suggest you switch to the API as soon as
we make the new release.

lupus

-- 
-
[EMAIL PROTECTED] debian/rules
[EMAIL PROTECTED] Monkeys do it better
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Re: [Mono-devel-list] Building embed sample or cilc generated code on Windows

2003-06-12 Thread Paolo Molaro
On 06/10/03 Candace Bain wrote:
> I'm working on a proof of concept application that will need to call
> from a C++ command line application into a C# object running under mono.
> For performance testing I'll need to run the same app the same way on
> both Linux and Windows.  I've been looking at the embed sample
> application under /mono/samples/embed and the code that the cilc test
> generates under /mcs/tools/cilc/generated, both of these work as
> expected for me when I compile and run them on Linux.  I'm not able to
> compile either of them on Windows.  The instructions for teste.c in
> embed are to run:
> 
> gcc -o teste teste.c `pkg-config --cflags --libs mono` -lm
> 
> And the Makefile that cilc generates contains:
> 
> gcc -Wall -fpic -shared `pkg-config --cflags --libs glib-2.0 mono`
> -lpthread *.c -o libdemo.so

Those instructions are for unixy kind of systems.
I think on windows you'll have to add at least -mno-cygwin to gcc.

> If I run pkg-config --cflags --libs glib-2.0 mono manually it works and
> returns:
> 
> -IC:/cygwin/users/candace/install/include
> -I/users/candace/install/include/glib-2.0
> -I/users/candace/install/lib/glib-2.0/include  -Wl,--export-dynamic
> -LC:/cygwin/users/candace/install/lib -L/users/candace/install/lib
> -lmono -lm -lgmodule-2.0 -lglib-2.0 -lintl -liconv
> 
> >From the errors I'm getting (can't find mono/io-layer/wapi.h, etc) it
> seems clear to me that I need to use some specific header include paths
> and defines for Windows, but I haven't been able to get a combination
> that works yet.  Does anyone have a Makefile I could use to compile the
> embed sample or cilc generated test on Windows, or if not does anyone
> have pointers to where I could gather this information?

The only header from io-layer that shuld be installed is io-layer.h:
check you have installed it somewhere.
That header uses 
#if defined(__WIN32__)
to include the windows headers on windows, instead of wapi.h etc.
So it may be that the compiler doesn't define __WIN32__, seems strange
though. Hope this helps.


lupus

-- 
-
[EMAIL PROTECTED] debian/rules
[EMAIL PROTECTED] Monkeys do it better
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Can't be able to build mono from CVS.

2003-06-12 Thread Philip Van Hoof

Try the information on

http://www.freax.be/mono.html


On Wed, 2003-06-11 at 19:26, Ritchard Nash wrote:
> Hi all , 
> 
> i'm trying to build mono from CVS but it seems i miss something.
> I checkout mono mcs and gtk-sharp and do the following:
> 
> cd /cw/cvsroot/mono/mono
> ./autogen.sh --prefix=/cw/cvsroot/mono/install
> make
> make install
> 
> and it builds. On the end it complains about some unexistent exe files
> but ignore them. Then i do:
> 
> cd /cw/cvsroot/mono/mcs
> make -f makefile.gnu install prefix=/cw/cvsroot/mono/install
> 
> and it complains that it can't find a mcs to build libraries.
> If i install a 0.23 mono it try to build the classlib but
> says that my corlib is out of sync.
> 
> Someone can help me with a precise & correct procedure to follow to
> build mono from cvs in a system without any preinstalled mono version?
> 
> --
> Best Regards, 
> Ritchard Nash <[EMAIL PROTECTED]>
> 
> ___
> Mono-list maillist  -  [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Philip Van Hoof, Software Developer @ Cronos
home: me at freax dot org
work: Philip dot VanHoof at cronos dot be
http://www.freax.be, http://www.freax.eu.org

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Building problem

2003-06-12 Thread Paolo Molaro
On 06/11/03 Pablo Baena wrote:
> Guys. Have you noticed that the mini directory takes two 'make' to get
> itself built? Or is it just me?

I think it does that because some source files are generated by a
program that is compiled in the same directory (genmdesc).
I don't know if there is a clean way to avoid it.

lupus

-- 
-
[EMAIL PROTECTED] debian/rules
[EMAIL PROTECTED] Monkeys do it better
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] monodocs problem

2003-06-12 Thread Ron Bellomo
Hi all,

I have been intrigued by the mono project for quite some time. I have
done some programming with C# under the MS Visual Studio environment. I
recently installed mono on my RedHat system and the compiler seems to be
working, at least for simple programs.

But, I have had some problems opening the monodocs viewer. I get an
error message that the viewer could not open libgtkhtml-3.0.so and I
cannot find a place to go grab that file. Can someone point me in the
right direction?

Thanks in advance.

Ron Bellomo

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] monodocs problem

2003-06-12 Thread Sam Clegg
On Thu, Jun 12, 2003 at 12:15:36PM -0600, Ron Bellomo wrote:
> But, I have had some problems opening the monodocs viewer. I get an
> error message that the viewer could not open libgtkhtml-3.0.so and I
> cannot find a place to go grab that file. Can someone point me in the
> right direction?

In debian/unstable the package is libgtkhtml3.0-2.  On redhat you
might be able to find it through rpmfind.net.  Otherwise you can
compile it yourself from the gtkhtml cvs module on cvs.gnome.org
IIRC.
-- 
sam clegg
:: [EMAIL PROTECTED] :: http://superduper.net/ :: PGP : D91EE369 
$superduper: .signature,v 1.12 2003/04/14 10:50:50 sam Exp $


pgp0.pgp
Description: PGP signature


Re: [Mono-list] monodocs problem

2003-06-12 Thread Stuart Jansen
On Thu, 2003-06-12 at 12:42, Sam Clegg wrote:
> On Thu, Jun 12, 2003 at 12:15:36PM -0600, Ron Bellomo wrote:
> > But, I have had some problems opening the monodocs viewer. I get an
> > error message that the viewer could not open libgtkhtml-3.0.so and I
> > cannot find a place to go grab that file. Can someone point me in the
> > right direction?
> 
> In debian/unstable the package is libgtkhtml3.0-2.  On redhat you
> might be able to find it through rpmfind.net.  Otherwise you can
> compile it yourself from the gtkhtml cvs module on cvs.gnome.org
> IIRC.

I just grabbed a copy from ftp.ximian.com. Remember they're packaged for
concurrent installation so you can rpm -i, no need to rpm -U and risk
your system.

-- 
Stuart Jansen <[EMAIL PROTECTED], AIM:StuartMJansen>

When in doubt, use brute force. -- Ken Thompson, co-creator of Unix


signature.asc
Description: This is a digitally signed message part


[Mono-list] patch

2003-06-12 Thread Johannes Roith

Index: monohb-provider.cs
===
RCS file: /cvs/public/monodoc/browser/monohb-provider.cs,v
retrieving revision 1.1
diff -u -r1.1 monohb-provider.cs
--- monohb-provider.cs	1 Jun 2003 15:26:45 -	1.1
+++ monohb-provider.cs	12 Jun 2003 16:16:56 -
@@ -23,6 +23,85 @@
 node.RemoveAll();
 			}
 		}
+
+
+
+
+
+
+
+XmlNodeList nodeList2 = docToProcess.GetElementsByTagName("pre");
+foreach(XmlNode node in nodeList2)
+	{
+		string cssClass = ((XmlElement)node).GetAttribute("class");
+
+		if (cssClass != null)
+		{
+
+			switch(cssClass)   
+			{ 
+
+			case "code":   
+
+node.InnerXml = "" + 
+	"" + 
+	"" + 
+	"" + 
+	"" + 
+	"   " + 
+	"" + 
+	"" + 
+
+	node.InnerXml +
+
+	"" + 
+	" " + 
+	"" + 
+	"" + 
+	"";
+
+			break;
+ 			case "console":   
+
+node.InnerXml = "" + 
+	"" + 
+	"" + 
+	"" + 
+	"" + 
+	"   " + 
+	"" + 
+	"" + 
+
+	node.InnerXml +
+
+	"" + 
+	" " + 
+	"" + 
+	"" + 
+	"";
+			break;
+
+			default:
+			break;  
+			}
+
+
+		}
+	}
+
+
+
+
+
+
+
+
+
+
+
+
+
+	
 		return docToProcess;
 	}
 }


[Mono-list] patch

2003-06-12 Thread Johannes Roith
sorry, I have to update the patch.

:)
Index: monohb-provider.cs
===
RCS file: /cvs/public/monodoc/browser/monohb-provider.cs,v
retrieving revision 1.1
diff -u -r1.1 monohb-provider.cs
--- monohb-provider.cs	1 Jun 2003 15:26:45 -	1.1
+++ monohb-provider.cs	12 Jun 2003 16:33:39 -
@@ -23,6 +23,85 @@
 node.RemoveAll();
 			}
 		}
+
+
+
+
+
+
+
+XmlNodeList nodeList2 = docToProcess.GetElementsByTagName("pre");
+foreach(XmlNode node in nodeList2)
+	{
+		string cssClass = ((XmlElement)node).GetAttribute("class");
+
+		if (cssClass != null)
+		{
+
+			switch(cssClass)   
+			{ 
+
+			case "code":   
+
+node.InnerXml = "" + 
+	"" + 
+	"" + 
+	"" + 
+	"" + 
+	"   " + 
+	"" + 
+	"" + 
+
+	node.InnerXml +
+
+	"" + 
+	" " + 
+	"" + 
+	"" + 
+	"";
+
+			break;
+ 			case "console":   
+
+node.InnerXml = "" + 
+	"" + 
+	"" + 
+	"" + 
+	"" + 
+	"   " + 
+	"" + 
+	"" + 
+
+	node.InnerXml +
+
+	"" + 
+	" " + 
+	"" + 
+	"" + 
+	"";
+			break;
+
+			default:
+			break;  
+			}
+
+
+		}
+	}
+
+
+
+
+
+
+
+
+
+
+
+
+
+	
 		return docToProcess;
 	}
 }


[Mono-list] monodoc xhtml provider trim patch

2003-06-12 Thread Johannes Roith
tiny one :)
Index: xhtml-provider.cs
===
RCS file: /cvs/public/monodoc/browser/xhtml-provider.cs,v
retrieving revision 1.1
diff -u -r1.1 xhtml-provider.cs
--- xhtml-provider.cs	1 Jun 2003 15:26:45 -	1.1
+++ xhtml-provider.cs	12 Jun 2003 16:47:15 -
@@ -175,7 +175,7 @@
 
 // FIXME: Change this to include the help-source ID?
 // Not really sure what's going on here.
-nodeToAddChildrenTo = latestNodeAddition.CreateNode (attribs[0], "source-id:NNN:xhtml:" + filename);
+nodeToAddChildrenTo = latestNodeAddition.CreateNode (attribs[0].Trim(), "source-id:NNN:xhtml:" + filename);
 
 			}
 			else {


[Mono-list] monodoc.xml entry patch

2003-06-12 Thread Johannes Roith
add new entry in monodoc.xml for handbook
Index: monodoc.xml
===
RCS file: /cvs/public/monodoc/browser/monodoc.xml,v
retrieving revision 1.4
diff -u -r1.4 monodoc.xml
--- monodoc.xml	17 Apr 2003 19:48:28 -	1.4
+++ monodoc.xml	12 Jun 2003 17:14:02 -
@@ -2,5 +2,6 @@
 
   
   
+  
   
 


[Mono-list] The prove that they can all live together

2003-06-12 Thread Philip Van Hoof

Tomcat4, PHP and Mono :

Tomcat4 : http://212.3.252.203:8180/index.html
Mono: http://212.3.252.203:8080/
PHP : http://212.3.252.203/phpinfo.php

For all I used the standard debian packages and for j2re1.4 I used the
blackdown packages. For XSP I used the module in CVS.

I wonder if I can (and how) use mod_webapp to make a VirtualHost connect
to port 8080 and another VirtualHost to 8180, or if somebody has
modified mod_webapp to make this possible? (On my server I want to use
Debian and Apache 1.3. So the Apache 2.0 module is not, yet, an option
for me)

I am planning to create a wiki that explains how to install all the
packages correctly (feel free to update the Mono -and other parts):

http://www.freax.be/wiki/index.php/Installing%20an%20advanced%20Debian%20server

hf.

-- 
Philip Van Hoof, Software Developer @ Cronos
home: me at freax dot org
work: Philip dot VanHoof at cronos dot be
http://www.freax.be, http://www.freax.eu.org

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Re: [Mono-devel-list] Building embed sample or cilc generated code on Windows

2003-06-12 Thread Bob Stabler
Now we have it compiling but it won't link, even though libmono.a is in
the lib path:

[EMAIL PROTECTED] /users/bobst/mono/mono/samples/embed
$ make
gcc -mno-cygwin -I/users/bobst/mono/mono
-I/users/bobst/mono/install/include/gli
b-2.0 -I/users/bobst/mono/install/lib/glib-2.0/include
-Wl,--export-dynamic -L/
users/bobst/mono/install/lib -lmono -lm -lgmodule-2.0 -lglib-2.0 -lintl
-liconv
-o teste teste.c
/cygdrive/c/DOCUME~1/BOBST~1.AVS/LOCALS~1/Temp/ccGsByTX.o(.text+0x29):te
ste.c: u
ndefined reference to `mono_domain_get'
/cygdrive/c/DOCUME~1/BOBST~1.AVS/LOCALS~1/Temp/ccGsByTX.o(.text+0x39):te
ste.c: u
ndefined reference to `mono_string_new'
/cygdrive/c/DOCUME~1/BOBST~1.AVS/LOCALS~1/Temp/ccGsByTX.o(.text+0x5f):te
ste.c: u
ndefined reference to `mono_domain_assembly_open'
/cygdrive/c/DOCUME~1/BOBST~1.AVS/LOCALS~1/Temp/ccGsByTX.o(.text+0x9c):te
ste.c: u
ndefined reference to `mono_jit_exec'
/cygdrive/c/DOCUME~1/BOBST~1.AVS/LOCALS~1/Temp/ccGsByTX.o(.text+0x147):t
este.c:
undefined reference to `mono_jit_init'
/cygdrive/c/DOCUME~1/BOBST~1.AVS/LOCALS~1/Temp/ccGsByTX.o(.text+0x15e):t
este.c:
undefined reference to `mono_add_internal_call'
/cygdrive/c/DOCUME~1/BOBST~1.AVS/LOCALS~1/Temp/ccGsByTX.o(.text+0x194):t
este.c:
undefined reference to `mono_runtime_exec_managed_code'
/cygdrive/c/DOCUME~1/BOBST~1.AVS/LOCALS~1/Temp/ccGsByTX.o(.text+0x199):t
este.c:
undefined reference to `mono_environment_exitcode_get'
/cygdrive/c/DOCUME~1/BOBST~1.AVS/LOCALS~1/Temp/ccGsByTX.o(.text+0x1a7):t
este.c:
undefined reference to `mono_jit_cleanup'
make: *** [all] Error 1

-Original Message-
From: Paolo Molaro [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 12, 2003 10:39 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Mono-list] Re: [Mono-devel-list] Building embed sample or cilc
generated code on Windows

On 06/10/03 Candace Bain wrote:
> I'm working on a proof of concept application that will need to call
> from a C++ command line application into a C# object running under
mono.
> For performance testing I'll need to run the same app the same way on
> both Linux and Windows.  I've been looking at the embed sample
> application under /mono/samples/embed and the code that the cilc test
> generates under /mcs/tools/cilc/generated, both of these work as
> expected for me when I compile and run them on Linux.  I'm not able to
> compile either of them on Windows.  The instructions for teste.c in
> embed are to run:
> 
> gcc -o teste teste.c `pkg-config --cflags --libs mono` -lm
> 
> And the Makefile that cilc generates contains:
> 
> gcc -Wall -fpic -shared `pkg-config --cflags --libs glib-2.0 mono`
> -lpthread *.c -o libdemo.so

Those instructions are for unixy kind of systems.
I think on windows you'll have to add at least -mno-cygwin to gcc.

> If I run pkg-config --cflags --libs glib-2.0 mono manually it works
and
> returns:
> 
> -IC:/cygwin/users/candace/install/include
> -I/users/candace/install/include/glib-2.0
> -I/users/candace/install/lib/glib-2.0/include  -Wl,--export-dynamic
> -LC:/cygwin/users/candace/install/lib -L/users/candace/install/lib
> -lmono -lm -lgmodule-2.0 -lglib-2.0 -lintl -liconv
> 
> >From the errors I'm getting (can't find mono/io-layer/wapi.h, etc) it
> seems clear to me that I need to use some specific header include
paths
> and defines for Windows, but I haven't been able to get a combination
> that works yet.  Does anyone have a Makefile I could use to compile
the
> embed sample or cilc generated test on Windows, or if not does anyone
> have pointers to where I could gather this information?

The only header from io-layer that shuld be installed is io-layer.h:
check you have installed it somewhere.
That header uses 
#if defined(__WIN32__)
to include the windows headers on windows, instead of wapi.h etc.
So it may be that the compiler doesn't define __WIN32__, seems strange
though. Hope this helps.


lupus

-- 
-
[EMAIL PROTECTED] debian/rules
[EMAIL PROTECTED] Monkeys do it better
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] gtksourceview csharp.lang

2003-06-12 Thread John Luke
Hello,

For anyone who is using gtksourceview, I have attempted to add csharp
syntax highlighting.  You can get the file at
http://bugs.gnome.org/show_bug.cgi?id=115040 or help to make it better.

To try it:
put csharp.lang in ~/.gnome2/gtksourceview-1.0/language-specs
and make sure gnome knows about text/x-csharp mimetype.

For example, gedit in cvs uses gtksourceview for syntax highlighting.

John Luke

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] The prove that they can all live together

2003-06-12 Thread Gaurav Vaish
> Mono : http://212.3.252.203:8080/

Simply awesome!

I am happy to see all working, especially the Calendar.

Request:
Please don't put off the server... you may experience some good load
(testing?) soon. :-)

Gonzalo:
We've made everything look good. ;-)


Cheers,
Jee-Wee
http://gvaish.virtualave.net




___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list