[MonoDevelop] Gtk# project with parallel mono environment
zeno490 at gmail.com
Sun Jun 6 14:03:13 EDT 2010
Posting here this in case someone has this issue again.
Following this guide helped:
The main thing I can see that was missing is that most of the gnome dev
packages are required, specially glade#. Without glade#, gtk# projects are
not generated properly and the designer doesn't work.
However, libxul-dev is broken atm on ubuntu so whatever depends on it might
not work (thankfully i don't require it).
All fixed now.
On Fri, Jun 4, 2010 at 10:45 PM, Nicholas Frechette <zeno490 at gmail.com>wrote:
> I took a look at that section, modified my environment script accordingly
> however, the same still happens.
> My source script looks as follow, and find attached a stdout/stderr log of
> what happens when I open monodevelop, create a new gtk# project and attempt
> to open a designer view.
> export MONO_GAC_PREFIX=$MONO_PREFIX
> export DYLD_LIBRARY_PATH=$MONO_PREFIX/lib:$DYLD_LIBRARY_PATH
> export LD_LIBRARY_PATH=$MONO_PREFIX/lib:$LD_LIBRARY_PATH
> export C_INCLUDE_PATH=$MONO_PREFIX/include:$GNOME_PREFIX/include
> export ACLOCAL_PATH=$MONO_PREFIX/share/aclocal
> PS1="[mono] \w @ "
> Note that I do see that it fails to find glade# when i build gtk# but it
> finds it when I build monodevelop... through the /usr/lib/pkgconfig
> Setting MONO_GAC_PREFIX in the way I did above doesn't seem to help even
> though it is 'not empty'.
> On Tue, Jun 1, 2010 at 10:45 PM, Michael Hutchinson <
> m.j.hutchinson at gmail.com> wrote:
>> On Tue, Jun 1, 2010 at 9:44 AM, Nicholas Frechette <zeno490 at gmail.com>
>> > Hi, I'm on ubuntu 9.10 and i'm trying to create a gtk# project.
>> > I've installed mono 2.6 from sources in a parallel environment as per:
>> > http://patrick.qmtech.net/blog/?p=14
>> > After wards, i've built/installed from source the following using the
>> > 2.6 environment (in order listed):
>> > mono-addins 0.4
>> > gtk# 2.12.10 (i've tried with 2.12.9 as well with the same result)
>> > monodevelop 2.2.2 (I also tried trunk a few days ago and the same issue
>> > would happen)
>> > I launch monodevelop using the 2.6 mono environment and I get the
>> > Upon launching, I get a dialog telling me an addin is having problems
>> > does not list a name, if i expand it, i see:
>> > Error: Error while getting object for node in path
>> > '/MonoDevelop/Core/PlatformService'.
>> > Exception: System.TypeLoadException: Could not load type
>> > 'MonoDevelop.Platform.Gnome' from assembly 'GnomePlatform,
>> > Culture=neutral, PublicKeyToken=null'.
>> > Coming from Mono.Addins.TypeExtensionNode.CreateInstance
>> My guess would be that you're running into
>> I.e. you were able to build the GNOME platform addin, because the
>> gnome# assemblies are discoverable via pkg-config at compile-time, but
>> they're not in the GAC, so it fails to load at runtime.
>> You might want to try setting MONO_GAC_PREFIX -
>> Michael Hutchinson
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Monodevelop-list