Fwd: [MonoDevelop] integrate glade3 with monodevelop
hemant
gethemant at gmail.com
Fri Jan 13 01:30:31 EST 2006
Ok..i will just do that. I am sorry, i am a bit lazy in reading README
files..
On 1/13/06, Lluis Sanchez <lluis at ximian.com> wrote:
>
> El vie, 13-01-2006 a las 00:52 +0000, hemant kumar escribió:
> > Ok Lluis, cool man...it seems that later on the bugs in gladeui-sharp
> > were fixed.
>
> Dude, let me stress that: THERE WERE NO BUGS IN GLADEUI-SHARP, THE
> PROBLEM WAS IN THE GTK-SHARP CODE GENERATOR.
>
> > Thanks for the great work.
> > now..i have the latest gtk-sharp from SVN and i was able to compile
> > everything(glade3,gladeui-sharp,monodevelop with glade3)
> > but at runtime i get an exception and monodevelop fails to start:
>
> Read the README file that you'll find in the Glade3 add-in directory and
> make sure you follow the described instructions. You need to apply a
> patch to glade3. If you don't apply that patch you may get exceptions
> like that one.
>
> Enjoy,
> Lluis.
>
> >
> >
> > System.Reflection.TargetInvocationException: Exception has been thrown
> > by the target of an invocation. ---> System.NullReferenceException:
> > Object reference not set to an instance of an object
> > in [0x0001d]
> > (at
> /opt/hulk/monodevelop/Extras/GladeAddIn/GladeAddIn.Gui/GladePropertiesPad.cs:19)
> GladeAddIn.Gui.GladePropertiesPad:.ctor ()
> > in <0x00000> <unknown method>
> > in (wrapper managed-to-native)
> > System.Reflection.MonoCMethod:InternalInvoke (object,object[])
> > in [0x00044]
> > (at /opt/hulk/mcs/class/corlib/System.Reflection/MonoMethod.cs:348)
> > System.Reflection.MonoCMethod:Invoke (System.Object obj, BindingFlags
> > invokeAttr, System.Reflection.Binder binder, System.Object[]
> > parameters, System.Globalization.CultureInfo culture)--- End of inner
> > exception stack trace ---
> >
> > in [0x0006b]
> > (at /opt/hulk/mcs/class/corlib/System.Reflection/MonoMethod.cs:354)
> > System.Reflection.MonoCMethod:Invoke (System.Object obj, BindingFlags
> > invokeAttr, System.Reflection.Binder binder, System.Object[]
> > parameters, System.Globalization.CultureInfo culture)
> > in [0x00007]
> > (at /opt/hulk/mcs/class/corlib/System.Reflection/MonoMethod.cs:359)
> > System.Reflection.MonoCMethod:Invoke (BindingFlags invokeAttr,
> > System.Reflection.Binder binder, System.Object[] parameters,
> > System.Globalization.CultureInfo culture)
> > in [0x00018]
> > (at /opt/hulk/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:78)
> System.Reflection.ConstructorInfo:Invoke (System.Object[] parameters)
> > in [0x00065] (at /opt/hulk/mcs/class/corlib/System/Activator.cs:249)
> > System.Activator:CreateInstance (System.Type type, Boolean nonPublic)
> > in [0x00002] (at /opt/hulk/mcs/class/corlib/System/Activator.cs:162)
> > System.Activator:CreateInstance (System.Type type)
> > in [0x00010]
> > (at
> /opt/hulk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.AddIns/AddIn.cs:485)
> MonoDevelop.Core.AddIns.AddIn:CreateObject (System.String className)
> > in [0x00033]
> > (at
> /opt/hulk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs:84)
> MonoDevelop.Ide.Codons.PadCodon:CreatePad ()
> > in [0x00002]
> > (at
> /opt/hulk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs:75)
> MonoDevelop.Ide.Codons.PadCodon:BuildItem (System.Object owner,
> System.Collections.ArrayList subItems,
> MonoDevelop.Core.AddIns.ConditionCollection conditions)
> > in [0x0005d]
> > (at
> /opt/hulk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.AddIns/DefaultAddInTreeNode.cs:181)
> MonoDevelop.Core.AddIns.DefaultAddInTreeNode:BuildChildItems (
> System.Object caller)
> > in [0x0001d]
> > (at
> /opt/hulk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.AddIns/AddInService.cs:226)
> MonoDevelop.Core.AddIns.AddInService:GetTreeItems (System.String path,
> System.Type itemType)
> > in [0x00014]
> > (at
> /opt/hulk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DefaultWorkbench.cs:537)
> MonoDevelop.Ide.Gui.DefaultWorkbench:InitializeLayout (IWorkbenchLayout
> workbenchLayout)
> > in [0x00040]
> > (at
> /opt/hulk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:69)
> MonoDevelop.Ide.Gui.Workbench:Initialize (IProgressMonitor monitor)
> > in [0x00028]
> > (at
> /opt/hulk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Ide.cs:81)
> MonoDevelop.Ide.Gui.IdeApp:Initialize (IProgressMonitor monitor)
> > in [0x002b8]
> > (at
> /opt/hulk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/IdeStartup.cs:140)
> MonoDevelop.Ide.Gui.IdeStartup:Run (System.String[] args)
> >
> >
> > Any idea how do i fix these?
> >
> > with regards
> > hemant
> >
> >
> > Lluis Sanchez wrote:
> > > Didn't you read my mail? You need the LATEST GTK-SHARP before
> compiling
> > > gladeui-sharp (and make sure you 'make clean' gladeui-sharp once you
> > > install the latest gtk-sharp).
> > >
> > > Lluis.
> > >
> > > El jue, 12-01-2006 a las 13:15 +0100, Marek Habersack escribió:
> > >
> > > > * Lluis Sanchez <lluis at ximian.com> [060112 12:40], scribbled:
> > > >
> > > > > El jue, 12-01-2006 a las 15:15 +0530, hemant escribió:
> > > > >
> > > > > > hey..i have already build glade3, but somebody(latexer) told me
> that
> > > > > > you should have gladeui-sharp to enable glade3 addin..so i
> proceed to
> > > > > > compile gladeui-sharp and i got compile time error in the
> generated
> > > > > > code. Then Johnp told me, that gladeui-sharp is broken.
> > > > > >
> > > > > > Look, gladeui-sharp is broken..i know it for sure...
> > > > > >
> > > > > Why are you so sure?
> > > > >
> > > > >
> > > > > > now the question is whether i need it for integrating glade3
> with
> > > > > > monodevelop or not?
> > > > > >
> > > > > Of course you need it. gladeui-sharp are the mono bindings for
> glade3.
> > > > >
> > > > >
> > > > > > if not, then ok. but whoever is the maintainer of
> gladeui-sharp,
> > > > > > should know that..its broken..
> > > > > >
> > > > > As Atsushi already said, it is not broken. You need the latest
> GTK#
> > > > > before compiling gladeui-sharp. There were some issues with the
> GAPI
> > > > > code generator that were recently fixed.
> > > > >
> > > > Are you certain that the changes are in the anonymous svn yet?
> Here's what
> > > > I'm gettin with both latest svn of mono and gladeui-sharp (mono
> compiled 5
> > > > minutes ago):
> > > >
> > > > mcs -nowarn:169 -unsafe -target:library
> > > > -r:/usr/local/devel/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0
> /pango-sharp.dll
> > > > -r:/usr/local/devel/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/atk-
> sharp.dll
> > > > -r:/usr/local/devel/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/gdk-
> sharp.dll
> > > > -r:/usr/local/devel/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/gtk-
> sharp.dll
> > > > -r:/usr/local/devel/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/glib-
> sharp.dll
> > > > \
> > > > AssemblyInfo.cs generated/*.cs -out:gladeui-sharp.dll
> > > > syntax error, got token `REF'
> > > > generated/PropertyClass.cs(122,17): error CS1002: Expecting `;'
> > > > syntax error, got token `REF'
> > > > generated/PropertyClass.cs(274,17): error CS1002: Expecting `;'
> > > > Compilation failed: 2 error(s), 0 warnings
> > > > make[2]: *** [gladeui-sharp.dll] Error 1
> > > >
> > > > after fixing both of the referenced lines above, I get:
> > > >
> > > > generated/Util.cs(121,37): warning CS0612: `Gtk.Combo' is obsolete
> > > > generated/GladeuiSharp.GetChildrenFuncNative.cs(17,12): error
> CS0030: Cannot
> > > > convert type `GLib.List' to `System.IntPtr'
> > > > Compilation failed: 1 error(s), 1 warnings
> > > > make: *** [gladeui-sharp.dll] Error 1
> > > >
> > > > Not sure how can I fix this one though :(
> > > > So it seems there still might be some bug lurking around in the
> anonymous svn.
> > > >
> > > > best regards,
> > > >
> > > > marek
> > > >
> > >
> > >
> > >
> >
>
>
--
I used to be indecisive..
but now i am not so sure...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20060113/2aa22c51/attachment.html
More information about the Monodevelop-list
mailing list