| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- ---------------------------------Compiling runtime-------------------------------------
- - Retrieve Mono 3.8.0 source from GitHub (NOT the tar ball)
- - Tar ball has a broken Visual Studio build. (You can try to fix it, likely only a small modification. I didn't bother)
- - Open in VS2012 as is, or open in VS2013 and upgrade all projects to v120 toolkit
- - Add "mono/utils/mono-conc-hashtable.c" and "mono/utils/mono-conc-hashtable.c" to libmonoutils project
- - For x64 release version make sure to disable "omit stack frames" optimization
- - Move & modify:
- MonoClass* mono_class_bind_generic_parameters (MonoClass *klass, int type_argc, MonoType **types, gboolean is_dynamic) MONO_INTERNAL;
- from object-internals.h
- to:
- MONO_API MonoClass* mono_class_bind_generic_parameters (MonoClass *klass, int type_argc, MonoType **types, mono_bool is_dynamic);
- in object.h
- In reflection.c change:
- MonoClass* mono_class_bind_generic_parameters (MonoClass *klass, int type_argc, MonoType **types, gboolean is_dynamic)
- to:
- MonoClass* mono_class_bind_generic_parameters (MonoClass *klass, int type_argc, MonoType **types, mono_bool is_dynamic)
- - Compile mono project. You will receive mono-2.0.dll and mono-2.0.lib and output.
- - Add mono-2.0.dll to (BansheeRootDir)/bin/(Platform)/(Configuration)
- - Add mono-2.0.lib to (BansheeRootDir)/Dependencies/lib/(Platform)/(Configuration)
- - TODO - mono.exe and mono compiler are not used at the moment. Update docs once they are.
- --------------------------------Compiling libraries-------------------------------------
- - Install Mono 3.2.3 (This is the latest binary release for Windows, you can use newer if there is one).
- - Add the "(InstallDir)\Mono-3.2.3\bin" to your PATH environment variable.
- - Install Cygwin 32-bit version using these command line parameters:
- setup-x86.exe -qnNdO -R "C:\cygwin" -s "http://cygwin.mirror.constant.com"
- -l "C:\cygwin\var\cache\setup" -P autoconf -P automake -P bison -P gcc-core
- -P gcc-g++ -P mingw-runtime -P mingw-binutils -P mingw-gcc-core -P mingw-gcc-g++
- -P mingw-pthreads -P mingw-w32api -P libtool -P make -P python -P gettext-devel
- -P gettext -P intltool -P libiconv -P pkg-config -P git -P wget -P curl
- - Configure Cygwin mounting options by editing /etc/fstab and add "noacl" option like so:
- - "none /cygdrive cygdrive binary,noacl,posix=0,user 0 0"
- - Retrieve Mono 3.8.0 source tar ball (NOT from git hub, opposite from above.
- - Github one has a broken Cygwin build. (You can try to fix it, likely only a small modification. , I didn't bother)
- - Go to your mono 3.8 source directory in Cygwin and enter these commands in order:
- - "./autogen.sh --prefix="(OutputDir)" --with-preview=yes"" (Replace (OutputDir) with a folder where you want to output the binaries, e.g. "C:\MonoInstall")
- - "./configure --host=i686-pc-mingw32"
- - "make"
- - "make install"
- - Your built mono should now be output to (OutputDir) folder. (If it's not in that folder
- then check your Cygwin install folder under /usr/local)
- - Copy contents of (OutputDir)/include/mono/mono-2.0/mono to (BansheeRootDir)/Dependencies/Include/Mono
- - Make sure to modify "object.h" as you did above when building the binaries
- - Copy folders (OutputDir)/etc and (OutputDir)/lib folders into (BansheeRootDir)/bin/Mono
- - TODO - Not all files from /lib are needed, but I haven't yet determined which are
|