[MonoDevelop] Error compiling GTK# apps with Mono/MonoDevelop on Windows
Lluis Sanchez Gual
lluis at novell.com
Sat Oct 3 07:40:53 EDT 2009
Try installing the latest installer from:
http://monodevelop.com/Download/Trunk_Builds
El dv 02 de 10 de 2009 a les 19:17 +0200, en/na Fahim Payab va escriure:
> i am using Windows Xp Professional , Service Pack 3.
>
> On Fri, Oct 2, 2009 at 7:08 PM, Lluis Sanchez Gual <lluis at novell.com>
> wrote:
> Which operating system?
>
> El dv 02 de 10 de 2009 a les 07:09 -0700, en/na Storazi va
> escriure:
> > I am able to compile my web application without errors or
> warnings but when i
> > RUN the application it says "The "xsp2" web server cannot be
> started. please
> > ensure that it is installed"
> > The xsp2 web server is installed and i can run it and it
> works fine. but
> > cannot RUN The application on MONODEVELOP.
> >
> > please advise !
> >
> >
> > jmalcolm wrote:
> > >
> > > Here is the build output from a simple, mostly
> auto-generated app that
> > > compiles fine if I specify .NET but fails as below if I
> specify Mono:
> > >
> > > Building: HelloGTK (Debug)
> > >
> > > Building Solution HelloGTK
> > >
> > > Building: HelloGTK (Debug)
> > >
> > > Performing main compilation...
> > >
> > > E:\Program Files\Mono-2.4.2.3\bin\gmcs.bat /noconfig
> "/out:E:\Documents
> > > and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\bin\Debug
> \HelloGTK.exe"
> > > "/r:System.dll"
> > > "/r:Mono.Posix.dll"
> > > /nologo
> > > /warn:4
> > > /debug:+
> > > /debug:full
> > > /optimize-
> > > /codepage:utf8
> > > "/define:DEBUG"
> > >
> > > /t:exe
> > > "/res:E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\gtk-gui
> \gui.stetic,gui.stetic"
> > > "E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\gtk-gui\generated.cs"
> > > "E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\MainWindow.cs"
> > > "E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\gtk-gui
> \MainWindow.cs"
> > > "E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\Main.cs"
> > > "E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\AssemblyInfo.cs"
> > >
> > > Try using -pkg:gtk-sharp
> > >
> > > Compilation failed: 1 error(s), 0 warnings
> > >
> > > E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\MainWindow.cs(2,7):
> error CS0246: The
> > > type or namespace name `Gtk' could not be found. Are you
> missing a using
> > > directive or an assembly reference?
> > >
> > >
> > > Build complete -- 1 error, 6 warnings
> > >
> > >
> > > ---------------------- Done ----------------------
> > >
> > >
> > > The reference 'gtk-sharp, Version=2.12.0.0,
> Culture=neutral,
> > > PublicKeyToken=35e10195dab3c99f' is not valid for the
> target framework of
> > > the project.
> > > The reference 'gdk-sharp, Version=2.12.0.0,
> Culture=neutral,
> > > PublicKeyToken=35e10195dab3c99f' is not valid for the
> target framework of
> > > the project.
> > > The reference 'glib-sharp, Version=2.12.0.0,
> Culture=neutral,
> > > PublicKeyToken=35e10195dab3c99f' is not valid for the
> target framework of
> > > the project.
> > > The reference 'glade-sharp, Version=2.12.0.0,
> Culture=neutral,
> > > PublicKeyToken=35e10195dab3c99f' is not valid for the
> target framework of
> > > the project.
> > > The reference 'pango-sharp, Version=2.12.0.0,
> Culture=neutral,
> > > PublicKeyToken=35e10195dab3c99f' is not valid for the
> target framework of
> > > the project.
> > > The reference 'atk-sharp, Version=2.12.0.0,
> Culture=neutral,
> > > PublicKeyToken=35e10195dab3c99f' is not valid for the
> target framework of
> > > the project.
> > > Build: 1 error, 6 warnings
> > >
> > > =====================================
> > >
> > > Do not hassle me about "Administrator". I thought maybe
> it might work
> > > from this account. Old school Windows...
> > >
> > > Here is the output when I try to build the same project
> on .NET:
> > >
> > > Building: HelloGTK (Debug)
> > >
> > > Building Solution HelloGTK
> > >
> > > Building: HelloGTK (Debug)
> > >
> > > Performing main compilation...
> > >
> > > E:\WINNT\Microsoft.NET\Framework\v2.0.50727
> \csc.exe /noconfig
> > > "/out:E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\bin\Debug
> \HelloGTK.exe"
> > > "/r:System.dll"
> > > "/r:E:\Program Files\GtkSharp\2.12\lib\Mono.Posix
> \Mono.Posix.dll"
> > > "/r:E:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0
> \gtk-sharp.dll"
> > > "/r:E:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0
> \gdk-sharp.dll"
> > > "/r:E:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0
> \glib-sharp.dll"
> > > "/r:E:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0
> \glade-sharp.dll"
> > > "/r:E:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0
> \pango-sharp.dll"
> > > "/r:E:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0
> \atk-sharp.dll"
> > > /nologo
> > > /warn:4
> > > /debug:+
> > > /debug:full
> > > /optimize-
> > > "/define:DEBUG"
> > >
> > > /t:exe
> > > "/res:E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\gtk-gui
> \gui.stetic,gui.stetic"
> > > "E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\gtk-gui\generated.cs"
> > > "E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\MainWindow.cs"
> > > "E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\gtk-gui
> \MainWindow.cs"
> > > "E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\Main.cs"
> > > "E:\Documents and Settings\Administrator\My
> > > Documents\Projects\HelloGTK\HelloGTK\AssemblyInfo.cs"
> > > /fullpaths
> > >
> > > Build complete -- 0 errors, 0 warnings
> > >
> > > ---------------------- Done ----------------------
> > >
> > > Build successful.
> > >
> > >
> > >
> >
>
>
>
>
>
> --
> Rahimzai
More information about the Monodevelop-list
mailing list