I couldn't get it to work and looking at the source in gtk.cs, it looks like there is an old P-Invoke for xaml_create_from_file. The args have since changed and it currently fails. I changed the definition and recompiled GTKSilver and xaml_create_from_file succeeded but I get other issues.
I recently tried re-syncing to see if this issue has been fixed. I built Mono and Olive but cannot build Moon due to the error:
smcs -debug -out:moonlight.exe ./moonlight.cs -pkg:silver - pkg:agmonosilver ./moonlight.cs(49,22): error CS0234: The type or namespace name `Xaml' does not exist in the namespace `Mono'. Are you missing an assembly reference? Compilation failed: 1 error(s), 0 warnings
Any help getting GTKSilver to work would be appreciated.
> I couldn't get it to work and looking at the source in gtk.cs, it > looks like there is an old P-Invoke for xaml_create_from_file. The > args have since changed and it currently fails. I changed the > definition and recompiled GTKSilver and xaml_create_from_file > succeeded but I get other issues.
> I recently tried re-syncing to see if this issue has been fixed. I > built Mono and Olive but cannot build Moon due to the error:
> smcs -debug -out:moonlight.exe ./moonlight.cs -pkg:silver - > pkg:agmonosilver > ./moonlight.cs(49,22): error CS0234: The type or namespace name `Xaml' > does not exist in the namespace `Mono'. Are you missing an assembly > reference? > Compilation failed: 1 error(s), 0 warnings
> Any help getting GTKSilver to work would be appreciated.
> > I couldn't get it to work and looking at the source in gtk.cs, it > > looks like there is an old P-Invoke for xaml_create_from_file. The > > args have since changed and it currently fails. I changed the > > definition and recompiled GTKSilver and xaml_create_from_file > > succeeded but I get other issues.
> > I recently tried re-syncing to see if this issue has been fixed. I > > built Mono and Olive but cannot build Moon due to the error:
> > smcs -debug -out:moonlight.exe ./moonlight.cs -pkg:silver - > > pkg:agmonosilver > > ./moonlight.cs(49,22): error CS0234: The type or namespace name `Xaml' > > does not exist in the namespace `Mono'. Are you missing an assembly > > reference? > > Compilation failed: 1 error(s), 0 warnings
> > Any help getting GTKSilver to work would be appreciated.
> > > I couldn't get it to work and looking at the source in gtk.cs, it > > > looks like there is an old P-Invoke for xaml_create_from_file. The > > > args have since changed and it currently fails. I changed the > > > definition and recompiled GTKSilver and xaml_create_from_file > > > succeeded but I get other issues.
> > > I recently tried re-syncing to see if this issue has been fixed. I > > > built Mono and Olive but cannot build Moon due to the error:
> > > smcs -debug -out:moonlight.exe ./moonlight.cs -pkg:silver - > > > pkg:agmonosilver > > > ./moonlight.cs(49,22): error CS0234: The type or namespace name `Xaml' > > > does not exist in the namespace `Mono'. Are you missing an assembly > > > reference? > > > Compilation failed: 1 error(s), 0 warnings
> > > Any help getting GTKSilver to work would be appreciated.
The code is using GtkSilver. That internal Moonlight code above is commented out. I was just calling the internal Moonlight API as a test to debug issues (sorry this is confusing, my bad).
You should be able to test by compiling test.cs above doing
gmcs test.cs -pkg:gtksilver -pkg:gtk-sharp-2.0
Brock
On Oct 2, 11:48 am, "Miguel de Icaza" <miguel.de.ic...@gmail.com> wrote:
> > > > I couldn't get it to work and looking at the source in gtk.cs, it > > > > looks like there is an old P-Invoke for xaml_create_from_file. The > > > > args have since changed and it currently fails. I changed the > > > > definition and recompiled GTKSilver and xaml_create_from_file > > > > succeeded but I get other issues.
> > > > I recently tried re-syncing to see if this issue has been fixed. I > > > > built Mono and Olive but cannot build Moon due to the error:
> > > > smcs -debug -out:moonlight.exe ./moonlight.cs -pkg:silver - > > > > pkg:agmonosilver > > > > ./moonlight.cs(49,22): error CS0234: The type or namespace name `Xaml' > > > > does not exist in the namespace `Mono'. Are you missing an assembly > > > > reference? > > > > Compilation failed: 1 error(s), 0 warnings
> > > > Any help getting GTKSilver to work would be appreciated.
the trouble is that there is code presently in tools/mopen/mopen.cs (LoadXaml) that should really live in the gtksilver stuff. None of our examples, tools, or anything, uses GtkSilver.LoadFile
> The code is using GtkSilver. That internal Moonlight code above is > commented out. I was just calling the internal Moonlight API as a test > to debug issues (sorry this is confusing, my bad).
> You should be able to test by compiling test.cs above doing
> gmcs test.cs -pkg:gtksilver -pkg:gtk-sharp-2.0
> Brock
> On Oct 2, 11:48 am, "Miguel de Icaza" <miguel.de.ic...@gmail.com> > wrote: > > You should not be calling the internal Moonlight API, we provide a > managed > > library that you can access with -pkg:gtksilver or something like that.
> > On 10/2/07, breeve <brock.re...@gmail.com> wrote:
> > > I was able to get my build working, but am still having problems with > > > the GTKSilver stuff. Here is my XAML
> > > > > I couldn't get it to work and looking at the source in gtk.cs, it > > > > > looks like there is an old P-Invoke for xaml_create_from_file. The > > > > > args have since changed and it currently fails. I changed the > > > > > definition and recompiled GTKSilver and xaml_create_from_file > > > > > succeeded but I get other issues.
> > > > > I recently tried re-syncing to see if this issue has been fixed. I > > > > > built Mono and Olive but cannot build Moon due to the error:
> > > > > smcs -debug -out:moonlight.exe ./moonlight.cs -pkg:silver - > > > > > pkg:agmonosilver > > > > > ./moonlight.cs(49,22): error CS0234: The type or namespace name > `Xaml' > > > > > does not exist in the namespace `Mono'. Are you missing an > assembly > > > > > reference? > > > > > Compilation failed: 1 error(s), 0 warnings
> > > > > Any help getting GTKSilver to work would be appreciated.
I am considering contributing to the Moonlight Project and have been looking at daily builds in comparison with lots of demos that I am doing on my Silverlight Tour. I can't tell from the build what is considered done and what isn't (or where to list bugs if its that late in the process yet). Can someone point me to the right place, perhaps a Bugzilla instance?
This mopen thing works. That is what I was trying to do. It seems to me that right now it will only work with Silverlight 1.0 stuff (.xaml file only). Meaning I can do [fopen Page.xaml] for example and it works. There doesn't seem to be any way currently to use the code behind model of Silverlight 1.1 with mopen. I did see the --host option but it isn't implemented yet. Is this supposed to work like [fopen --host http://onioncreeksoftware.com/] and be able to host Silverlight 1.1 apps?
Brock
On Oct 2, 2:01 pm, "Chris Toshok" <tos...@gmail.com> wrote:
> the trouble is that there is code presently in tools/mopen/mopen.cs > (LoadXaml) that should really live in the gtksilver stuff. None of our > examples, tools, or anything, uses GtkSilver.LoadFile
> On 10/2/07, breeve <brock.re...@gmail.com> wrote:
> > The code is using GtkSilver. That internal Moonlight code above is > > commented out. I was just calling the internal Moonlight API as a test > > to debug issues (sorry this is confusing, my bad).
> > You should be able to test by compiling test.cs above doing
> > On Oct 2, 11:48 am, "Miguel de Icaza" <miguel.de.ic...@gmail.com> > > wrote: > > > You should not be calling the internal Moonlight API, we provide a > > managed > > > library that you can access with -pkg:gtksilver or something like that.
> > > On 10/2/07, breeve <brock.re...@gmail.com> wrote:
> > > > I was able to get my build working, but am still having problems with > > > > the GTKSilver stuff. Here is my XAML
> > > > On Oct 1, 6:41 pm, "Miguel de Icaza" <miguel.de.ic...@gmail.com> > > > > wrote: > > > > > What are you trying to build?
> > > > > The stuff on SVN seems to work, can you give an example?
> > > > > On 10/1/07, breeve <brock.re...@gmail.com> wrote:
> > > > > > Hello,
> > > > > > I was playing around with the GTKSilver control to try to host > > > > > > silverlight (XAML) content on the desktop. I was following the > > > > > > documentation from here > > > > > >http://www.go-mono.com/docs/index.aspx?tlink=6@N%3aGtk.Moonlight
> > > > > > I couldn't get it to work and looking at the source in gtk.cs, it > > > > > > looks like there is an old P-Invoke for xaml_create_from_file. The > > > > > > args have since changed and it currently fails. I changed the > > > > > > definition and recompiled GTKSilver and xaml_create_from_file > > > > > > succeeded but I get other issues.
> > > > > > I recently tried re-syncing to see if this issue has been fixed. I > > > > > > built Mono and Olive but cannot build Moon due to the error:
> > > > > > smcs -debug -out:moonlight.exe ./moonlight.cs -pkg:silver - > > > > > > pkg:agmonosilver > > > > > > ./moonlight.cs(49,22): error CS0234: The type or namespace name > > `Xaml' > > > > > > does not exist in the namespace `Mono'. Are you missing an > > assembly > > > > > > reference? > > > > > > Compilation failed: 1 error(s), 0 warnings
> > > > > > Any help getting GTKSilver to work would be appreciated.
> > > > > > Brock- Hide quoted text -
> > > > > - Show quoted text -- Hide quoted text -
See the manual page for mopen for details on how its supposed to work, or check the various examples in the moon distribution.
That being said, Moonlight is under development at this point, and things will continue to change in the next few months, it is not something whose API is ready to be used.
> This mopen thing works. That is what I was trying to do. It seems to > me that right now it will only work with Silverlight 1.0 stuff (.xaml > file only). Meaning I can do [fopen Page.xaml] for example and it > works. There doesn't seem to be any way currently to use the code > behind model of Silverlight 1.1 with mopen. I did see the --host > option but it isn't implemented yet. Is this supposed to work like > [fopen --host http://onioncreeksoftware.com/] and be able to host > Silverlight 1.1 apps?
> Brock
> On Oct 2, 2:01 pm, "Chris Toshok" <tos...@gmail.com> wrote: > > the trouble is that there is code presently in tools/mopen/mopen.cs > > (LoadXaml) that should really live in the gtksilver stuff. None of our > > examples, tools, or anything, uses GtkSilver.LoadFile
> > On 10/2/07, breeve <brock.re...@gmail.com> wrote:
> > > The code is using GtkSilver. That internal Moonlight code above is > > > commented out. I was just calling the internal Moonlight API as a test > > > to debug issues (sorry this is confusing, my bad).
> > > You should be able to test by compiling test.cs above doing
> > > On Oct 2, 11:48 am, "Miguel de Icaza" <miguel.de.ic...@gmail.com> > > > wrote: > > > > You should not be calling the internal Moonlight API, we provide a > > > managed > > > > library that you can access with -pkg:gtksilver or something like > that.
> > > > On 10/2/07, breeve <brock.re...@gmail.com> wrote:
> > > > > I was able to get my build working, but am still having problems > with > > > > > the GTKSilver stuff. Here is my XAML
> > > > > > > I was playing around with the GTKSilver control to try to host > > > > > > > silverlight (XAML) content on the desktop. I was following the > > > > > > > documentation from here
> > > > > > > I couldn't get it to work and looking at the source in gtk.cs, > it > > > > > > > looks like there is an old P-Invoke for xaml_create_from_file. > The > > > > > > > args have since changed and it currently fails. I changed the > > > > > > > definition and recompiled GTKSilver and xaml_create_from_file > > > > > > > succeeded but I get other issues.
> > > > > > > I recently tried re-syncing to see if this issue has been > fixed. I > > > > > > > built Mono and Olive but cannot build Moon due to the error:
> > > > > > > smcs -debug -out:moonlight.exe ./moonlight.cs -pkg:silver - > > > > > > > pkg:agmonosilver > > > > > > > ./moonlight.cs(49,22): error CS0234: The type or namespace > name > > > `Xaml' > > > > > > > does not exist in the namespace `Mono'. Are you missing an > > > assembly > > > > > > > reference? > > > > > > > Compilation failed: 1 error(s), 0 warnings
> > > > > > > Any help getting GTKSilver to work would be appreciated.
> > > > > > > Brock- Hide quoted text -
> > > > > > - Show quoted text -- Hide quoted text -
> I am considering contributing to the Moonlight Project and have been looking > at daily builds in comparison with lots of demos that I am doing on my > Silverlight Tour. I can't tell from the build what is considered done and > what isn't (or where to list bugs if its that late in the process yet). Can > someone point me to the right place, perhaps a Bugzilla instance?
--host doesn't mean an http url. it's meant to provide a single hosting environment for potentially many local .xaml files to run in. so we wouldn't start multiple mono vms.
mopen definitely does work for 1.1 silverlight things. Unfortunately, we have sort of a busted build requirement for the code. You'll have to compile the code locally to use it with mopen. Mopen requires that your silverlight code is compiled with gmcs. If you want to compile assemblies that are compatible with MS's silverlight 1.1 (and can be used by the plugin), you must compile with smcs.
> This mopen thing works. That is what I was trying to do. It seems to > me that right now it will only work with Silverlight 1.0 stuff (.xaml > file only). Meaning I can do [fopen Page.xaml] for example and it > works. There doesn't seem to be any way currently to use the code > behind model of Silverlight 1.1 with mopen. I did see the --host > option but it isn't implemented yet. Is this supposed to work like > [fopen --host http://onioncreeksoftware.com/] and be able to host > Silverlight 1.1 apps?
> Brock
> On Oct 2, 2:01 pm, "Chris Toshok" <tos...@gmail.com> wrote: > > the trouble is that there is code presently in tools/mopen/mopen.cs > > (LoadXaml) that should really live in the gtksilver stuff. None of our > > examples, tools, or anything, uses GtkSilver.LoadFile
> > On 10/2/07, breeve <brock.re...@gmail.com> wrote:
> > > The code is using GtkSilver. That internal Moonlight code above is > > > commented out. I was just calling the internal Moonlight API as a test > > > to debug issues (sorry this is confusing, my bad).
> > > You should be able to test by compiling test.cs above doing
> > > On Oct 2, 11:48 am, "Miguel de Icaza" <miguel.de.ic...@gmail.com> > > > wrote: > > > > You should not be calling the internal Moonlight API, we provide a > > > managed > > > > library that you can access with -pkg:gtksilver or something like > that.
> > > > On 10/2/07, breeve <brock.re...@gmail.com> wrote:
> > > > > I was able to get my build working, but am still having problems > with > > > > > the GTKSilver stuff. Here is my XAML
> > > > > > > I was playing around with the GTKSilver control to try to host > > > > > > > silverlight (XAML) content on the desktop. I was following the > > > > > > > documentation from here
> > > > > > > I couldn't get it to work and looking at the source in gtk.cs, > it > > > > > > > looks like there is an old P-Invoke for xaml_create_from_file. > The > > > > > > > args have since changed and it currently fails. I changed the > > > > > > > definition and recompiled GTKSilver and xaml_create_from_file > > > > > > > succeeded but I get other issues.
> > > > > > > I recently tried re-syncing to see if this issue has been > fixed. I > > > > > > > built Mono and Olive but cannot build Moon due to the error:
> > > > > > > smcs -debug -out:moonlight.exe ./moonlight.cs -pkg:silver - > > > > > > > pkg:agmonosilver > > > > > > > ./moonlight.cs(49,22): error CS0234: The type or namespace > name > > > `Xaml' > > > > > > > does not exist in the namespace `Mono'. Are you missing an > > > assembly > > > > > > > reference? > > > > > > > Compilation failed: 1 error(s), 0 warnings
> > > > > > > Any help getting GTKSilver to work would be appreciated.
> > > > > > > Brock- Hide quoted text -
> > > > > > - Show quoted text -- Hide quoted text -