Mono-3.8.0-IntegrationGuide.txt 3.3 KB

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