Development: Compiling the code

From OpenMPT Wiki
(Redirected from Compiling the code)
Jump to navigation Jump to search

If you want to get involved with OpenMPT development, or just want to compile your own version of the tracker, here are some hints on how to get started.

Prerequisites[edit]

  • Visual Studio 2017 or later (any edition will work).
  • Optional TortoiseSVN or any other SVN client. You will need this to get the latest code revision via the SVN system. The description below is written for TortoiseSVN. You can also download a code snapshot if you do not want to install a SVN client (see below).

Getting the code[edit]

Using TortoiseSVN: First, you have to create a directory on your hard drive in which you want to place the source code. Right-click on the directory and choose the context menu entry “SVN Checkout...”. The “Repository URL” to fill in is https://source.openmpt.org/svn/openmpt/trunk/OpenMPT/. After clicking the OK button, all files will be downloaded.

- or -

Tarball: If you do not want to use an SVN client, simply get the GNU tarball from the web interface - click the “Download” link next to the OpenMPT folder to retrieve it.

Once you have checked out, you can always right-click on the directory and choose “SVN Update...” to get the most recent revision of the code. This will of course not work with the tarball method, you will have to download a new tarball after every commit in that case.

Compiling the code[edit]

Detailed instructions on how to obtain some of the optional dependencies and how to compile the code can be found in the README.md file found at the project′s root directory.

Staying up to date[edit]

If you want to be notified of new code commits, you can import the RSS feed into your favourite RSS reader or subscribe to the SVN mailing list.