[MonoDevelop] Problems Compiling MonoDevelop

Liam (Kamatsu) whiteslug at gmail.com
Fri Feb 29 10:42:11 EST 2008


Okay, I tried doing as you said, and I added the etch-backports 
repository from debian backports to my Ubuntu installation, seeing as I 
figured they were similar enough, and upgraded to Mono 1.2.6.

I rebuilt mono-addins 0.3 with the new Mono and installed it, and then I 
tried building MonoDevelop, here's what I get.

./MonoDevelop.Ide.Gui/IdeStartup.cs(375,22): warning CS0618: 
`Mono.GetOptions.Options' is obsolete: `This class is being obsoleted, 
there is no replacement, we suggest you use your own option parsing'
./MonoDevelop.Ide.Dom.Output/NetAmbience.cs(36,30): warning CS0108: 
`MonoDevelop.Ide.Dom.Output.NetAmbience.nullString' hides inherited 
member `MonoDevelop.Ide.Dom.Output.Ambience.nullString'. Use the new 
keyword if hiding was intended
./MonoDevelop.Ide.Dom.Output/Ambience.cs(50,34): (Location of the symbol 
related to previous warning)
./MonoDevelop.Ide.Gui/MonoDevelopTreeView.cs(352,37): warning CS0114: 
`MonoDevelop.Ide.Gui.MonoDevelopTreeView.Dispose()' hides inherited 
member `Gtk.Object.Dispose()'. To make the current member override that 
implementation, add the override keyword. Otherwise add the new keyword
/usr/lib/mono/gac/gtk-sharp/2.10.0.0__35e10195dab3c99f/gtk-sharp.dll 
(Location of the symbol related to previous warning)
./MonoDevelop.Ide.Gui/DocumentSwitcher.cs(72,33): error CS0246: The type 
or namespace name `TreeIter' could not be found. Are you missing a using 
directive or an assembly reference?
./MonoDevelop.Ide.Gui/DocumentSwitcher.cs(74,41): error CS0246: The type 
or namespace name `Pad' could not be found. Are you missing a using 
directive or an assembly reference?
./MonoDevelop.Ide.Gui/DocumentSwitcher.cs(87,33): error CS0246: The type 
or namespace name `Document' could not be found. Are you missing a using 
directive or an assembly reference?
./MonoDevelop.Ide.Gui.Pads/DefaultMonitorPad.cs(95,33): warning CS0612: 
`Gtk.Toolbar.IconSize' is obsolete
./MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs(106,33): warning CS0612: 
`Gtk.Toolbar.IconSize' is obsolete
./MonoDevelop.Ide.Gui.Pads/InternalLogPad.cs(115,33): warning CS0612: 
`Gtk.Toolbar.IconSize' is obsolete
./MonoDevelop.Ide.Gui.Pads/SearchResultPad.cs(75,33): warning CS0612: 
`Gtk.Toolbar.IconSize' is obsolete
./MonoDevelop.Ide.Gui.Pads/TaskListPad.cs(92,33): warning CS0612: 
`Gtk.Toolbar.IconSize' is obsolete
./MonoDevelop.Ide.Gui/IdeStartup.cs(377,24): warning CS0618: 
`Mono.GetOptions.Options' is obsolete: `This class is being obsoleted, 
there is no replacement, we suggest you use your own option parsing'
Compilation failed: 3 error(s), 9 warnings
make[4]: *** [../../../build/bin/MonoDevelop.Ide.dll] Error 1
make[4]: Leaving directory 
`/home/kamatsu/mono-addins-0.3/monodevelop-0.19/svn/monodevelop/main/src/core/MonoDevelop.Ide'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/home/kamatsu/mono-addins-0.3/monodevelop-0.19/svn/monodevelop/main/src/core'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/home/kamatsu/mono-addins-0.3/monodevelop-0.19/svn/monodevelop/main/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/kamatsu/mono-addins-0.3/monodevelop-0.19/svn/monodevelop/main'
make: *** [all-recursive] Error 1

Looks roughly the same as what I got before.. configure output:

monodevelop-0.19/svn/monodevelop$ ./configure --prefix=`pkg-config 
--variable=prefix mono`
Configuring package: main
-------------------------
Configuration options:
Running aclocal  ...
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of 
AM_PATH_LIBMCRYPT
/usr/share/aclocal/libmcrypt.m4:17:   run info '(automake)Extending aclocal'
/usr/share/aclocal/libmcrypt.m4:17:   or see 
http://sources.redhat.com/automake/automake.html#Extending-aclocal
Running automake --gnu  ...
Running autoconf ...
Running ./configure --enable-maintainer-mode --enable-compile-warnings 
--prefix=/usr ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for mono... /usr/bin/mono
checking for gmcs... /usr/bin/gmcs
checking for update-mime-database... /usr/bin/update-mime-database
checking for update-desktop-database... /usr/bin/update-desktop-database
checking for pkg-config... /usr/bin/pkg-config
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking pkg-config is at least version 0.9.0... yes
checking for UNMANAGED_DEPENDENCIES_MONO... yes
checking for mono... /usr/bin/mono
checking for gmcs... /usr/bin/gmcs
checking for MONO_ADDINS... yes
checking for MONO_ADDINS_SETUP... yes
checking for MONO_ADDINS_GUI... yes
checking for GLIB_SHARP... yes
checking for GTK_SHARP... yes
checking for GLADE_SHARP... yes
checking for MONODOC... yes
checking for MONO_CAIRO... yes
checking for GNOME_SHARP... yes
checking for GNOME_VFS_SHARP... yes
checking for GCONF_SHARP... yes
configure: creating ./config.status
config.status: creating build/data/Makefile
config.status: creating build/data/resources/css/Makefile
config.status: creating build/data/resources/Makefile
config.status: creating build/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/Mono.Cecil/Makefile
config.status: creating src/Makefile
config.status: creating src/core/Makefile
config.status: creating src/core/NRefactory/Makefile
config.status: creating src/core/MonoDevelop.Core/AssemblyInfo.cs
config.status: creating src/core/MonoDevelop.Core/Makefile
config.status: creating src/core/MonoDevelop.Core.Gui/AssemblyInfo.cs
config.status: creating src/core/MonoDevelop.Core.Gui/Makefile
config.status: creating src/core/MonoDevelop.Projects/AssemblyInfo.cs
config.status: creating 
src/core/MonoDevelop.Projects/MonoDevelop.Projects.dll.config
config.status: creating src/core/MonoDevelop.Projects/Makefile
config.status: creating src/core/MonoDevelop.Projects.Gui/AssemblyInfo.cs
config.status: creating src/core/MonoDevelop.Projects.Gui/Makefile
config.status: creating src/core/MonoDevelop.Documentation/AssemblyInfo.cs
config.status: creating src/core/MonoDevelop.Documentation/Makefile
config.status: creating src/core/MonoDevelop.Ide/AssemblyInfo.cs
config.status: creating src/core/MonoDevelop.Ide/Makefile
config.status: creating src/core/MonoDevelop.Dock/Makefile
config.status: creating src/core/MonoDevelop.Components/AssemblyInfo.cs
config.status: creating src/core/MonoDevelop.Components/Makefile
config.status: creating src/core/MonoDevelop.Startup/AssemblyInfo.cs
config.status: creating src/core/MonoDevelop.Startup/Makefile
config.status: creating src/tools/Makefile
config.status: creating src/tools/mdhost/Makefile
config.status: creating src/tools/mdrun/Makefile
config.status: creating src/tools/SharpCoco/Makefile
config.status: creating src/addins/Makefile
config.status: creating src/addins/MonoDeveloperExtensions/Makefile
config.status: creating src/addins/MonoDeveloperExtensions/NUnit/Makefile
config.status: creating src/addins/NUnit/Makefile
config.status: creating src/addins/VersionControl/Diff/Makefile
config.status: creating src/addins/VersionControl/DiffWidget/Makefile
config.status: creating 
src/addins/VersionControl/MonoDevelop.VersionControl/Makefile
config.status: creating 
src/addins/VersionControl/MonoDevelop.VersionControl.Subversion/Makefile
config.status: creating src/addins/VersionControl/Makefile
config.status: creating src/addins/CSharpBinding/Makefile
config.status: creating src/addins/CSharpBinding/Autotools/Makefile
config.status: creating src/addins/ILAsmBinding/Makefile
config.status: creating src/addins/VBNetBinding/Makefile
config.status: creating src/addins/MonoDevelop.SourceEditor/AssemblyInfo.cs
config.status: creating src/addins/MonoDevelop.SourceEditor/Makefile
config.status: creating src/addins/prj2make-sharp-lib/AssemblyInfo.cs
config.status: creating src/addins/prj2make-sharp-lib/Makefile
config.status: creating src/addins/WelcomePage/Makefile
config.status: creating src/addins/ChangeLogAddIn/Makefile
config.status: creating src/addins/MonoDevelop.GtkCore/Makefile
config.status: creating src/addins/MonoDevelop.GtkCore/lib/Makefile
config.status: creating src/addins/AspNetAddIn/Makefile
config.status: creating src/addins/MonoDevelop.Autotools/Makefile
config.status: creating src/addins/MonoDevelop.DesignerSupport/Makefile
config.status: creating src/addins/MonoDevelop.WebReferences/Makefile
config.status: creating src/addins/Deployment/Makefile
config.status: creating 
src/addins/Deployment/MonoDevelop.Deployment/Makefile
config.status: creating 
src/addins/Deployment/MonoDevelop.Deployment.Linux/Makefile
config.status: creating src/addins/MonoDevelop.Gettext/Makefile
config.status: creating src/addins/MonoDevelop.RegexToolkit/Makefile
config.status: creating src/addins/CBinding/Makefile
config.status: creating src/addins/SourceEditor2/AssemblyInfo.cs
config.status: creating src/addins/SourceEditor2/Makefile
config.status: creating src/addins/GnomePlatform/Makefile
config.status: creating src/addins/MacPlatform/Makefile
config.status: creating src/addins/MonoDevelop.AssemblyBrowser/Makefile
config.status: creating src/addins/Mono.Texteditor/Makefile
config.status: creating src/addins/MonoDevelop.SourceEditor2/Makefile
config.status: creating Makefile
config.status: creating monodevelop
config.status: creating mdtool
config.status: creating monodevelop.pc
config.status: creating monodevelop-core-addins.pc
config.status: creating po/Makefile
config.status: creating man/Makefile
config.status: creating theme-icons/Makefile

Configuration summary

   * Installation prefix = /usr
   * C# compiler = /usr/bin/gmcs
   * Mono class library development extensions: yes
   * Version control support: yes
   *   Providers:
   *     Subversion: yes
   * ASP.NET project support: yes
   * Web References: yes
   * C/C++ project support: yes
   * GtkSourceView1: no
   * GtkSourceView2: no
   * Platform bindings: GNOME

Now type `make' to compile MonoDevelop
Configuring package: extras/JavaBinding
---------------------------------------
Configuration options:
Looking for required packages
Checking for package 'mono-addins'.. found.
Checking for package 'gtk-sharp-2.0'.. found.
Checking for package 'glade-sharp-2.0'.. found.
Checking for package 'monodevelop'.. found.

