build.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. MZX can currently be built on Windows (9x/2k/XP), Linux, MacOS X,
  2. and PSP.
  3. How to build MegaZeux 2.81d+:
  4. First, you need the source for MZX, obviously, which can be found on
  5. http://www.digitalmzx.net/ and http://sourceforge.net/projects/megazeux/
  6. Next, you need the correct libraries installed, which are the
  7. following:
  8. SDL: http://www.libsdl.org/
  9. libogg/libvorbis: http://xiph.org/downloads/
  10. Now, you need to run the config script config.sh to begin the
  11. installation process; this is only absolutely necessary on
  12. non-Windows platforms, but is recommended universally. For Windows you
  13. can run it in msys's rxvt shell. Run as following:
  14. config.sh <platform> <prefix>
  15. Where platform is win32, linux, macos, or psp and prefix is
  16. typically /usr (supply the prefix where system directories lib,
  17. include, bin, etc are located).
  18. Now, you need GCC installed and GNU make to actually build. Currently,
  19. GCC on Windows and Linux are supported. Type make and if you wish to
  20. install to /${PREFIX}/bin follow it with make install. As of this
  21. writing, the only compiler that has been tested on Windows is mingw.
  22. I suggest anyone who's interested in building on Windows uses it:
  23. http://www.mingw.org/
  24. How to build for PSP:
  25. To build for PSP you will want the PSP toolchain installed,
  26. instructions on how to do so can be found at wiki.pspdev.org. For
  27. Windows this should be installed under the Cygwin environment; an
  28. alternative is DevkitPro which can be installed under mingw but this
  29. is less supported and has only more recently matured and thus I haven't
  30. been able to work with it yet.
  31. For PSP builds you will need the PSP distribution of SDL and
  32. libTremor instead of ogg/vorbis. Both can be found via SVN at
  33. svn://svn.ps2dev.org
  34. Once the proper libraries are installed run MZX's config script as
  35. follows:
  36. config.sh psp `psp-config --psp-prefix`
  37. Then a simple make will generate a PSP 1.0 EBOOT.PBP file.
  38. If you have any other questions, e-mail me at exophase@gmail.com.
  39. If you have any questions regarding building on Linux, Mac OS X or other
  40. UNIX based operating systems, please e-mail alistair@devzero.co.uk.