<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openmpt.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Enkore</id>
	<title>OpenMPT Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openmpt.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Enkore"/>
	<link rel="alternate" type="text/html" href="https://wiki.openmpt.org/Special:Contributions/Enkore"/>
	<updated>2026-05-01T14:59:56Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.openmpt.org/index.php?title=Development:_Compiling_the_code&amp;diff=1769</id>
		<title>Development: Compiling the code</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmpt.org/index.php?title=Development:_Compiling_the_code&amp;diff=1769"/>
		<updated>2013-09-18T20:27:58Z</updated>

		<summary type="html">&lt;p&gt;Enkore: portmidi is in VCS since .. git blame: manxorist 2013-09-06&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* Visual Studio 2008 SP1 or 2010 (at least Standard version is required; Express will not work)&lt;br /&gt;
* &#039;&#039;Optional&#039;&#039; [http://tortoisesvn.net/downloads.html TortoiseSVN] or any other SVN client. You will need this to get the latest code revision via the [http://en.wikipedia.org/wiki/Apache_Subversion 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).&lt;br /&gt;
&lt;br /&gt;
== Getting the code ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Using TortoiseSVN:&#039;&#039;&#039; 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 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://svn.code.sf.net/p/modplug/code/trunk/OpenMPT/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. After clicking the OK button, all files will be downloaded.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;- or -&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tarball:&#039;&#039;&#039; If you do not want to use a SVN client, simply get the GNU tarball from [https://sourceforge.net/p/modplug/code/ SourceForge] - navigate to the folder &amp;lt;code&amp;gt;trunk/OpenMPT&amp;lt;/code&amp;gt;, click the “Download Snapshot” link and extract the tarball somewhere.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
To compile OpenMPT with ASIO and VST support, you will have to get the respective SDKs from the [http://www.steinberg.net/en/company/developer.html Steinberg website]. You will have to register at their site to be able to download the files.&lt;br /&gt;
	&lt;br /&gt;
* VST 2.4: Copy the &amp;lt;code&amp;gt;vstsdk2.4&amp;lt;/code&amp;gt; folder into the &amp;lt;code&amp;gt;include&amp;lt;/code&amp;gt; directory of OpenMPT.&lt;br /&gt;
* ASIO: Copy the &amp;lt;code&amp;gt;ASIOSDK2&amp;lt;/code&amp;gt; folder into the &amp;lt;code&amp;gt;include&amp;lt;/code&amp;gt; directory of OpenMPT.&lt;br /&gt;
&lt;br /&gt;
== Compiling the code ==&lt;br /&gt;
&lt;br /&gt;
To compile the code, you will need Visual Studio .NET 2008 / 2010.&lt;br /&gt;
&lt;br /&gt;
Open the file &amp;lt;code&amp;gt;mptrack/MPTRACK_08.sln&amp;lt;/code&amp;gt; (VS2008) or mptrack/MPTRACK_10.sln (VS2010) in Visual Studio and click on the menu item &amp;lt;code&amp;gt;Build&amp;lt;/code&amp;gt;→&amp;lt;code&amp;gt;Build solution&amp;lt;/code&amp;gt; to compile the code. Note that this process may take quite a while!&lt;br /&gt;
&lt;br /&gt;
Depending on the version of Visual Studio used, the code might not compile out of the box. Some known reasons for that are:&lt;br /&gt;
	&lt;br /&gt;
* You forgot to download the VST 2.4 and ASIO SDKs. Read the previous section to find out which files you need. Alternatively, if you do not want to compile OpenMPT with VST and ASIO support, you can define the constants &amp;lt;code&amp;gt;NO_VST&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;NO_ASIO&amp;lt;/code&amp;gt; in the file &amp;lt;code&amp;gt;common/BuildSettings.h&amp;lt;/code&amp;gt; (appropriate &amp;lt;code&amp;gt;#define&amp;lt;/code&amp;gt; statements are already present but commented out).&lt;br /&gt;
* File dsound.h not found: You need the DirectX SDK. Alternatively, you can define the constant &amp;lt;code&amp;gt;NO_DSOUND&amp;lt;/code&amp;gt; in the file &amp;lt;code&amp;gt;common/BuildSettings.h&amp;lt;/code&amp;gt;  (an appropriate &amp;lt;code&amp;gt;#define&amp;lt;/code&amp;gt; is already present but commented out). &#039;&#039;&#039;Installing this before installing Visual Studio&#039;&#039;&#039; could spare you some work with setting up the paths. If that is not possible anymore, go to &amp;lt;code&amp;gt;Tools&amp;lt;/code&amp;gt;→&amp;lt;code&amp;gt;Options&amp;lt;/code&amp;gt; in Visual Studio and then &amp;lt;code&amp;gt;Projects&amp;lt;/code&amp;gt;→&amp;lt;code&amp;gt;VC++ Directories&amp;lt;/code&amp;gt; and add the required paths. Apparently, this is already installed with VS2010, depending on what components you install.&lt;br /&gt;
&lt;br /&gt;
== Staying up to date ==&lt;br /&gt;
&lt;br /&gt;
If you want to be notified of new code commits, you can subscribe to the SVN mailing list at https://lists.sourceforge.net/lists/listinfo/modplug-svn-commit.&lt;br /&gt;
&lt;br /&gt;
[[Category:Development|Compiling the code]]&lt;/div&gt;</summary>
		<author><name>Enkore</name></author>
	</entry>
</feed>