1
0
mirror of https://github.com/minetest-mods/irc.git synced 2025-01-23 13:50:17 +01:00
1 Compiling
Diego Martínez edited this page 2013-10-26 12:56:43 -07:00

Make sure you have CMake, and of course, a C compiler, on your system before proceeding.

For Windows, try MinGW32. For Unix-based systems, you should not have any problems with the C compiler since there's one (almost) always available. Puppy Linux users of course need a separate devx.sfs (from the same place where you got the Puppy ISO), since vanilla Puppy does not come with gcc. See your Puppy docs for more info about how to install additional SFS files.

If you are impatient:

git clone https://github.com/kaeza/minetest-irc.git \
  && cd minetest-irc \
  && git submodule update --init \
  && ./quick_install.sh /path/to/mods

Please change /path/to/mods to fit your install of Minetest.

To compile and pack the mod:

  • Open a command prompt/terminal and CD to the minetest-irc directory.
  • (optional) Create a directory named Build, and CD into it.
  • Run CMake to generate the build system (see your CMake docs for more information about command line options, in particular the -G option).
  • Use the build tool for the generated build system to compile the native library. For example, if using Microsoft Visual Studio, open the generated workspace and build from there. If using make, just run make from within the Build directory.
  • After building you will have a folder named irc in your build folder. Move that to your mod folder.

Installing

Just put the created irc directory in any of the directories where Minetest looks for mods. For more information, see here.