The Microsoft .Net Framework 1.1 | DotGNU | Mono | Delphi 2005 | |
platforms |
Win98, ..., XP | Win XP, Linux | Win XP, Linux |
Win |
GUI |
WinForms |
WinForms not complete, but working |
No published binaries for WinForms |
WinForms, VCL.Net (VCL.net depends on win32) |
To compile a program on the command line | you need to set the PATH environment variable to the directory where the csc.exe compiler is:
set PATH=%PATH%;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 |
Start the Build Environment (basically a command prompt with prepared environment variables) from the DotGNU/Portable.Net program group in the startmenu. | Start the Mono command prompt from the start menu |
PATH: C:\Program Files\Borland\BDS\3.0\Bin |
To compile your c# program: |
csc hello.cs |
cscc hello.cs -o hello.exe |
mcs hello.cs |
dccil |
You execute the program: |
hello.exe |
ilrun hello.exe |
mono hello.exe |
hello.exe |
ilrun Project1.exe
metadata error: could not locate the .jar central directory
metadata error: could not locate the .jar central directory
metadata error: could not locate the .jar central directory
Project1.exe: invalid metadata in image
export PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH for csc.exe: export PATH=/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v1.1.4322:$PATH export PATH=/cygdrive/c/timotheus/mono/mcs/tools/resgen:$PATH cd libgdiplus ./autogen.sh Problem was: pkg-config complained: Did not find Glib >= 2.2.3 Solution: try to run: pkg-config --atleast-version 2.2.3 glib-2.0 Download the necessary libraries, all called glib and glib2, and the glib-devel libs to compile cairo on its own, you need to add a line perhaps you need to add the line to autogen.sh: ACLOCAL_FLAGS="-I /usr/share/aclocal" http://www.mono-project.com/contributing/compiling.html#manually download http://www.go-mono.com/archive/glib-2.0.4-20020703.zip and http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip iconv as well and unzip them into the cygwin directory include => /usr/include share => /usr/share lib? change C:\cygwin\lib\pkgconfig\glib-2.0.pc first line to prefix=/usr instead of target configure: error: Your version of gwin32.h is broken and will cause compilation errors when building mono. Please fix it by deleting the line: '# define ftrun cate...' from '/usr/include/glib-2.0/glib/gwin32.h' then re-run configure. the dlls go into the bin directory, not lib don't forget the dlls: mcs swfbuttons.cs -r System.Windows.forms.dll -r System.Drawing
yum install subversion yum install gcc yum install bison yum install glib-devel yum install glib2-devel svn co ..../trunk/mcs wget http://www.mono-project.com/contributing/mono-build.sh run that add /home/timop/mono/install/bin to $PATH add /home/timop/mono/install/lib to $LD_LIBRARY_PATH don't forget to copy the class libraries to /home/timop/mono/install/lib The mono build scripts do not include the mcs binaries nor does it build mcs for you. You need to build mcs from cvs. Once mcs built, then you can: cp ~/mono/mcs/mcs/mcs* ~/mono/install/bin cp ~/mono/mcs/class/lib/* ~/mono/install/lib need to copy file /usr/X11R6/lib/libX11.so.6 to mono/install/lib, or change ld library path? need to add line dllmap dll="libX11" target="libX11.so.6" to file install/etc/mono/config to avoid message dllnotfoundexception libX11