monodevelop-java has been configured with
        prefix = /usr
        config = DEBUG

Configuring package: extras/BooBinding
--------------------------------------
Configuration options:
Looking for required packages
Checking for package 'gtk-sharp-2.0'.. found.
Checking for package 'monodevelop'.. found.
Checking for package 'mono-addins'.. found.
Checking for package 'glib-sharp-2.0'.. found.
Checking for package 'monodevelop-core-addins'.. found.
Checking for package 'boo'.. found.
Checking for package 'gconf-sharp-2.0'.. found.
Checking for package 'gtksourceview-sharp-2.0'.. found.

monodevelop-boo has been configured with
        prefix = /usr
        config = DEBUG

Configuration Summary
---------------------

MonoDevelop has been configured with
    prefix = /usr
    profile = stable

Packages included in the build:
    main
    extras/JavaBinding
    extras/BooBinding

Do I need to do something after upgrading the packages? Because it seems 
like upgrading Mono made no difference.


Michael Hutchinson wrote:
> On Fri, Feb 29, 2008 at 7:33 AM, Liam (Kamatsu) <whiteslug at gmail.com> wrote:
>   
>> Hi, I posted this before I joined the list, and I figured I'd post it
>>  again with the correct email this time
>>
>>  I've been trying to compile MonoDevelop from SVN on my Ubuntu Gutsy 7.10
>>  installation.
>>
>>  I've gotten pretty far but have hit a stumbling block. MonoDevelop will
>>  ./configure okay, producing makefiles and such, but when I go to make,
>>  it eventually carks out with:
>>
>>  /usr/lib/mono/gac/gtk-sharp/2.10.0.0__35e10195dab3c99f/gtk-sharp.dll
>>  (Location of the symbol related to previous
>>  warning),./MonoDevelop.Ide.Gui/DocumentSwitcher.cs(72,33): error CS0246:
>>  The type or namespace name `TreeIter' could not be found. Are you
>>  missing a using directive or an assembly
>>  reference?,./MonoDevelop.Ide.Gui/DocumentSwitcher.cs(74,41): error
>>  CS0246: The type or namespace name `Pad' could not be found. Are you
>>  missing a using directive or an assembly
>>     
> <...>
>   
>>  Any ideas as to what I'm doing wrong?
>>     
>
> Assuming you're using Mono 1.2.4, it's probably the bug with that
> particular gmcs C# compiler version where "using" statements are
> ignored inside anonymous delegates. It will be fixed if you upgrade to
> a newer Mono, but if you're installing from source see
> http://mjhutchinson.com/journal/2007/11/08/how_not_break_mono first,
> and try to find packages if you can, e.g.
> http://www.viraptor.info/repo.
>
> To fix it with Mono 1.2.4, just fully qualify the type names wherever
> this happens, e.g. Gtk.TreeIter instead of TreeIter.  We'd be happpy
> to commit a patch :-)
>
>   




More information about the Monodevelop-list mailing list