build.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. BUILDING MEGAZEUX
  2. MegaZeux can currently be built for Microsoft Windows, Linux, MacOS X,
  3. OpenBSD, FreeBSD, OpenSolaris, HaikuOS, Android, GP2X, PSP, NDS or Wii.
  4. On MacOS X, universal binaries can be created.
  5. GCC and Microsoft compilers are supported.
  6. On all platforms, the editor, help system, audio, and various renderers
  7. can be disabled to reduce program size or required dependencies.
  8. For architecture specific build instructions please see arch/$ARCH/README
  9. The following instructions are generic for all platforms.
  10. DEPENDENCIES
  11. MegaZeux depends on only three libraries with the most basic configuration.
  12. These are the SDL, ogg and vorbis libraries. Some of the ports (Wii, NDS,
  13. Android) do not require SDL. Some of the ports may substitute Ogg/Vorbis
  14. with Tremor.
  15. SDL: http://www.libsdl.org/
  16. libogg/libvorbis: http://xiph.org/downloads/
  17. Installation of these libraries is not covered in this document, but on
  18. many platforms there are pre-built binaries available. Under Linux, these
  19. libraries will already be installed, but you may want to install the -dev
  20. packages:
  21. libogg-dev, libvorbis-dev, libsdl1.2-dev (Debian/Ubuntu)
  22. MegaZeux has a slew of additional features that have more dependencies.
  23. On X11 platforms, the xorg-dev package should be installed to enable
  24. clipboard support. Additionally libpng can be used on all platforms
  25. to enable PNG (as opposed to BMP) screenshots.
  26. CONFIGURING MEGAZEUX
  27. All platforms must first invoke the config.sh script to configure the
  28. build system. Type "./config.sh" inside a POSIX sh compatible shell
  29. environment (on Windows, install MSYS/MINGW) to get more usage info.
  30. A normal compile line for Windows might be:
  31. ./config.sh --platform win32 --disable-libpng
  32. BUILDING MEGAZEUX
  33. Now, you need GNU GCC and GNU make to actually build. Type make and
  34. if you wish to install to ${PREFIX}/bin follow it with make install.
  35. The install target is only supported on Linux. The "make build" and
  36. "make archive" targets can be used to build ZIPs containing binary
  37. builds of MegaZeux, and is the preferred means of distribution.
  38. This method is supported on all supported platforms.
  39. On Debian Linux, DEB files can be generated with a single command.
  40. See debian/README for more information.