<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.dosbox.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rainwarrior</id>
	<title>DOSBoxWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.dosbox.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rainwarrior"/>
	<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/Special:Contributions/Rainwarrior"/>
	<updated>2026-04-24T09:42:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135499</id>
		<title>Building DOSBox with Visual Studio</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135499"/>
		<updated>2018-07-14T00:41:34Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: probably worth warning about the current debugging situation because this is a severe problem&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;While the official Windows build environment for DOSBox is [[Building DOSBox with MinGW|MinGW]], it may also be built in Visual Studio for users more comfortable with this.&lt;br /&gt;
&lt;br /&gt;
== Get Visual Studio ==&lt;br /&gt;
Free versions of Visual Studio are available at: https://visualstudio.microsoft.com/&lt;br /&gt;
&lt;br /&gt;
The free version of Visual Studio 2017 is called the &amp;quot;Community&amp;quot; edition. Prior to this (VS2005-2015) free versions were called the &amp;quot;Express&amp;quot; edition.&lt;br /&gt;
&lt;br /&gt;
Some older versions are available at: https://visualstudio.microsoft.com/vs/older-downloads/&lt;br /&gt;
&lt;br /&gt;
When installing Visual Studio, there may be tools for multiple languages available (C++, C#, Visual Basic .NET, Java, etc.) but only the C++ tools are necessary for DOSBox.&lt;br /&gt;
&lt;br /&gt;
== Get Libraries ==&lt;br /&gt;
&lt;br /&gt;
* Required: [https://www.libsdl.org/download-1.2.php '''SDL 1.2''']&lt;br /&gt;
** https://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip (VS2013 or earlier)&lt;br /&gt;
** https://www.libsdl.org/release/SDL-1.2.15.zip (VS2015 or later)&lt;br /&gt;
&lt;br /&gt;
* Optional for screenshots and video capture:&lt;br /&gt;
** [https://zlib.net/ '''zlib'''] - https://zlib.net/fossils/zlib-1.2.8.tar.gz&lt;br /&gt;
** [http://www.libpng.org/pub/png/libpng.html '''libpng'''] - https://download.sourceforge.net/libpng/lpng1634.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for networking:&lt;br /&gt;
** [https://www.libsdl.org/projects/SDL_net/release-1.2.html '''SDL_net 1.2'''] - https://www.libsdl.org/projects/SDL_net/release/SDL_net-devel-1.2.8-VC.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for compressed audio disc images:&lt;br /&gt;
** [https://www.icculus.org/SDL_sound/ '''SDL_sound''']&lt;br /&gt;
&lt;br /&gt;
* Optional for DOS debugging tools:&lt;br /&gt;
** [https://pdcurses.sourceforge.io/ '''PDCurses''']&lt;br /&gt;
&lt;br /&gt;
== Prepare Libraries ==&lt;br /&gt;
&lt;br /&gt;
=== SDL ===&lt;br /&gt;
If using VS2013 or earlier, you can use the pre-built library in '''SDL-devel-1.2.15-VC.zip'''. For VS2015 or later you will need to rebuild it from source ('''SDL-1.2.15.zip'''):&lt;br /&gt;
* Open '''SDL-1.2.15\VisualC\SDL.sln''' and allow Visual Studio to automatically convert the solution and project to the latest version.&lt;br /&gt;
* Select the ''Release'' configuration and use the ''Build'' menu to build the solution.&lt;br /&gt;
* The following 3 files should be built:&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.dll'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.lib'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\SDLmain\Release\SDLmain.lib'''&lt;br /&gt;
* The following folder also contains relevant include files for the library:&lt;br /&gt;
** '''SDL-1.2.15\include'''&lt;br /&gt;
* If you need more info on building SDL with VS, see: '''SDL-1.2.15\VisualC.html'''&lt;br /&gt;
&lt;br /&gt;
=== zlib / libpng (optional) ===&lt;br /&gt;
Enables screenshot and video capture.&lt;br /&gt;
&lt;br /&gt;
Because '''zlib''' is a dependency of '''libpng''', a VS solution to build both at once is provided by the ''libpng'' package.&lt;br /&gt;
&lt;br /&gt;
* Unpack '''lpng1634.zip''' to create the folder: '''lpng1634'''&lt;br /&gt;
* Unpack '''zlib-1.2.8.tar.gz''' to create an adjacent folder: '''zlib-1.2.8'''&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\zlib.props''' with a text editor.&lt;br /&gt;
** Near the bottom of the file you will find '''&amp;lt;DisableSpecificWarnings&amp;gt;'''. Add ''';5045''' to the end of this list. (This disables a new spurious warning in VS2017.)&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\vstudio.sln''' and allow Visual Studio to automatically convert the solution and projects to the latest version.&lt;br /&gt;
* Select the '''Release Library''' configuration.&lt;br /&gt;
* Right click on the '''zlib''' project in the solution explorer and open its '''Properties'''.&lt;br /&gt;
** From '''Configuration Properties &amp;gt; C/C++ &amp;gt; Preprocessor &amp;gt; Preprocessor Definitions''' remove '''Z_SOLO'''. (Currently causes video capture to fail and crash.)&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Right click on the '''zlib''' project and build it.&lt;br /&gt;
* Now open the '''libpng''' project's properties.&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Build the '''libpng''' project.&lt;br /&gt;
* The following libraries should now be built:&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\zlib.lib'''&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\libpng16.lib'''&lt;br /&gt;
* Include folders:&lt;br /&gt;
** '''lpng1634'''&lt;br /&gt;
** '''zlib-1.2.8'''&lt;br /&gt;
* For more libpng build information see: '''lpng1634\INSTALL'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_net (optional) ===&lt;br /&gt;
Enables networking.&lt;br /&gt;
&lt;br /&gt;
You can use the pre-built libraries in '''SDL_net-devel-1.2.8-VC.zip'''.&lt;br /&gt;
* Library files:&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.dll'''&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.lib'''&lt;br /&gt;
* Include folder:&lt;br /&gt;
** '''SDL_net-1.2.8\include'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_sound (optional) ===&lt;br /&gt;
Enables the use of CD images with compressed audio.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
=== PDCurses (optional) ===&lt;br /&gt;
Enables a DOS debugger.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
== Get DOSBox Source ==&lt;br /&gt;
* If you plan on rebuilding periodically with the latest code, you can check out the Subversion repository here: https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/&lt;br /&gt;
* Otherwise you can download a snapshot of the latest DOSBox SVN source here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
* See also [[SVN Builds]] for a list of unofficial alternative versions of DOSBox that you may wish to try instead. Many of them have additional features.&lt;br /&gt;
&lt;br /&gt;
== Build DOSBox ==&lt;br /&gt;
* After downloading the source code, open the Visual Studio solution: '''dosbox\visualc_net\dosbox.sln'''&lt;br /&gt;
* Allow it to automatically convert to the latest version.&lt;br /&gt;
* Right click the '''dosbox''' project in the Solution Explorer and open its '''Properties'''.&lt;br /&gt;
** When editing the properties, edits will have to be made for each configuration you may want to build. In the top left there is an option for '''Debug''', '''Release''' and '''All Configurations'''. The ''Release'' build is most commonly used, but ''All Configurations'' will let you conveniently edit both at once wherever the two configurations have the same options.&lt;br /&gt;
** Click the drop down triangle on '''Configuration Properties &amp;gt; C/C++ &amp;gt; General &amp;gt; Additional Include Directories''' and edit this list. Add the appropriate '''include path''' for each library prepared above. Keep in mind that paths are relative to the '''dosbox\visualc_net''' folder.&lt;br /&gt;
** Edit '''Configuration Properties &amp;gt; Linker &amp;gt; General &amp;gt; Additional Library Directories''' and add the path to each library (.lib) file prepared above.&lt;br /&gt;
** Edit '''Configuration Properties &amp;gt; Linker &amp;gt; Input &amp;gt; Additional Dependencies''' to add or remove libraries. (You will have to select either the Debug or Release configuration for this, as the Debug build uses a different list of libraries than the Release.)&lt;br /&gt;
*** Remove '''zlib.lib''' and '''libpng.lib''' if not using these. Rename '''libpng.lib''' as '''libpng16.lib''' if you are using it.&lt;br /&gt;
*** Remove '''sdl_net.lib''' if not using it.&lt;br /&gt;
*** Add an entry for ''SDL_sound'' if using it.&lt;br /&gt;
*** Remove '''curses.lib''' if not using it.&lt;br /&gt;
* Find '''dosbox\src\platform\visualc\config.h''' and open it (in the solution explorer it is under '''dosbox \ Source Files \ visualc''').&lt;br /&gt;
** '''C_SSHOT''' to 0 if not using ''zlib/libpng''.&lt;br /&gt;
** '''C_MODEM''' and '''C_IPX''' to 0 if not using ''SDL_net''.&lt;br /&gt;
** Add '''#define C_SDL_SOUND''' if using ''SDL_sound''.&lt;br /&gt;
** '''C_DEBUG''' to 1 if using the ''PDCurses''.&lt;br /&gt;
* After all of this is set up, you may build the '''dosbox''' project. Choose a ''Debug'' or ''Release'' configuration (recommend: ''Release'') and use the build menu to build the solution. One of the following will be built:&lt;br /&gt;
** '''dosbox\visualc_net\Release\dosbox.exe'''&lt;br /&gt;
** '''dosbox\visualc_net\Debug\dosbox.exe'''&lt;br /&gt;
* Finally, take the '''SDL.dll''' and '''SDL_net.dll''' files prepared above and place them in the same directory as '''dosbox.exe'''. It should now be ready to run.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* When debugging with Visual Studio, breakpoints currently cause the host computer to slow to a crawl, making the debugger very difficult to use. Until a solution for this is found, you may wish to resort to &amp;quot;printf debugging&amp;quot; as a workaround, or alternatively consider building with [[Building DOSBox with MinGW|MinGW]] and using GDB to debug. ([https://www.vogons.org/viewtopic.php?f=32&amp;amp;t=60667 discussion])&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135498</id>
		<title>Building DOSBox with MinGW</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135498"/>
		<updated>2018-07-14T00:37:12Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Compiling DOSBox */ that last line is another step&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DOSBox is a complicated project. This document aims to provide a step by step description of how to use the MinGW developement environment to successfully build DOSBox. An alternative is to use [[Building DOSBox with Visual Studio|Microsoft Visual Studio]].&lt;br /&gt;
&lt;br /&gt;
This page will guide you through setting up MinGW to compile a current (SVN/CVS) version of DOSBox. Because of updates to compilers and libraries, this guide will not work with the 0.74 (the last official release, which is currently over 6 years old) source files.&lt;br /&gt;
&lt;br /&gt;
An alternative guide is also available on the forums: https://www.vogons.org/viewtopic.php?f=31&amp;amp;t=55706&lt;br /&gt;
&lt;br /&gt;
Additional build setup notes may be found in the latest '''INSTALL''' file: https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/INSTALL&lt;br /&gt;
&lt;br /&gt;
== Installing MinGW ==&lt;br /&gt;
* Download mingw-get-setup.exe from http://sourceforge.net/projects/mingw/&lt;br /&gt;
* Run the installer, choosing the defaults&lt;br /&gt;
* Once the '''MinGW Installation Manager''' application starts, select&lt;br /&gt;
** mingw-developer-toolkit (msys-base should be automatically added)&lt;br /&gt;
** mingw32-base&lt;br /&gt;
** mingw32-gcc-g++&lt;br /&gt;
* On the installation menu, apply changes, and confirm that you want to apply the changes&lt;br /&gt;
&lt;br /&gt;
The installation manager is going to download a bunch of files, and at the end, start installing them. Once this is done, you can close the dialog box as well as the installation manager.&lt;br /&gt;
&lt;br /&gt;
Well done, MinGW is now installed! Let's start it up.&lt;br /&gt;
&lt;br /&gt;
* Browse to '''C:\MinGW\msys\1.0'''&lt;br /&gt;
* Run '''MSYS.BAT'''&lt;br /&gt;
&lt;br /&gt;
This will start up a DOS prompt like screen, lets mount the base path&lt;br /&gt;
  mount 'c:\MinGW' /mingw&lt;br /&gt;
&lt;br /&gt;
You have now completed this section, lets move on to adding the SDL libraries to MinGW.&lt;br /&gt;
&lt;br /&gt;
== Adding the SDL libraries to MinGW ==&lt;br /&gt;
* Download the pre compiled SDL development libraries from here http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder, it's going to be something like '''C:\MinGW\msys\1.0\home\Administrator'''&lt;br /&gt;
* Switch back to the MSYS command prompt we started earlier&lt;br /&gt;
* Lets extract the downloaded files&lt;br /&gt;
  tar xvf SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* And now add the files to MinGW&lt;br /&gt;
  cd SDL-1.2.15&lt;br /&gt;
  make install-sdl prefix=/mingw&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
Cool, the SDL libraries have been added to MinGW, onto the next section.&lt;br /&gt;
&lt;br /&gt;
== Adding Direct Draw support to DOSBox (Optional) ==&lt;br /&gt;
If you want to give DOSBox the option to use the DDRAW output option, then we need to add a couple of extra libraries to MinGW&lt;br /&gt;
* Download the following file, http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the files (the -C parameter, tells tar where to extract the files to)&lt;br /&gt;
  tar xvf directx-devel.tar.gz -C /mingw&lt;br /&gt;
&lt;br /&gt;
== Adding networking support to DOSBox (Optional) ==&lt;br /&gt;
These steps show you how to add the SDL_net libraries to MinGW, which enable networking and modem for DOSBox. If you aren't going to be using DOSBox for multi player games, then you can probably skip this step.&lt;br /&gt;
* Download the SDL_net source files from https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Lets configure the libraries&lt;br /&gt;
  cd SDL_net-1.2.8&lt;br /&gt;
  ./configure --prefix=/mingw&lt;br /&gt;
* '''SDLnet.c''' will have to be modified slightly to compile. Open it with a text editor and add the following #include near the top of the file:&lt;br /&gt;
  #include &amp;lt;winerror.h&amp;gt;&lt;br /&gt;
* And now compile them&lt;br /&gt;
  make&lt;br /&gt;
* And then install them (copy the files)&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding screenshot support (Optional) ==&lt;br /&gt;
This one is a bit tricky because it relies on two libraries, zlib (libpng needs these libraries), and libpng. We are also going to be compiling the libraries statically to keep external DLL's to a minimum.&lt;br /&gt;
* Download zlib from here http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf zlib-1.2.8.tar.xz&lt;br /&gt;
* Lets build the static library&lt;br /&gt;
  cd zlib-1.2.8&lt;br /&gt;
  make -f win32/Makefile.gcc&lt;br /&gt;
* And now copy the files to /mingw&lt;br /&gt;
  cp libz.a /mingw/lib/&lt;br /&gt;
  cp zlib.h zconf.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
Cool, that wasn't too hard, onto libpng&lt;br /&gt;
* Download libpng from here https://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.18/libpng-1.6.18.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libpng-1.6.18.tar.xz&lt;br /&gt;
* Configure the library&lt;br /&gt;
  cd libpng-1.6.18&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* There is currently [https://sourceforge.net/p/libpng/bugs/273/ a problem with the configure script] that will need to be manually resolved. Open '''pnglibconf.h''' with a text editor, and you will find several #define lines near the bottom that have been erroneously split into two lines. This can be fixed by adding a backslash to the end of the affected lines:&lt;br /&gt;
  199: #define PNG_TEXT_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  201: #define PNG_TEXT_Z_DEFAULT_STRATEGY \&lt;br /&gt;
  209: #define PNG_ZLIB_VERNUM \&lt;br /&gt;
  211: #define PNG_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  213: #define PNG_Z_DEFAULT_NOFILTER_STRATEGY \&lt;br /&gt;
  215: #define PNG_Z_DEFAULT_STRATEGY \&lt;br /&gt;
* And now to compile and install the files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding support for compressed audio on diskimages (Optional) ==&lt;br /&gt;
This is for cue/bin cdrom images with compressed (ogg) audio tracks. We will be adding the libvorbis, libogg, and sdl_sound libraries. &lt;br /&gt;
* Download libogg from here http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libogg-1.3.2.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libogg-1.3.2&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download libvorbis from here http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libvorbis-1.3.5&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download sdl_sound from here https://www.icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Configure and compile&lt;br /&gt;
  cd SDL_sound-1.0.3&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Enabling the debugger (You probably don't want this) ==&lt;br /&gt;
The debugger is mainly for developers of DOSBox, so they can find out why a game isn't working.&lt;br /&gt;
* Download the PDCurses source files from http://sourceforge.net/projects/pdcurses/files/pdcurses/3.4/PDCurses-3.4.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf PDCurses-3.4.tar.gz&lt;br /&gt;
* Compile the library&lt;br /&gt;
  cd PDCurses-3.4/win32&lt;br /&gt;
  make -f gccwin32.mak DLL=N&lt;br /&gt;
* And now copy the files to your /mingw folders&lt;br /&gt;
  cp pdcurses.a /mingw/lib/libpdcurses.a&lt;br /&gt;
  cd ..&lt;br /&gt;
  cp curses.h panel.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Compiling DOSBox ==&lt;br /&gt;
* If you plan on rebuilding periodically with the latest code, you can check out the Subversion repository here: https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/&lt;br /&gt;
* Otherwise you can download a snapshot of the latest DOSBox SVN source here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
* See also [[SVN Builds]] for a list of unofficial alternative versions of DOSBox that you may wish to try instead. Many of them have additional features.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If using the snapshot, copy that file to your MSYS home folder, and extract the file&lt;br /&gt;
  tar xvf dosboxsvn.tgz&lt;br /&gt;
* Let's configure DOSBox, and tell it to use the static C library (-static-libgcc) and C++ library (-static-libstdc++) and stripping the final EXE of debug information (-s)&lt;br /&gt;
  cd dosbox&lt;br /&gt;
  ./autogen.sh&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot;&lt;br /&gt;
* For SDL_sound support, you have to extra some extra parameters so that the configure command knows where to find the audio library files (LIBS=&amp;quot;-lvorbisfile.....)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
* If you want to enable debugging (you probably don't)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot; --enable-debug&lt;br /&gt;
* And now for compiling DOSBox&lt;br /&gt;
  make&lt;br /&gt;
* The last step is to gather all the files together in a folder&lt;br /&gt;
** Create a folder with a name of your choosing&lt;br /&gt;
** Copy the dosbox.exe file located under the '''dosbox\src''' folder, e.g. '''C:\MinGW\msys\1.0\home\Administrator\dosbox\src''' to the folder you created&lt;br /&gt;
** Copy the SDL.dll file located under '''SDL-1.2.15\bin''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL-1.2.15\bin''' to the folder you created&lt;br /&gt;
** Optionally, copy the SDL_net.dll file located under '''SDL_net-1.2.8\.libs''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL_net-1.2.8\.libs''' to the folder you created&lt;br /&gt;
&lt;br /&gt;
* Start up DOSBox, and see if it works!&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135497</id>
		<title>Building DOSBox with Visual Studio</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135497"/>
		<updated>2018-07-14T00:35:07Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Build DOSBox */ formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;While the official Windows build environment for DOSBox is [[Building DOSBox with MinGW|MinGW]], it may also be built in Visual Studio for users more comfortable with this.&lt;br /&gt;
&lt;br /&gt;
== Get Visual Studio ==&lt;br /&gt;
Free versions of Visual Studio are available at: https://visualstudio.microsoft.com/&lt;br /&gt;
&lt;br /&gt;
The free version of Visual Studio 2017 is called the &amp;quot;Community&amp;quot; edition. Prior to this (VS2005-2015) free versions were called the &amp;quot;Express&amp;quot; edition.&lt;br /&gt;
&lt;br /&gt;
Some older versions are available at: https://visualstudio.microsoft.com/vs/older-downloads/&lt;br /&gt;
&lt;br /&gt;
When installing Visual Studio, there may be tools for multiple languages available (C++, C#, Visual Basic .NET, Java, etc.) but only the C++ tools are necessary for DOSBox.&lt;br /&gt;
&lt;br /&gt;
== Get Libraries ==&lt;br /&gt;
&lt;br /&gt;
* Required: [https://www.libsdl.org/download-1.2.php '''SDL 1.2''']&lt;br /&gt;
** https://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip (VS2013 or earlier)&lt;br /&gt;
** https://www.libsdl.org/release/SDL-1.2.15.zip (VS2015 or later)&lt;br /&gt;
&lt;br /&gt;
* Optional for screenshots and video capture:&lt;br /&gt;
** [https://zlib.net/ '''zlib'''] - https://zlib.net/fossils/zlib-1.2.8.tar.gz&lt;br /&gt;
** [http://www.libpng.org/pub/png/libpng.html '''libpng'''] - https://download.sourceforge.net/libpng/lpng1634.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for networking:&lt;br /&gt;
** [https://www.libsdl.org/projects/SDL_net/release-1.2.html '''SDL_net 1.2'''] - https://www.libsdl.org/projects/SDL_net/release/SDL_net-devel-1.2.8-VC.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for compressed audio disc images:&lt;br /&gt;
** [https://www.icculus.org/SDL_sound/ '''SDL_sound''']&lt;br /&gt;
&lt;br /&gt;
* Optional for DOS debugging tools:&lt;br /&gt;
** [https://pdcurses.sourceforge.io/ '''PDCurses''']&lt;br /&gt;
&lt;br /&gt;
== Prepare Libraries ==&lt;br /&gt;
&lt;br /&gt;
=== SDL ===&lt;br /&gt;
If using VS2013 or earlier, you can use the pre-built library in '''SDL-devel-1.2.15-VC.zip'''. For VS2015 or later you will need to rebuild it from source ('''SDL-1.2.15.zip'''):&lt;br /&gt;
* Open '''SDL-1.2.15\VisualC\SDL.sln''' and allow Visual Studio to automatically convert the solution and project to the latest version.&lt;br /&gt;
* Select the ''Release'' configuration and use the ''Build'' menu to build the solution.&lt;br /&gt;
* The following 3 files should be built:&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.dll'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.lib'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\SDLmain\Release\SDLmain.lib'''&lt;br /&gt;
* The following folder also contains relevant include files for the library:&lt;br /&gt;
** '''SDL-1.2.15\include'''&lt;br /&gt;
* If you need more info on building SDL with VS, see: '''SDL-1.2.15\VisualC.html'''&lt;br /&gt;
&lt;br /&gt;
=== zlib / libpng (optional) ===&lt;br /&gt;
Enables screenshot and video capture.&lt;br /&gt;
&lt;br /&gt;
Because '''zlib''' is a dependency of '''libpng''', a VS solution to build both at once is provided by the ''libpng'' package.&lt;br /&gt;
&lt;br /&gt;
* Unpack '''lpng1634.zip''' to create the folder: '''lpng1634'''&lt;br /&gt;
* Unpack '''zlib-1.2.8.tar.gz''' to create an adjacent folder: '''zlib-1.2.8'''&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\zlib.props''' with a text editor.&lt;br /&gt;
** Near the bottom of the file you will find '''&amp;lt;DisableSpecificWarnings&amp;gt;'''. Add ''';5045''' to the end of this list. (This disables a new spurious warning in VS2017.)&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\vstudio.sln''' and allow Visual Studio to automatically convert the solution and projects to the latest version.&lt;br /&gt;
* Select the '''Release Library''' configuration.&lt;br /&gt;
* Right click on the '''zlib''' project in the solution explorer and open its '''Properties'''.&lt;br /&gt;
** From '''Configuration Properties &amp;gt; C/C++ &amp;gt; Preprocessor &amp;gt; Preprocessor Definitions''' remove '''Z_SOLO'''. (Currently causes video capture to fail and crash.)&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Right click on the '''zlib''' project and build it.&lt;br /&gt;
* Now open the '''libpng''' project's properties.&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Build the '''libpng''' project.&lt;br /&gt;
* The following libraries should now be built:&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\zlib.lib'''&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\libpng16.lib'''&lt;br /&gt;
* Include folders:&lt;br /&gt;
** '''lpng1634'''&lt;br /&gt;
** '''zlib-1.2.8'''&lt;br /&gt;
* For more libpng build information see: '''lpng1634\INSTALL'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_net (optional) ===&lt;br /&gt;
Enables networking.&lt;br /&gt;
&lt;br /&gt;
You can use the pre-built libraries in '''SDL_net-devel-1.2.8-VC.zip'''.&lt;br /&gt;
* Library files:&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.dll'''&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.lib'''&lt;br /&gt;
* Include folder:&lt;br /&gt;
** '''SDL_net-1.2.8\include'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_sound (optional) ===&lt;br /&gt;
Enables the use of CD images with compressed audio.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
=== PDCurses (optional) ===&lt;br /&gt;
Enables a DOS debugger.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
== Get DOSBox Source ==&lt;br /&gt;
* If you plan on rebuilding periodically with the latest code, you can check out the Subversion repository here: https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/&lt;br /&gt;
* Otherwise you can download a snapshot of the latest DOSBox SVN source here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
* See also [[SVN Builds]] for a list of unofficial alternative versions of DOSBox that you may wish to try instead. Many of them have additional features.&lt;br /&gt;
&lt;br /&gt;
== Build DOSBox ==&lt;br /&gt;
* After downloading the source code, open the Visual Studio solution: '''dosbox\visualc_net\dosbox.sln'''&lt;br /&gt;
* Allow it to automatically convert to the latest version.&lt;br /&gt;
* Right click the '''dosbox''' project in the Solution Explorer and open its '''Properties'''.&lt;br /&gt;
** When editing the properties, edits will have to be made for each configuration you may want to build. In the top left there is an option for '''Debug''', '''Release''' and '''All Configurations'''. The ''Release'' build is most commonly used, but ''All Configurations'' will let you conveniently edit both at once wherever the two configurations have the same options.&lt;br /&gt;
** Click the drop down triangle on '''Configuration Properties &amp;gt; C/C++ &amp;gt; General &amp;gt; Additional Include Directories''' and edit this list. Add the appropriate '''include path''' for each library prepared above. Keep in mind that paths are relative to the '''dosbox\visualc_net''' folder.&lt;br /&gt;
** Edit '''Configuration Properties &amp;gt; Linker &amp;gt; General &amp;gt; Additional Library Directories''' and add the path to each library (.lib) file prepared above.&lt;br /&gt;
** Edit '''Configuration Properties &amp;gt; Linker &amp;gt; Input &amp;gt; Additional Dependencies''' to add or remove libraries. (You will have to select either the Debug or Release configuration for this, as the Debug build uses a different list of libraries than the Release.)&lt;br /&gt;
*** Remove '''zlib.lib''' and '''libpng.lib''' if not using these. Rename '''libpng.lib''' as '''libpng16.lib''' if you are using it.&lt;br /&gt;
*** Remove '''sdl_net.lib''' if not using it.&lt;br /&gt;
*** Add an entry for ''SDL_sound'' if using it.&lt;br /&gt;
*** Remove '''curses.lib''' if not using it.&lt;br /&gt;
* Find '''dosbox\src\platform\visualc\config.h''' and open it (in the solution explorer it is under '''dosbox \ Source Files \ visualc''').&lt;br /&gt;
** '''C_SSHOT''' to 0 if not using ''zlib/libpng''.&lt;br /&gt;
** '''C_MODEM''' and '''C_IPX''' to 0 if not using ''SDL_net''.&lt;br /&gt;
** Add '''#define C_SDL_SOUND''' if using ''SDL_sound''.&lt;br /&gt;
** '''C_DEBUG''' to 1 if using the ''PDCurses''.&lt;br /&gt;
* After all of this is set up, you may build the '''dosbox''' project. Choose a ''Debug'' or ''Release'' configuration (recommend: ''Release'') and use the build menu to build the solution. One of the following will be built:&lt;br /&gt;
** '''dosbox\visualc_net\Release\dosbox.exe'''&lt;br /&gt;
** '''dosbox\visualc_net\Debug\dosbox.exe'''&lt;br /&gt;
* Finally, take the '''SDL.dll''' and '''SDL_net.dll''' files prepared above and place them in the same directory as '''dosbox.exe'''. It should now be ready to run.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135496</id>
		<title>Building DOSBox with Visual Studio</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135496"/>
		<updated>2018-07-14T00:29:52Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Build DOSBox */ unfinished sentence&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;While the official Windows build environment for DOSBox is [[Building DOSBox with MinGW|MinGW]], it may also be built in Visual Studio for users more comfortable with this.&lt;br /&gt;
&lt;br /&gt;
== Get Visual Studio ==&lt;br /&gt;
Free versions of Visual Studio are available at: https://visualstudio.microsoft.com/&lt;br /&gt;
&lt;br /&gt;
The free version of Visual Studio 2017 is called the &amp;quot;Community&amp;quot; edition. Prior to this (VS2005-2015) free versions were called the &amp;quot;Express&amp;quot; edition.&lt;br /&gt;
&lt;br /&gt;
Some older versions are available at: https://visualstudio.microsoft.com/vs/older-downloads/&lt;br /&gt;
&lt;br /&gt;
When installing Visual Studio, there may be tools for multiple languages available (C++, C#, Visual Basic .NET, Java, etc.) but only the C++ tools are necessary for DOSBox.&lt;br /&gt;
&lt;br /&gt;
== Get Libraries ==&lt;br /&gt;
&lt;br /&gt;
* Required: [https://www.libsdl.org/download-1.2.php '''SDL 1.2''']&lt;br /&gt;
** https://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip (VS2013 or earlier)&lt;br /&gt;
** https://www.libsdl.org/release/SDL-1.2.15.zip (VS2015 or later)&lt;br /&gt;
&lt;br /&gt;
* Optional for screenshots and video capture:&lt;br /&gt;
** [https://zlib.net/ '''zlib'''] - https://zlib.net/fossils/zlib-1.2.8.tar.gz&lt;br /&gt;
** [http://www.libpng.org/pub/png/libpng.html '''libpng'''] - https://download.sourceforge.net/libpng/lpng1634.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for networking:&lt;br /&gt;
** [https://www.libsdl.org/projects/SDL_net/release-1.2.html '''SDL_net 1.2'''] - https://www.libsdl.org/projects/SDL_net/release/SDL_net-devel-1.2.8-VC.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for compressed audio disc images:&lt;br /&gt;
** [https://www.icculus.org/SDL_sound/ '''SDL_sound''']&lt;br /&gt;
&lt;br /&gt;
* Optional for DOS debugging tools:&lt;br /&gt;
** [https://pdcurses.sourceforge.io/ '''PDCurses''']&lt;br /&gt;
&lt;br /&gt;
== Prepare Libraries ==&lt;br /&gt;
&lt;br /&gt;
=== SDL ===&lt;br /&gt;
If using VS2013 or earlier, you can use the pre-built library in '''SDL-devel-1.2.15-VC.zip'''. For VS2015 or later you will need to rebuild it from source ('''SDL-1.2.15.zip'''):&lt;br /&gt;
* Open '''SDL-1.2.15\VisualC\SDL.sln''' and allow Visual Studio to automatically convert the solution and project to the latest version.&lt;br /&gt;
* Select the ''Release'' configuration and use the ''Build'' menu to build the solution.&lt;br /&gt;
* The following 3 files should be built:&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.dll'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.lib'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\SDLmain\Release\SDLmain.lib'''&lt;br /&gt;
* The following folder also contains relevant include files for the library:&lt;br /&gt;
** '''SDL-1.2.15\include'''&lt;br /&gt;
* If you need more info on building SDL with VS, see: '''SDL-1.2.15\VisualC.html'''&lt;br /&gt;
&lt;br /&gt;
=== zlib / libpng (optional) ===&lt;br /&gt;
Enables screenshot and video capture.&lt;br /&gt;
&lt;br /&gt;
Because '''zlib''' is a dependency of '''libpng''', a VS solution to build both at once is provided by the ''libpng'' package.&lt;br /&gt;
&lt;br /&gt;
* Unpack '''lpng1634.zip''' to create the folder: '''lpng1634'''&lt;br /&gt;
* Unpack '''zlib-1.2.8.tar.gz''' to create an adjacent folder: '''zlib-1.2.8'''&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\zlib.props''' with a text editor.&lt;br /&gt;
** Near the bottom of the file you will find '''&amp;lt;DisableSpecificWarnings&amp;gt;'''. Add ''';5045''' to the end of this list. (This disables a new spurious warning in VS2017.)&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\vstudio.sln''' and allow Visual Studio to automatically convert the solution and projects to the latest version.&lt;br /&gt;
* Select the '''Release Library''' configuration.&lt;br /&gt;
* Right click on the '''zlib''' project in the solution explorer and open its '''Properties'''.&lt;br /&gt;
** From '''Configuration Properties &amp;gt; C/C++ &amp;gt; Preprocessor &amp;gt; Preprocessor Definitions''' remove '''Z_SOLO'''. (Currently causes video capture to fail and crash.)&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Right click on the '''zlib''' project and build it.&lt;br /&gt;
* Now open the '''libpng''' project's properties.&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Build the '''libpng''' project.&lt;br /&gt;
* The following libraries should now be built:&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\zlib.lib'''&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\libpng16.lib'''&lt;br /&gt;
* Include folders:&lt;br /&gt;
** '''lpng1634'''&lt;br /&gt;
** '''zlib-1.2.8'''&lt;br /&gt;
* For more libpng build information see: '''lpng1634\INSTALL'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_net (optional) ===&lt;br /&gt;
Enables networking.&lt;br /&gt;
&lt;br /&gt;
You can use the pre-built libraries in '''SDL_net-devel-1.2.8-VC.zip'''.&lt;br /&gt;
* Library files:&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.dll'''&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.lib'''&lt;br /&gt;
* Include folder:&lt;br /&gt;
** '''SDL_net-1.2.8\include'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_sound (optional) ===&lt;br /&gt;
Enables the use of CD images with compressed audio.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
=== PDCurses (optional) ===&lt;br /&gt;
Enables a DOS debugger.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
== Get DOSBox Source ==&lt;br /&gt;
* If you plan on rebuilding periodically with the latest code, you can check out the Subversion repository here: https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/&lt;br /&gt;
* Otherwise you can download a snapshot of the latest DOSBox SVN source here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
* See also [[SVN Builds]] for a list of unofficial alternative versions of DOSBox that you may wish to try instead. Many of them have additional features.&lt;br /&gt;
&lt;br /&gt;
== Build DOSBox ==&lt;br /&gt;
* After downloading the source code, open the Visual Studio solution: '''dosbox\visualc_net\dosbox.sln'''&lt;br /&gt;
* Allow it to automatically convert to the latest version.&lt;br /&gt;
* Right click the '''dosbox''' project in the Solution Explorer and open its '''Properties'''.&lt;br /&gt;
** When editing the properties, edits will have to be made for each configuration you may want to build. In the top left there is an option for '''Debug''', '''Release''' and '''All Configurations'''. The ''Release'' build is most commonly used, but ''All Configurations'' will let you conveniently edit both at once wherever the two configurations have the same options.&lt;br /&gt;
** Click the drop down triangle on '''Configuration Properties &amp;gt; C/C++ &amp;gt; General &amp;gt; Additional Include Directories''' and edit this list. Add the appropriate '''include path''' for each library prepared above. Keep in mind that paths are relative to the '''dosbox\visualc_net''' folder.&lt;br /&gt;
** Edit '''Configuration Properties &amp;gt; Linker &amp;gt; General &amp;gt; Additional Library Directories''' and add the path to each library (.lib) file prepared above.&lt;br /&gt;
** Edit '''Configuration Properties &amp;gt; Linker &amp;gt; Input &amp;gt; Additional Dependencies''' to add or remove libraries. (You will have to select either the Debug or Release configuration for this, as the Debug build uses a different list of libraries than the Release.)&lt;br /&gt;
*** Remove '''zlib.lib''' and '''libpng.lib''' if not using these. Rename '''libpng.lib''' as '''libpng16.lib''' if you are using it.&lt;br /&gt;
*** Remove '''sdl_net.lib''' if not using it.&lt;br /&gt;
*** Add an entry for SDL_sound if using it.&lt;br /&gt;
*** Remove '''curses.lib''' if not using it.&lt;br /&gt;
* Find '''dosbox\src\platform\visualc\config.h''' and open it (in the solution explorer it is under '''dosbox \ Source Files \ visualc''').&lt;br /&gt;
** '''C_SSHOT''' to 0 if not using zlib/libpng.&lt;br /&gt;
** '''C_MODEM''' and '''C_IPX''' to 0 if not using SDL_net.&lt;br /&gt;
** Add '''#define C_SDL_SOUND''' if using SDL_sound.&lt;br /&gt;
** '''C_DEBUG''' to 1 if using the PDCurses.&lt;br /&gt;
* After all of this is set up, you may build the '''dosbox''' project. Choose a Debug or Release configuration (recommend: Release) and use the build menu to build the solution. One of the following will be built:&lt;br /&gt;
** '''dosbox\visualc_net\Release\dosbox.exe'''&lt;br /&gt;
** '''dosbox\visualc_net\Debug\dosbox.exe'''&lt;br /&gt;
* Finally, take the '''SDL.dll''' and '''SDL_net.dll''' files prepared above and place them in the same directory as '''dosbox.exe'''. It should now be ready to run.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135495</id>
		<title>Building DOSBox with Visual Studio</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135495"/>
		<updated>2018-07-14T00:28:03Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: removing rest of outdated guide&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;While the official Windows build environment for DOSBox is [[Building DOSBox with MinGW|MinGW]], it may also be built in Visual Studio for users more comfortable with this.&lt;br /&gt;
&lt;br /&gt;
== Get Visual Studio ==&lt;br /&gt;
Free versions of Visual Studio are available at: https://visualstudio.microsoft.com/&lt;br /&gt;
&lt;br /&gt;
The free version of Visual Studio 2017 is called the &amp;quot;Community&amp;quot; edition. Prior to this (VS2005-2015) free versions were called the &amp;quot;Express&amp;quot; edition.&lt;br /&gt;
&lt;br /&gt;
Some older versions are available at: https://visualstudio.microsoft.com/vs/older-downloads/&lt;br /&gt;
&lt;br /&gt;
When installing Visual Studio, there may be tools for multiple languages available (C++, C#, Visual Basic .NET, Java, etc.) but only the C++ tools are necessary for DOSBox.&lt;br /&gt;
&lt;br /&gt;
== Get Libraries ==&lt;br /&gt;
&lt;br /&gt;
* Required: [https://www.libsdl.org/download-1.2.php '''SDL 1.2''']&lt;br /&gt;
** https://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip (VS2013 or earlier)&lt;br /&gt;
** https://www.libsdl.org/release/SDL-1.2.15.zip (VS2015 or later)&lt;br /&gt;
&lt;br /&gt;
* Optional for screenshots and video capture:&lt;br /&gt;
** [https://zlib.net/ '''zlib'''] - https://zlib.net/fossils/zlib-1.2.8.tar.gz&lt;br /&gt;
** [http://www.libpng.org/pub/png/libpng.html '''libpng'''] - https://download.sourceforge.net/libpng/lpng1634.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for networking:&lt;br /&gt;
** [https://www.libsdl.org/projects/SDL_net/release-1.2.html '''SDL_net 1.2'''] - https://www.libsdl.org/projects/SDL_net/release/SDL_net-devel-1.2.8-VC.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for compressed audio disc images:&lt;br /&gt;
** [https://www.icculus.org/SDL_sound/ '''SDL_sound''']&lt;br /&gt;
&lt;br /&gt;
* Optional for DOS debugging tools:&lt;br /&gt;
** [https://pdcurses.sourceforge.io/ '''PDCurses''']&lt;br /&gt;
&lt;br /&gt;
== Prepare Libraries ==&lt;br /&gt;
&lt;br /&gt;
=== SDL ===&lt;br /&gt;
If using VS2013 or earlier, you can use the pre-built library in '''SDL-devel-1.2.15-VC.zip'''. For VS2015 or later you will need to rebuild it from source ('''SDL-1.2.15.zip'''):&lt;br /&gt;
* Open '''SDL-1.2.15\VisualC\SDL.sln''' and allow Visual Studio to automatically convert the solution and project to the latest version.&lt;br /&gt;
* Select the ''Release'' configuration and use the ''Build'' menu to build the solution.&lt;br /&gt;
* The following 3 files should be built:&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.dll'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.lib'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\SDLmain\Release\SDLmain.lib'''&lt;br /&gt;
* The following folder also contains relevant include files for the library:&lt;br /&gt;
** '''SDL-1.2.15\include'''&lt;br /&gt;
* If you need more info on building SDL with VS, see: '''SDL-1.2.15\VisualC.html'''&lt;br /&gt;
&lt;br /&gt;
=== zlib / libpng (optional) ===&lt;br /&gt;
Enables screenshot and video capture.&lt;br /&gt;
&lt;br /&gt;
Because '''zlib''' is a dependency of '''libpng''', a VS solution to build both at once is provided by the ''libpng'' package.&lt;br /&gt;
&lt;br /&gt;
* Unpack '''lpng1634.zip''' to create the folder: '''lpng1634'''&lt;br /&gt;
* Unpack '''zlib-1.2.8.tar.gz''' to create an adjacent folder: '''zlib-1.2.8'''&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\zlib.props''' with a text editor.&lt;br /&gt;
** Near the bottom of the file you will find '''&amp;lt;DisableSpecificWarnings&amp;gt;'''. Add ''';5045''' to the end of this list. (This disables a new spurious warning in VS2017.)&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\vstudio.sln''' and allow Visual Studio to automatically convert the solution and projects to the latest version.&lt;br /&gt;
* Select the '''Release Library''' configuration.&lt;br /&gt;
* Right click on the '''zlib''' project in the solution explorer and open its '''Properties'''.&lt;br /&gt;
** From '''Configuration Properties &amp;gt; C/C++ &amp;gt; Preprocessor &amp;gt; Preprocessor Definitions''' remove '''Z_SOLO'''. (Currently causes video capture to fail and crash.)&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Right click on the '''zlib''' project and build it.&lt;br /&gt;
* Now open the '''libpng''' project's properties.&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Build the '''libpng''' project.&lt;br /&gt;
* The following libraries should now be built:&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\zlib.lib'''&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\libpng16.lib'''&lt;br /&gt;
* Include folders:&lt;br /&gt;
** '''lpng1634'''&lt;br /&gt;
** '''zlib-1.2.8'''&lt;br /&gt;
* For more libpng build information see: '''lpng1634\INSTALL'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_net (optional) ===&lt;br /&gt;
Enables networking.&lt;br /&gt;
&lt;br /&gt;
You can use the pre-built libraries in '''SDL_net-devel-1.2.8-VC.zip'''.&lt;br /&gt;
* Library files:&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.dll'''&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.lib'''&lt;br /&gt;
* Include folder:&lt;br /&gt;
** '''SDL_net-1.2.8\include'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_sound (optional) ===&lt;br /&gt;
Enables the use of CD images with compressed audio.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
=== PDCurses (optional) ===&lt;br /&gt;
Enables a DOS debugger.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
== Get DOSBox Source ==&lt;br /&gt;
* If you plan on rebuilding periodically with the latest code, you can check out the Subversion repository here: https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/&lt;br /&gt;
* Otherwise you can download a snapshot of the latest DOSBox SVN source here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
* See also [[SVN Builds]] for a list of unofficial alternative versions of DOSBox that you may wish to try instead. Many of them have additional features.&lt;br /&gt;
&lt;br /&gt;
== Build DOSBox ==&lt;br /&gt;
* After downloading the source code, open the Visual Studio solution: '''dosbox\visualc_net\dosbox.sln'''&lt;br /&gt;
* Allow it to automatically convert to the latest version.&lt;br /&gt;
* Right click the '''dosbox''' project in the Solution Explorer and open its '''Properties'''.&lt;br /&gt;
** When editing the properties, edits will have to be made for each configuration you may want to build. In the top left there is an option for '''Debug''', '''Release''' and '''All Configurations'''. The Release build is most commonly used, but &lt;br /&gt;
** Click the drop down triangle on '''Configuration Properties &amp;gt; C/C++ &amp;gt; General &amp;gt; Additional Include Directories''' and edit this list. Add the appropriate '''include path''' for each library prepared above. Keep in mind that paths are relative to the '''dosbox\visualc_net''' folder.&lt;br /&gt;
** Edit '''Configuration Properties &amp;gt; Linker &amp;gt; General &amp;gt; Additional Library Directories''' and add the path to each library (.lib) file prepared above.&lt;br /&gt;
** Edit '''Configuration Properties &amp;gt; Linker &amp;gt; Input &amp;gt; Additional Dependencies''' to add or remove libraries. (You will have to select either the Debug or Release configuration for this, as the Debug build uses a different list of libraries than the Release.)&lt;br /&gt;
*** Remove '''zlib.lib''' and '''libpng.lib''' if not using these. Rename '''libpng.lib''' as '''libpng16.lib''' if you are using it.&lt;br /&gt;
*** Remove '''sdl_net.lib''' if not using it.&lt;br /&gt;
*** Add an entry for SDL_sound if using it.&lt;br /&gt;
*** Remove '''curses.lib''' if not using it.&lt;br /&gt;
* Find '''dosbox\src\platform\visualc\config.h''' and open it (in the solution explorer it is under '''dosbox \ Source Files \ visualc''').&lt;br /&gt;
** '''C_SSHOT''' to 0 if not using zlib/libpng.&lt;br /&gt;
** '''C_MODEM''' and '''C_IPX''' to 0 if not using SDL_net.&lt;br /&gt;
** Add '''#define C_SDL_SOUND''' if using SDL_sound.&lt;br /&gt;
** '''C_DEBUG''' to 1 if using the PDCurses.&lt;br /&gt;
* After all of this is set up, you may build the '''dosbox''' project. Choose a Debug or Release configuration (recommend: Release) and use the build menu to build the solution. One of the following will be built:&lt;br /&gt;
** '''dosbox\visualc_net\Release\dosbox.exe'''&lt;br /&gt;
** '''dosbox\visualc_net\Debug\dosbox.exe'''&lt;br /&gt;
* Finally, take the '''SDL.dll''' and '''SDL_net.dll''' files prepared above and place them in the same directory as '''dosbox.exe'''. It should now be ready to run.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135494</id>
		<title>Building DOSBox with Visual Studio</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135494"/>
		<updated>2018-07-14T00:27:09Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: how to get and build DOSBox&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;While the official Windows build environment for DOSBox is [[Building DOSBox with MinGW|MinGW]], it may also be built in Visual Studio for users more comfortable with this.&lt;br /&gt;
&lt;br /&gt;
== Get Visual Studio ==&lt;br /&gt;
Free versions of Visual Studio are available at: https://visualstudio.microsoft.com/&lt;br /&gt;
&lt;br /&gt;
The free version of Visual Studio 2017 is called the &amp;quot;Community&amp;quot; edition. Prior to this (VS2005-2015) free versions were called the &amp;quot;Express&amp;quot; edition.&lt;br /&gt;
&lt;br /&gt;
Some older versions are available at: https://visualstudio.microsoft.com/vs/older-downloads/&lt;br /&gt;
&lt;br /&gt;
When installing Visual Studio, there may be tools for multiple languages available (C++, C#, Visual Basic .NET, Java, etc.) but only the C++ tools are necessary for DOSBox.&lt;br /&gt;
&lt;br /&gt;
== Get Libraries ==&lt;br /&gt;
&lt;br /&gt;
* Required: [https://www.libsdl.org/download-1.2.php '''SDL 1.2''']&lt;br /&gt;
** https://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip (VS2013 or earlier)&lt;br /&gt;
** https://www.libsdl.org/release/SDL-1.2.15.zip (VS2015 or later)&lt;br /&gt;
&lt;br /&gt;
* Optional for screenshots and video capture:&lt;br /&gt;
** [https://zlib.net/ '''zlib'''] - https://zlib.net/fossils/zlib-1.2.8.tar.gz&lt;br /&gt;
** [http://www.libpng.org/pub/png/libpng.html '''libpng'''] - https://download.sourceforge.net/libpng/lpng1634.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for networking:&lt;br /&gt;
** [https://www.libsdl.org/projects/SDL_net/release-1.2.html '''SDL_net 1.2'''] - https://www.libsdl.org/projects/SDL_net/release/SDL_net-devel-1.2.8-VC.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for compressed audio disc images:&lt;br /&gt;
** [https://www.icculus.org/SDL_sound/ '''SDL_sound''']&lt;br /&gt;
&lt;br /&gt;
* Optional for DOS debugging tools:&lt;br /&gt;
** [https://pdcurses.sourceforge.io/ '''PDCurses''']&lt;br /&gt;
&lt;br /&gt;
== Prepare Libraries ==&lt;br /&gt;
&lt;br /&gt;
=== SDL ===&lt;br /&gt;
If using VS2013 or earlier, you can use the pre-built library in '''SDL-devel-1.2.15-VC.zip'''. For VS2015 or later you will need to rebuild it from source ('''SDL-1.2.15.zip'''):&lt;br /&gt;
* Open '''SDL-1.2.15\VisualC\SDL.sln''' and allow Visual Studio to automatically convert the solution and project to the latest version.&lt;br /&gt;
* Select the ''Release'' configuration and use the ''Build'' menu to build the solution.&lt;br /&gt;
* The following 3 files should be built:&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.dll'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.lib'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\SDLmain\Release\SDLmain.lib'''&lt;br /&gt;
* The following folder also contains relevant include files for the library:&lt;br /&gt;
** '''SDL-1.2.15\include'''&lt;br /&gt;
* If you need more info on building SDL with VS, see: '''SDL-1.2.15\VisualC.html'''&lt;br /&gt;
&lt;br /&gt;
=== zlib / libpng (optional) ===&lt;br /&gt;
Enables screenshot and video capture.&lt;br /&gt;
&lt;br /&gt;
Because '''zlib''' is a dependency of '''libpng''', a VS solution to build both at once is provided by the ''libpng'' package.&lt;br /&gt;
&lt;br /&gt;
* Unpack '''lpng1634.zip''' to create the folder: '''lpng1634'''&lt;br /&gt;
* Unpack '''zlib-1.2.8.tar.gz''' to create an adjacent folder: '''zlib-1.2.8'''&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\zlib.props''' with a text editor.&lt;br /&gt;
** Near the bottom of the file you will find '''&amp;lt;DisableSpecificWarnings&amp;gt;'''. Add ''';5045''' to the end of this list. (This disables a new spurious warning in VS2017.)&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\vstudio.sln''' and allow Visual Studio to automatically convert the solution and projects to the latest version.&lt;br /&gt;
* Select the '''Release Library''' configuration.&lt;br /&gt;
* Right click on the '''zlib''' project in the solution explorer and open its '''Properties'''.&lt;br /&gt;
** From '''Configuration Properties &amp;gt; C/C++ &amp;gt; Preprocessor &amp;gt; Preprocessor Definitions''' remove '''Z_SOLO'''. (Currently causes video capture to fail and crash.)&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Right click on the '''zlib''' project and build it.&lt;br /&gt;
* Now open the '''libpng''' project's properties.&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Build the '''libpng''' project.&lt;br /&gt;
* The following libraries should now be built:&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\zlib.lib'''&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\libpng16.lib'''&lt;br /&gt;
* Include folders:&lt;br /&gt;
** '''lpng1634'''&lt;br /&gt;
** '''zlib-1.2.8'''&lt;br /&gt;
* For more libpng build information see: '''lpng1634\INSTALL'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_net (optional) ===&lt;br /&gt;
Enables networking.&lt;br /&gt;
&lt;br /&gt;
You can use the pre-built libraries in '''SDL_net-devel-1.2.8-VC.zip'''.&lt;br /&gt;
* Library files:&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.dll'''&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.lib'''&lt;br /&gt;
* Include folder:&lt;br /&gt;
** '''SDL_net-1.2.8\include'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_sound (optional) ===&lt;br /&gt;
Enables the use of CD images with compressed audio.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
=== PDCurses (optional) ===&lt;br /&gt;
Enables a DOS debugger.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
== Get DOSBox Source ==&lt;br /&gt;
* If you plan on rebuilding periodically with the latest code, you can check out the Subversion repository here: https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/&lt;br /&gt;
* Otherwise you can download a snapshot of the latest DOSBox SVN source here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
* See also [[SVN Builds]] for a list of unofficial alternative versions of DOSBox that you may wish to try instead. Many of them have additional features.&lt;br /&gt;
&lt;br /&gt;
== Build DOSBox ==&lt;br /&gt;
* After downloading the source code, open the Visual Studio solution: '''dosbox\visualc_net\dosbox.sln'''&lt;br /&gt;
* Allow it to automatically convert to the latest version.&lt;br /&gt;
* Right click the '''dosbox''' project in the Solution Explorer and open its '''Properties'''.&lt;br /&gt;
** When editing the properties, edits will have to be made for each configuration you may want to build. In the top left there is an option for '''Debug''', '''Release''' and '''All Configurations'''. The Release build is most commonly used, but &lt;br /&gt;
** Click the drop down triangle on '''Configuration Properties &amp;gt; C/C++ &amp;gt; General &amp;gt; Additional Include Directories''' and edit this list. Add the appropriate '''include path''' for each library prepared above. Keep in mind that paths are relative to the '''dosbox\visualc_net''' folder.&lt;br /&gt;
** Edit '''Configuration Properties &amp;gt; Linker &amp;gt; General &amp;gt; Additional Library Directories''' and add the path to each library (.lib) file prepared above.&lt;br /&gt;
** Edit '''Configuration Properties &amp;gt; Linker &amp;gt; Input &amp;gt; Additional Dependencies''' to add or remove libraries. (You will have to select either the Debug or Release configuration for this, as the Debug build uses a different list of libraries than the Release.)&lt;br /&gt;
*** Remove '''zlib.lib''' and '''libpng.lib''' if not using these. Rename '''libpng.lib''' as '''libpng16.lib''' if you are using it.&lt;br /&gt;
*** Remove '''sdl_net.lib''' if not using it.&lt;br /&gt;
*** Add an entry for SDL_sound if using it.&lt;br /&gt;
*** Remove '''curses.lib''' if not using it.&lt;br /&gt;
* Find '''dosbox\src\platform\visualc\config.h''' and open it (in the solution explorer it is under '''dosbox \ Source Files \ visualc''').&lt;br /&gt;
** '''C_SSHOT''' to 0 if not using zlib/libpng.&lt;br /&gt;
** '''C_MODEM''' and '''C_IPX''' to 0 if not using SDL_net.&lt;br /&gt;
** Add '''#define C_SDL_SOUND''' if using SDL_sound.&lt;br /&gt;
** '''C_DEBUG''' to 1 if using the PDCurses.&lt;br /&gt;
* After all of this is set up, you may build the '''dosbox''' project. Choose a Debug or Release configuration (recommend: Release) and use the build menu to build the solution. One of the following will be built:&lt;br /&gt;
** '''dosbox\visualc_net\Release\dosbox.exe'''&lt;br /&gt;
** '''dosbox\visualc_net\Debug\dosbox.exe'''&lt;br /&gt;
* Finally, take the '''SDL.dll''' and '''SDL_net.dll''' files prepared above and place them in the same directory as '''dosbox.exe'''. It should now be ready to run.&lt;br /&gt;
&lt;br /&gt;
== Set up the environment ==&lt;br /&gt;
[[Image:Vce_guide1.png|thumb|Setting the include directories for SDL]]&lt;br /&gt;
From your start menu, start VCE. After a few moments, the IDE (Integrated Development Environment) will start. The first thing we need to do is tell VCE where to find SDL. From the &amp;quot;Tools&amp;quot; menu select &amp;quot;Options&amp;quot;. When the Options menu appears, expand the category &amp;quot;Projects and Solutions&amp;quot; and choose &amp;quot;VC++ Directories&amp;quot;. From the directories pulldown, choose to show the directories for include files, click the folder icon and add the folder for the SDL includes. If you have been following this guide literally, that would &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13\include&amp;lt;/tt&amp;gt;. Next, elect to show the directories for library files. This time, add the folder for the SDL libraries. When you have followed this guide, that would be &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13\lib&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
After you have done this, click OK to accept and close the options.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
== Set up the solution ==&lt;br /&gt;
=== Conversion wizard ===&lt;br /&gt;
[[Image:Vce_guide2.png|thumb|Conversion wizard]]&lt;br /&gt;
Open the solution provided by DOSBox. It can be found as &amp;lt;tt&amp;gt;C:\Development\dosbox\visualc_net\dosbox.sln&amp;lt;/tt&amp;gt;. If you have file extensions hidden (as they are by default), you may select &amp;quot;Solution files (*.sln)&amp;quot; from the object type dropdown to ensure you get the correct one. The first time you open the solution, VCE will present you with the Visual Studio Conversion Wizard, because the solution included in the DOSBox distribution is for an older version of Visual C++. You can simply click Finish and be done with it. If you want, you can take a look at the conversion log, but the information in there is not particularly interesting.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
=== Dependencies ===&lt;br /&gt;
[[Image:Vce_guide3.png|thumb|Editing the additional dependencies]]&lt;br /&gt;
Now that the solution has been opened, it is necessary to disable some of the optional features of DOSBox. From the &amp;quot;Project&amp;quot; menu select &amp;quot;dosbox Properties&amp;quot;. Expand the &amp;quot;Configuration Properties&amp;quot; and then the &amp;quot;Linker&amp;quot; category. Then choose &amp;quot;Input&amp;quot;. From the properties on the right, you will need to remove some of the &amp;quot;Additional Dependencies&amp;quot;. With the setup I have described here, I need to remove '''sdl_net.lib''', '''zlib.lib''', '''libpng.lib''' and '''curses.lib''' (you will also not need the odbc32.lib and odbccp32.lib references, but there is no harm in leaving them). Apply the changes and use the dropdown at the top left to switch to the Release configuration. Repeat the previous step, removing those same references and again apply the changes.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
=== Configuration setup ===&lt;br /&gt;
[[Image:Vce_guide4.png|thumb|Adjusting the config.h file]]&lt;br /&gt;
In the Solution Explorer, browse down the solution into &amp;quot;Source files&amp;quot; and then &amp;quot;visualc&amp;quot;. Open the file &amp;lt;tt&amp;gt;config.h&amp;lt;/tt&amp;gt; listed there and do some editing. Find the line that reads&lt;br /&gt;
 #define C_SSHOT 1&lt;br /&gt;
and change the 1 to a 0. Do the same for the lines mentioning &amp;lt;tt&amp;gt;C_MODEM&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;C_IPX&amp;lt;/tt&amp;gt;. The reason we are disabling these options is that they require some extra libraries that we haven’t set up for this tutorial. Also, set &amp;lt;tt&amp;gt;C_CORE_INLINE&amp;lt;/tt&amp;gt; to 1 to enable faster CPU emulation.&lt;br /&gt;
&lt;br /&gt;
In the Solution Explorer, in the &amp;quot;Source files&amp;quot;, you will find the file &amp;lt;tt&amp;gt;winres.rc&amp;lt;/tt&amp;gt;. Right-click on that and choose &amp;quot;View code&amp;quot;. ''Remove'' the line at the top that reads&lt;br /&gt;
 #include &amp;quot;afxres.h&amp;quot;&lt;br /&gt;
When you have done this, save the solution (&amp;quot;Save all&amp;quot; from the file menu). This ensures you won’t have to repeat any of the previous steps.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The actual build ==&lt;br /&gt;
[[Image:Vce_guide5.png|thumb|Build successfully completed]]&lt;br /&gt;
Before building, right click on &amp;quot;Solution 'dosbox'&amp;quot; in the Solution Explorer and go to Properties -&amp;gt; Configuration Properties. Set the Configuration dropdown box to &amp;quot;Release&amp;quot; instead of &amp;quot;Debug&amp;quot;. This will cause VC++ to build an optimized binary without extra debug features.&lt;br /&gt;
&lt;br /&gt;
Now that all this is done, press F7 to start the build process. There will be a few warnings, but they are unimportant. The build may take a few minutes depending on the speed of your computer, but if you have followed this tutorial it will complete successfully.&lt;br /&gt;
&lt;br /&gt;
Note that to actually run the executable you have built, you will need the SDL library (&amp;lt;tt&amp;gt;SDL.DLL&amp;lt;/tt&amp;gt;) from your regular DOSBox install and place it in the &amp;lt;tt&amp;gt;C:\Development\dosbox\visualc_net&amp;lt;/tt&amp;gt; directory.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=SVN_Builds&amp;diff=135493</id>
		<title>SVN Builds</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=SVN_Builds&amp;diff=135493"/>
		<updated>2018-07-13T23:31:24Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Enhanced SVN builds */ dosbox-patched appears to be updated daily&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article is a discussion of the general purpose of DOSBox SVN builds, and a list of which known public ones exist and where to get them. The first part is a FAQ covering various questions regarding DOSBox SVN builds; it is followed by a listing, description of and links to known SVN builds, as well as a selection of useful related links.&lt;br /&gt;
&lt;br /&gt;
The official DOSBox SVN repository is hosted at sourceforge.net:&lt;br /&gt;
: https://sourceforge.net/projects/dosbox/&lt;br /&gt;
&lt;br /&gt;
==SVN Builds FAQ==&lt;br /&gt;
&lt;br /&gt;
===What are SVN builds?===&lt;br /&gt;
SVN builds are versions of DOSBox that people have built from the latest version of the DOSBox source code, which is stored on [http://www.sourceforge.net/ sourceforge.net] in something called an SVN repository. SVN builds contain changes that have been made by the DOSBox developers since the latest official release. Some enhanced SVN builds also contain unofficial features and fixes that have been created by enthusiasts in the DOSBox development community.&lt;br /&gt;
&lt;br /&gt;
===Why should I use an SVN build?===&lt;br /&gt;
Every so often a new official version of DOSBox is released. Active development continues between releases, however, with new features and fixes continuously added to DOSBox's SVN repository that eventually result in the next release. At the time of this writing, the last official release (0.74) is several years old, and is therefore missing a significant amount of work performed by the developers. If you're having trouble running a game with the current DOSBox release, it's worth trying an SVN build to see if the problem has been addressed since then. You may also want access to the new features or optimizations if you are having compatibility or performance issues.&lt;br /&gt;
&lt;br /&gt;
===Which one should I use?===&lt;br /&gt;
That's up to you. Consult the list below to see which features the different builds contain and decide which one you want to try first. If you are interested in trying an SVN build in hopes that it will fix a problem you're having in the latest release version, you should probably start with a &amp;quot;plain&amp;quot; (no-enhancements) SVN build. Also, see replies to this post from the maintainers for additional info on their builds.&lt;br /&gt;
&lt;br /&gt;
===How do I use it?===&lt;br /&gt;
Some SVN builds come packaged as a fully-functional DOSBox distribution, so you can simply unpack the archive into an empty folder and run it. Other builds contain only a custom dosbox executable binary (e.g. dosbox.exe) and possibly some supporting libraries, and require that you first install the latest official release of DOSBox and then unpack the SVN build over the top of it - replacing the release versions of the files with the SVN versions. Some developers also recommend regenerating your dosbox.conf configuration file so that you will see any new config options that have been added. Consult [http://www.vogons.org/viewtopic.php?p=68701#68701 this forum thread] for info on how to regenerate a config file.&lt;br /&gt;
&lt;br /&gt;
===What do I do if I find bugs in an SVN build?===&lt;br /&gt;
First, search the DOSBox community forums to see if it's already been reported. If it hasn't, post as much information as possible (see the [http://www.vogons.org/viewtopic.php?t=2949 help request guidelines]). ''Update:'' Note that bugs in plain SVN builds are probably the only ones of interest to the DOSBox developers. Problem reports for the other builds should be addressed to their respective maintainers, as problems could be caused by experimental patches that aren't part of the official SVN source code.&lt;br /&gt;
&lt;br /&gt;
===Where can I go to talk about SVN builds? (forum thread)===&lt;br /&gt;
Please feel free to discuss SVN build-related topics in the [http://www.vogons.org/viewtopic.php?t=9306 forum thread] where this article originally started.&lt;br /&gt;
&lt;br /&gt;
==List of SVN Builds==&lt;br /&gt;
&lt;br /&gt;
===Plain/vanilla/clean SVN builds===&lt;br /&gt;
The following SVN builds are based directly off of the official DOSBox SVN source code. Use these builds to test the latest official SVN changes:&lt;br /&gt;
&lt;br /&gt;
* '''EmuCR''' for Windows&lt;br /&gt;
** URL: http://www.emucr.com/search/label/DOSBox&lt;br /&gt;
** Notes: Updated daily, although there are reports that it may lag behind if multiple changes are checked in by the DOSBox developers on the same day followed by no changes for some time after.&lt;br /&gt;
** Compiled '''without''' screenshot, video recording and IPX support.&lt;br /&gt;
&lt;br /&gt;
* '''Dominus''' for OS X 10.4 - 10.12 (ppc/intel)&lt;br /&gt;
** URL: https://www.dropbox.com/s/kbrf5elbcu66kst/Dosbox-Snapshot.dmg?dl=1&lt;br /&gt;
** Notes: Automatically updated on changes to SVN.&lt;br /&gt;
&lt;br /&gt;
* '''Yesterplay 80''' for Windows and Linux&lt;br /&gt;
** URL: https://blog.yesterplay80.net/dosbox-ece-en/&lt;br /&gt;
** Notes: Also provides a modified DOSBox ECE (Enhanced Community Edition) build.&lt;br /&gt;
&lt;br /&gt;
===Enhanced SVN builds===&lt;br /&gt;
The following SVN builds contain additional fixes and/or features that are not officially part of DOSBox. Many people prefer them due to the included extra features that are not included in in the SVN. Note that if you have problems with these builds, it may be due to the unofficial changes that have been made by their maintainers and not the official DOSBox code itself that is to blame:&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox SVN-lfn''' (DOSBox with Long File Name (LFN), mouse copy/paste support and more) by Wengier&lt;br /&gt;
** Last updated: 2017-09-20&lt;br /&gt;
** SVN base version: r4052&lt;br /&gt;
** URL: http://www.wpdos.org/dosbox-vdos-lfn.html (introduction + source + Windows binary + links to forum discussions)&lt;br /&gt;
** URL: http://bit.ly/12jANWF (latest Windows binary + required DLLs, zipped)&lt;br /&gt;
** URL: http://bit.ly/1laDvGX (alternative Windows binary compiled with MinGW instead of Visual Studio, zipped)&lt;br /&gt;
** Description: This is an enhanced build of DOSBox based on its SVN version that adds features like Windows-style Long File Name (LFN) and mouse copy/paste support. With this both the DOSBox shell commands and many native LFN-aware DOS programs should now be able to use LFN in DOSBox, and users can also use the right mouse button to select, copy and paste text from and to DOSBox (when the mouse is not locked). It now also includes features such as automatic drive mounting, improved command-line handling, APM power off, direct parallel port passthrough used for printing, DOS APIs that communicate with the Windows clipboard, and DBCS support for displaying CJK (East Asian) characters. Windows binaries are provided, but sources should work on other platforms such as Linux and macOS/OS X too (pdcurses might be required for the cross-platform clipboard copy/paste feature). Please see README.TXT file inside the binary package for more information.&lt;br /&gt;
&lt;br /&gt;
* '''dosbox-patched''' for Ubuntu Linux (Oneiric and newer)&lt;br /&gt;
** Last updated: Daily&lt;br /&gt;
** SVN base version: ?&lt;br /&gt;
** URL: https://code.launchpad.net/~i30817/+archive/dosbox-patched&lt;br /&gt;
** Description: &amp;quot;Daily build of dosbox trunk with mt32 patch (roms go into ~/.dosbox)&amp;quot;. Automatically-built PPA packages built from DOSBox SVN trunk with Munt MT-32 emulation patch.&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox-X''' by TheGreatCodeholio&lt;br /&gt;
** Last updated: It is constantly updated&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?t=31881 (discussion + links)&lt;br /&gt;
** URL: https://github.com/joncampbell123/dosbox-x/releases&lt;br /&gt;
** Description: &amp;quot;This is a branch of DOSBox 0.74 that I have been working on and off for the past 8 months. I've been modifying a lot in the source to make the emulation more accurate, to fix other parts of the emulation, and to widen the kind of hardware DOSBox emulates. I call it &amp;quot;DOSBox-x&amp;quot; for lack of a better name.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===Obsolete SVN/CVS builds===&lt;br /&gt;
These builds appear to be no longer maintained, and are listed here for historical reference.&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox SVN Daum''' by ykhwong for Windows, OSX, and Linux&lt;br /&gt;
** Last updated: 2015-01-25&lt;br /&gt;
** SVN base version: r3894&lt;br /&gt;
** URL: http://ykhwong.x-y.net/ (Windows binary, Linux x86 source)&lt;br /&gt;
** URL: http://cafe.daum.net/dosbox&lt;br /&gt;
** Description: The last version broke this build in various places and uses out of date and not fully working changes of the DOSBox-X branch. It is no longer recommended to use it.The Windows build incorporates Direct3D with pixelshaders, OpenglHQ, Innovation, Glide, zip/7z mount, Beep, NE2000 Ethernet, Graphis user interface (menu), Save/Load states, Vertical sync, CPU flags optimization, Various DOS commands (PROMPT, VOL, LABEL, MOUSE, etc) and CONFIG.SYS commands (DEVICE, BUFFERS, FILES, etc), Continuous turbo key, Core-switch key, Show details (from menu bar), Nice DOSBox icon, Font patch (cp437), MAKEIMG command, INTRO, Ctrl-break patch, DBCS support patch, Automatic mount, Printer output, MT-32 emulation (MUNT), MP3CUE, Overscan border, Stereo-swap, SDL_Resize, MemSize128, Internal 3dfx voodoo chip emulation, etc. Recent versions include DOSBox-X branch changes as well.&lt;br /&gt;
&lt;br /&gt;
* '''&amp;quot;Mega Build&amp;quot; series (by H-A-L-9000)'''&lt;br /&gt;
** Last updated: 2010-11-18&lt;br /&gt;
** SVN base version: r3661&lt;br /&gt;
** URL: http://home.arcor.de/h-a-l-9000/ (Windows binary, Linux source, Intel Mac OS X port by thedoctor45)&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?t=26170 to discuss the Mac port&lt;br /&gt;
** Description: Builds of DOSBox focused on serial/networking support. Contains the NE2000 patch, parallel port passthrough and file forwarding, virtual printer, SVGA enhacements, OPL passthrough, and others. The Windows installer contains the debug-enabled build as option.&lt;br /&gt;
&lt;br /&gt;
* '''&amp;quot;UBER BUILD&amp;quot; (by Virusek)'''&lt;br /&gt;
** Last Updated: 2010-07-23&lt;br /&gt;
** SVN base version: r3623&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?p=193022#193022 (Windows binary, source)&lt;br /&gt;
** Description: All patches from gulikoza's build (coreswitch, direct3d, glide, mt32, openglhq, physfs, NE2000, printer and oplpassthrough). Updated Glide patch by gulikoza to 24.11.2009. SDL_sound support. Some other small fixes (mostly VS2010 compatibility fixes).&lt;br /&gt;
&lt;br /&gt;
* '''Zirias'''&lt;br /&gt;
** Last Updated: 2010-05-12&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?p=186679#186679 (Debian i386 + amd64 binary &amp;amp; source packages)&lt;br /&gt;
** Description: Debian Linux APT packaged version of DOSBox with Glide support.&lt;br /&gt;
&lt;br /&gt;
* '''Tharos (by XTale)'''&lt;br /&gt;
** Last updated: 2010-03-28&lt;br /&gt;
** &amp;lt;s&amp;gt;URL: http://builds.tharos-online.de/index.php?dir=&amp;amp;sort=date&amp;amp;order=desc&amp;lt;/s&amp;gt;&lt;br /&gt;
** Notes: '''Daily builds seem to have stopped as of 3/28/10.'''&lt;br /&gt;
&lt;br /&gt;
* '''gulikoza'''&lt;br /&gt;
** Last Updated: 2009-07-09&lt;br /&gt;
** URL: http://www.si-gamer.net/gulikoza/ (Windows binary, source)&lt;br /&gt;
** Description: Build of DOSBox focused on GLIDE support.&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox for Mac OSX (by rhoenie/Marcus Herbert)'''&lt;br /&gt;
** Last updated: 2008-08-09&lt;br /&gt;
** URL: http://www.spam-filter.de/bastelstunde#dosbox&lt;br /&gt;
** Description: DosBox 0.72 for G3 &amp;amp; DosBox CVS for OSX (G4/G5/i386)&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox CVS for Linux (by Moe)'''&lt;br /&gt;
** Last updated: 2006-12-15&lt;br /&gt;
** &amp;lt;s&amp;gt;URL: http://garni.ch/dosbox/&amp;lt;/s&amp;gt;&lt;br /&gt;
** Description: Recently Moe has decided to provide a DOSBox Linux (x86, 32-bit, Athlon64-optimized) binary including some useful patches. It is built against latest CVS and includes at least these patches: addkey, adlib optimize, Innovation SSI-2001, Self-Modifying-Code optimizations, SVGA chipsets, CD-Image cycling, Glide emulation, Printer emulation.&lt;br /&gt;
** Notes: Moe is also the creator of OPENGL-HQ. OPENGL-HQ is another scaler that is implemented in SDL.dll. Unfortunately it may be some time (or never), until OPENGL-HQ is implemented in the official SDL so until then you'll have to download it from here (or compile it yourself). Neat thing about this is that you can use this SDL.DLL with any SDL program (e.g. DOSBox, SCUMMVM...).&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox with MT-32 emulation (by Canadacow)'''&lt;br /&gt;
** Last updated: 2004-10-15&lt;br /&gt;
** &amp;lt;s&amp;gt;URL: http://www.artworxinn.com/alex/downloads.htm&amp;lt;/s&amp;gt;&lt;br /&gt;
** Description: ''This build is no longer useful''; it was made before DOSBox 0.63 came out and contains MT-32 emulation code that is much older than the current Munt releases. Note that more current MT-32 emulation is also included as an unofficial feature of some of the newer SVN builds.&lt;br /&gt;
&lt;br /&gt;
==Useful Links==&lt;br /&gt;
&lt;br /&gt;
===SVN changelog===&lt;br /&gt;
The following links list the latest changes to the official DOSBox source code on its sourceforge.net SVN repository:&lt;br /&gt;
* http://source.dosbox.com/dosboxsvn.txt (auto-generated changelog provided by Qbix)&lt;br /&gt;
* http://sourceforge.net/p/dosbox/code-0/4052/log/?path=/dosbox (sourceforge.net SVN log) - '''fixed on 2017-09-20'''&lt;br /&gt;
&lt;br /&gt;
===SVN build news===&lt;br /&gt;
The following link(s) provide news related to DOSBox SVN builds:&lt;br /&gt;
* http://www.emucr.com/search/label/DOSBox (EmuCR posts with DOSBox tag, which includes news regarding DOSBox SVN builds, frontends and other DOSBox ports)&lt;br /&gt;
&lt;br /&gt;
===Debugger-enabled builds===&lt;br /&gt;
Qbix has a thread on the DOSBox forum containing links to some special DOSBox builds that have a built-in debugger:&lt;br /&gt;
* http://www.vogons.org/viewtopic.php?t=7323&lt;br /&gt;
&lt;br /&gt;
===Making your own SVN build===&lt;br /&gt;
The following DOSBoxWiki article discusses the process of making your own SVN build from the official DOSBox SVN source code:&lt;br /&gt;
* [[BuildingDOSBox]]&lt;br /&gt;
&lt;br /&gt;
===Unofficial ports===&lt;br /&gt;
The following DOSBoxWiki article discusses unofficial ports for other operating systems, which are not in any way supported by the DOSBox team.&lt;br /&gt;
* [[Unofficial ports]]&lt;br /&gt;
&lt;br /&gt;
===Snapshot of latest DOSBox SVN source code===&lt;br /&gt;
Snapshots of the latest SVN versions of the DOSBox source code are available at the following URL(s) :&lt;br /&gt;
* http://source.dosbox.com/dosboxsvn.tgz (auto-generated tarball provided by Qbix)&lt;br /&gt;
* https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/ (sourceforge.net SVN browser for official DOSBox SVN repository)&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=SVN_Builds&amp;diff=135492</id>
		<title>SVN Builds</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=SVN_Builds&amp;diff=135492"/>
		<updated>2018-07-13T23:29:08Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* List of SVN Builds */ another vanilla build that seems to be frequently updated and more usable than EmuCR's&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article is a discussion of the general purpose of DOSBox SVN builds, and a list of which known public ones exist and where to get them. The first part is a FAQ covering various questions regarding DOSBox SVN builds; it is followed by a listing, description of and links to known SVN builds, as well as a selection of useful related links.&lt;br /&gt;
&lt;br /&gt;
The official DOSBox SVN repository is hosted at sourceforge.net:&lt;br /&gt;
: https://sourceforge.net/projects/dosbox/&lt;br /&gt;
&lt;br /&gt;
==SVN Builds FAQ==&lt;br /&gt;
&lt;br /&gt;
===What are SVN builds?===&lt;br /&gt;
SVN builds are versions of DOSBox that people have built from the latest version of the DOSBox source code, which is stored on [http://www.sourceforge.net/ sourceforge.net] in something called an SVN repository. SVN builds contain changes that have been made by the DOSBox developers since the latest official release. Some enhanced SVN builds also contain unofficial features and fixes that have been created by enthusiasts in the DOSBox development community.&lt;br /&gt;
&lt;br /&gt;
===Why should I use an SVN build?===&lt;br /&gt;
Every so often a new official version of DOSBox is released. Active development continues between releases, however, with new features and fixes continuously added to DOSBox's SVN repository that eventually result in the next release. At the time of this writing, the last official release (0.74) is several years old, and is therefore missing a significant amount of work performed by the developers. If you're having trouble running a game with the current DOSBox release, it's worth trying an SVN build to see if the problem has been addressed since then. You may also want access to the new features or optimizations if you are having compatibility or performance issues.&lt;br /&gt;
&lt;br /&gt;
===Which one should I use?===&lt;br /&gt;
That's up to you. Consult the list below to see which features the different builds contain and decide which one you want to try first. If you are interested in trying an SVN build in hopes that it will fix a problem you're having in the latest release version, you should probably start with a &amp;quot;plain&amp;quot; (no-enhancements) SVN build. Also, see replies to this post from the maintainers for additional info on their builds.&lt;br /&gt;
&lt;br /&gt;
===How do I use it?===&lt;br /&gt;
Some SVN builds come packaged as a fully-functional DOSBox distribution, so you can simply unpack the archive into an empty folder and run it. Other builds contain only a custom dosbox executable binary (e.g. dosbox.exe) and possibly some supporting libraries, and require that you first install the latest official release of DOSBox and then unpack the SVN build over the top of it - replacing the release versions of the files with the SVN versions. Some developers also recommend regenerating your dosbox.conf configuration file so that you will see any new config options that have been added. Consult [http://www.vogons.org/viewtopic.php?p=68701#68701 this forum thread] for info on how to regenerate a config file.&lt;br /&gt;
&lt;br /&gt;
===What do I do if I find bugs in an SVN build?===&lt;br /&gt;
First, search the DOSBox community forums to see if it's already been reported. If it hasn't, post as much information as possible (see the [http://www.vogons.org/viewtopic.php?t=2949 help request guidelines]). ''Update:'' Note that bugs in plain SVN builds are probably the only ones of interest to the DOSBox developers. Problem reports for the other builds should be addressed to their respective maintainers, as problems could be caused by experimental patches that aren't part of the official SVN source code.&lt;br /&gt;
&lt;br /&gt;
===Where can I go to talk about SVN builds? (forum thread)===&lt;br /&gt;
Please feel free to discuss SVN build-related topics in the [http://www.vogons.org/viewtopic.php?t=9306 forum thread] where this article originally started.&lt;br /&gt;
&lt;br /&gt;
==List of SVN Builds==&lt;br /&gt;
&lt;br /&gt;
===Plain/vanilla/clean SVN builds===&lt;br /&gt;
The following SVN builds are based directly off of the official DOSBox SVN source code. Use these builds to test the latest official SVN changes:&lt;br /&gt;
&lt;br /&gt;
* '''EmuCR''' for Windows&lt;br /&gt;
** URL: http://www.emucr.com/search/label/DOSBox&lt;br /&gt;
** Notes: Updated daily, although there are reports that it may lag behind if multiple changes are checked in by the DOSBox developers on the same day followed by no changes for some time after.&lt;br /&gt;
** Compiled '''without''' screenshot, video recording and IPX support.&lt;br /&gt;
&lt;br /&gt;
* '''Dominus''' for OS X 10.4 - 10.12 (ppc/intel)&lt;br /&gt;
** URL: https://www.dropbox.com/s/kbrf5elbcu66kst/Dosbox-Snapshot.dmg?dl=1&lt;br /&gt;
** Notes: Automatically updated on changes to SVN.&lt;br /&gt;
&lt;br /&gt;
* '''Yesterplay 80''' for Windows and Linux&lt;br /&gt;
** URL: https://blog.yesterplay80.net/dosbox-ece-en/&lt;br /&gt;
** Notes: Also provides a modified DOSBox ECE (Enhanced Community Edition) build.&lt;br /&gt;
&lt;br /&gt;
===Enhanced SVN builds===&lt;br /&gt;
The following SVN builds contain additional fixes and/or features that are not officially part of DOSBox. Many people prefer them due to the included extra features that are not included in in the SVN. Note that if you have problems with these builds, it may be due to the unofficial changes that have been made by their maintainers and not the official DOSBox code itself that is to blame:&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox SVN-lfn''' (DOSBox with Long File Name (LFN), mouse copy/paste support and more) by Wengier&lt;br /&gt;
** Last updated: 2017-09-20&lt;br /&gt;
** SVN base version: r4052&lt;br /&gt;
** URL: http://www.wpdos.org/dosbox-vdos-lfn.html (introduction + source + Windows binary + links to forum discussions)&lt;br /&gt;
** URL: http://bit.ly/12jANWF (latest Windows binary + required DLLs, zipped)&lt;br /&gt;
** URL: http://bit.ly/1laDvGX (alternative Windows binary compiled with MinGW instead of Visual Studio, zipped)&lt;br /&gt;
** Description: This is an enhanced build of DOSBox based on its SVN version that adds features like Windows-style Long File Name (LFN) and mouse copy/paste support. With this both the DOSBox shell commands and many native LFN-aware DOS programs should now be able to use LFN in DOSBox, and users can also use the right mouse button to select, copy and paste text from and to DOSBox (when the mouse is not locked). It now also includes features such as automatic drive mounting, improved command-line handling, APM power off, direct parallel port passthrough used for printing, DOS APIs that communicate with the Windows clipboard, and DBCS support for displaying CJK (East Asian) characters. Windows binaries are provided, but sources should work on other platforms such as Linux and macOS/OS X too (pdcurses might be required for the cross-platform clipboard copy/paste feature). Please see README.TXT file inside the binary package for more information.&lt;br /&gt;
&lt;br /&gt;
* '''dosbox-patched''' for Ubuntu Linux (Oneiric and newer)&lt;br /&gt;
** Last updated: 2014-01-12&lt;br /&gt;
** SVN base version: ?&lt;br /&gt;
** URL: https://code.launchpad.net/~i30817/+archive/dosbox-patched&lt;br /&gt;
** Description: &amp;quot;Daily build of dosbox trunk with mt32 patch (roms go into ~/.dosbox)&amp;quot;. Automatically-built PPA packages built from DOSBox SVN trunk with Munt MT-32 emulation patch.&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox-X''' by TheGreatCodeholio&lt;br /&gt;
** Last updated: It is constantly updated&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?t=31881 (discussion + links)&lt;br /&gt;
** URL: https://github.com/joncampbell123/dosbox-x/releases&lt;br /&gt;
** Description: &amp;quot;This is a branch of DOSBox 0.74 that I have been working on and off for the past 8 months. I've been modifying a lot in the source to make the emulation more accurate, to fix other parts of the emulation, and to widen the kind of hardware DOSBox emulates. I call it &amp;quot;DOSBox-x&amp;quot; for lack of a better name.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===Obsolete SVN/CVS builds===&lt;br /&gt;
These builds appear to be no longer maintained, and are listed here for historical reference.&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox SVN Daum''' by ykhwong for Windows, OSX, and Linux&lt;br /&gt;
** Last updated: 2015-01-25&lt;br /&gt;
** SVN base version: r3894&lt;br /&gt;
** URL: http://ykhwong.x-y.net/ (Windows binary, Linux x86 source)&lt;br /&gt;
** URL: http://cafe.daum.net/dosbox&lt;br /&gt;
** Description: The last version broke this build in various places and uses out of date and not fully working changes of the DOSBox-X branch. It is no longer recommended to use it.The Windows build incorporates Direct3D with pixelshaders, OpenglHQ, Innovation, Glide, zip/7z mount, Beep, NE2000 Ethernet, Graphis user interface (menu), Save/Load states, Vertical sync, CPU flags optimization, Various DOS commands (PROMPT, VOL, LABEL, MOUSE, etc) and CONFIG.SYS commands (DEVICE, BUFFERS, FILES, etc), Continuous turbo key, Core-switch key, Show details (from menu bar), Nice DOSBox icon, Font patch (cp437), MAKEIMG command, INTRO, Ctrl-break patch, DBCS support patch, Automatic mount, Printer output, MT-32 emulation (MUNT), MP3CUE, Overscan border, Stereo-swap, SDL_Resize, MemSize128, Internal 3dfx voodoo chip emulation, etc. Recent versions include DOSBox-X branch changes as well.&lt;br /&gt;
&lt;br /&gt;
* '''&amp;quot;Mega Build&amp;quot; series (by H-A-L-9000)'''&lt;br /&gt;
** Last updated: 2010-11-18&lt;br /&gt;
** SVN base version: r3661&lt;br /&gt;
** URL: http://home.arcor.de/h-a-l-9000/ (Windows binary, Linux source, Intel Mac OS X port by thedoctor45)&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?t=26170 to discuss the Mac port&lt;br /&gt;
** Description: Builds of DOSBox focused on serial/networking support. Contains the NE2000 patch, parallel port passthrough and file forwarding, virtual printer, SVGA enhacements, OPL passthrough, and others. The Windows installer contains the debug-enabled build as option.&lt;br /&gt;
&lt;br /&gt;
* '''&amp;quot;UBER BUILD&amp;quot; (by Virusek)'''&lt;br /&gt;
** Last Updated: 2010-07-23&lt;br /&gt;
** SVN base version: r3623&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?p=193022#193022 (Windows binary, source)&lt;br /&gt;
** Description: All patches from gulikoza's build (coreswitch, direct3d, glide, mt32, openglhq, physfs, NE2000, printer and oplpassthrough). Updated Glide patch by gulikoza to 24.11.2009. SDL_sound support. Some other small fixes (mostly VS2010 compatibility fixes).&lt;br /&gt;
&lt;br /&gt;
* '''Zirias'''&lt;br /&gt;
** Last Updated: 2010-05-12&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?p=186679#186679 (Debian i386 + amd64 binary &amp;amp; source packages)&lt;br /&gt;
** Description: Debian Linux APT packaged version of DOSBox with Glide support.&lt;br /&gt;
&lt;br /&gt;
* '''Tharos (by XTale)'''&lt;br /&gt;
** Last updated: 2010-03-28&lt;br /&gt;
** &amp;lt;s&amp;gt;URL: http://builds.tharos-online.de/index.php?dir=&amp;amp;sort=date&amp;amp;order=desc&amp;lt;/s&amp;gt;&lt;br /&gt;
** Notes: '''Daily builds seem to have stopped as of 3/28/10.'''&lt;br /&gt;
&lt;br /&gt;
* '''gulikoza'''&lt;br /&gt;
** Last Updated: 2009-07-09&lt;br /&gt;
** URL: http://www.si-gamer.net/gulikoza/ (Windows binary, source)&lt;br /&gt;
** Description: Build of DOSBox focused on GLIDE support.&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox for Mac OSX (by rhoenie/Marcus Herbert)'''&lt;br /&gt;
** Last updated: 2008-08-09&lt;br /&gt;
** URL: http://www.spam-filter.de/bastelstunde#dosbox&lt;br /&gt;
** Description: DosBox 0.72 for G3 &amp;amp; DosBox CVS for OSX (G4/G5/i386)&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox CVS for Linux (by Moe)'''&lt;br /&gt;
** Last updated: 2006-12-15&lt;br /&gt;
** &amp;lt;s&amp;gt;URL: http://garni.ch/dosbox/&amp;lt;/s&amp;gt;&lt;br /&gt;
** Description: Recently Moe has decided to provide a DOSBox Linux (x86, 32-bit, Athlon64-optimized) binary including some useful patches. It is built against latest CVS and includes at least these patches: addkey, adlib optimize, Innovation SSI-2001, Self-Modifying-Code optimizations, SVGA chipsets, CD-Image cycling, Glide emulation, Printer emulation.&lt;br /&gt;
** Notes: Moe is also the creator of OPENGL-HQ. OPENGL-HQ is another scaler that is implemented in SDL.dll. Unfortunately it may be some time (or never), until OPENGL-HQ is implemented in the official SDL so until then you'll have to download it from here (or compile it yourself). Neat thing about this is that you can use this SDL.DLL with any SDL program (e.g. DOSBox, SCUMMVM...).&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox with MT-32 emulation (by Canadacow)'''&lt;br /&gt;
** Last updated: 2004-10-15&lt;br /&gt;
** &amp;lt;s&amp;gt;URL: http://www.artworxinn.com/alex/downloads.htm&amp;lt;/s&amp;gt;&lt;br /&gt;
** Description: ''This build is no longer useful''; it was made before DOSBox 0.63 came out and contains MT-32 emulation code that is much older than the current Munt releases. Note that more current MT-32 emulation is also included as an unofficial feature of some of the newer SVN builds.&lt;br /&gt;
&lt;br /&gt;
==Useful Links==&lt;br /&gt;
&lt;br /&gt;
===SVN changelog===&lt;br /&gt;
The following links list the latest changes to the official DOSBox source code on its sourceforge.net SVN repository:&lt;br /&gt;
* http://source.dosbox.com/dosboxsvn.txt (auto-generated changelog provided by Qbix)&lt;br /&gt;
* http://sourceforge.net/p/dosbox/code-0/4052/log/?path=/dosbox (sourceforge.net SVN log) - '''fixed on 2017-09-20'''&lt;br /&gt;
&lt;br /&gt;
===SVN build news===&lt;br /&gt;
The following link(s) provide news related to DOSBox SVN builds:&lt;br /&gt;
* http://www.emucr.com/search/label/DOSBox (EmuCR posts with DOSBox tag, which includes news regarding DOSBox SVN builds, frontends and other DOSBox ports)&lt;br /&gt;
&lt;br /&gt;
===Debugger-enabled builds===&lt;br /&gt;
Qbix has a thread on the DOSBox forum containing links to some special DOSBox builds that have a built-in debugger:&lt;br /&gt;
* http://www.vogons.org/viewtopic.php?t=7323&lt;br /&gt;
&lt;br /&gt;
===Making your own SVN build===&lt;br /&gt;
The following DOSBoxWiki article discusses the process of making your own SVN build from the official DOSBox SVN source code:&lt;br /&gt;
* [[BuildingDOSBox]]&lt;br /&gt;
&lt;br /&gt;
===Unofficial ports===&lt;br /&gt;
The following DOSBoxWiki article discusses unofficial ports for other operating systems, which are not in any way supported by the DOSBox team.&lt;br /&gt;
* [[Unofficial ports]]&lt;br /&gt;
&lt;br /&gt;
===Snapshot of latest DOSBox SVN source code===&lt;br /&gt;
Snapshots of the latest SVN versions of the DOSBox source code are available at the following URL(s) :&lt;br /&gt;
* http://source.dosbox.com/dosboxsvn.tgz (auto-generated tarball provided by Qbix)&lt;br /&gt;
* https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/ (sourceforge.net SVN browser for official DOSBox SVN repository)&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135491</id>
		<title>Building DOSBox with Visual Studio</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135491"/>
		<updated>2018-07-13T22:36:01Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* zlib / libpng (optional) */ ' mismatch&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;While the official Windows build environment for DOSBox is [[Building DOSBox with MinGW|MinGW]], it may also be built in Visual Studio for users more comfortable with this.&lt;br /&gt;
&lt;br /&gt;
== Get Visual Studio ==&lt;br /&gt;
Free versions of Visual Studio are available at: https://visualstudio.microsoft.com/&lt;br /&gt;
&lt;br /&gt;
The free version of Visual Studio 2017 is called the &amp;quot;Community&amp;quot; edition. Prior to this (VS2005-2015) free versions were called the &amp;quot;Express&amp;quot; edition.&lt;br /&gt;
&lt;br /&gt;
Some older versions are available at: https://visualstudio.microsoft.com/vs/older-downloads/&lt;br /&gt;
&lt;br /&gt;
When installing Visual Studio, there may be tools for multiple languages available (C++, C#, Visual Basic .NET, Java, etc.) but only the C++ tools are necessary for DOSBox.&lt;br /&gt;
&lt;br /&gt;
== Get Libraries ==&lt;br /&gt;
&lt;br /&gt;
* Required: [https://www.libsdl.org/download-1.2.php '''SDL 1.2''']&lt;br /&gt;
** https://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip (VS2013 or earlier)&lt;br /&gt;
** https://www.libsdl.org/release/SDL-1.2.15.zip (VS2015 or later)&lt;br /&gt;
&lt;br /&gt;
* Optional for screenshots and video capture:&lt;br /&gt;
** [https://zlib.net/ '''zlib'''] - https://zlib.net/fossils/zlib-1.2.8.tar.gz&lt;br /&gt;
** [http://www.libpng.org/pub/png/libpng.html '''libpng'''] - https://download.sourceforge.net/libpng/lpng1634.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for networking:&lt;br /&gt;
** [https://www.libsdl.org/projects/SDL_net/release-1.2.html '''SDL_net 1.2'''] - https://www.libsdl.org/projects/SDL_net/release/SDL_net-devel-1.2.8-VC.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for compressed audio disc images:&lt;br /&gt;
** [https://www.icculus.org/SDL_sound/ '''SDL_sound''']&lt;br /&gt;
&lt;br /&gt;
* Optional for DOS debugging tools:&lt;br /&gt;
** [https://pdcurses.sourceforge.io/ '''PDCurses''']&lt;br /&gt;
&lt;br /&gt;
== Prepare Libraries ==&lt;br /&gt;
&lt;br /&gt;
=== SDL ===&lt;br /&gt;
If using VS2013 or earlier, you can use the pre-built library in '''SDL-devel-1.2.15-VC.zip'''. For VS2015 or later you will need to rebuild it from source ('''SDL-1.2.15.zip'''):&lt;br /&gt;
* Open '''SDL-1.2.15\VisualC\SDL.sln''' and allow Visual Studio to automatically convert the solution and project to the latest version.&lt;br /&gt;
* Select the ''Release'' configuration and use the ''Build'' menu to build the solution.&lt;br /&gt;
* The following 3 files should be built:&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.dll'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.lib'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\SDLmain\Release\SDLmain.lib'''&lt;br /&gt;
* The following folder also contains relevant include files for the library:&lt;br /&gt;
** '''SDL-1.2.15\include'''&lt;br /&gt;
* If you need more info on building SDL with VS, see: '''SDL-1.2.15\VisualC.html'''&lt;br /&gt;
&lt;br /&gt;
=== zlib / libpng (optional) ===&lt;br /&gt;
Enables screenshot and video capture.&lt;br /&gt;
&lt;br /&gt;
Because '''zlib''' is a dependency of '''libpng''', a VS solution to build both at once is provided by the ''libpng'' package.&lt;br /&gt;
&lt;br /&gt;
* Unpack '''lpng1634.zip''' to create the folder: '''lpng1634'''&lt;br /&gt;
* Unpack '''zlib-1.2.8.tar.gz''' to create an adjacent folder: '''zlib-1.2.8'''&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\zlib.props''' with a text editor.&lt;br /&gt;
** Near the bottom of the file you will find '''&amp;lt;DisableSpecificWarnings&amp;gt;'''. Add ''';5045''' to the end of this list. (This disables a new spurious warning in VS2017.)&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\vstudio.sln''' and allow Visual Studio to automatically convert the solution and projects to the latest version.&lt;br /&gt;
* Select the '''Release Library''' configuration.&lt;br /&gt;
* Right click on the '''zlib''' project in the solution explorer and open its '''Properties'''.&lt;br /&gt;
** From '''Configuration Properties &amp;gt; C/C++ &amp;gt; Preprocessor &amp;gt; Preprocessor Definitions''' remove '''Z_SOLO'''. (Currently causes video capture to fail and crash.)&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Right click on the '''zlib''' project and build it.&lt;br /&gt;
* Now open the '''libpng''' project's properties.&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Build the '''libpng''' project.&lt;br /&gt;
* The following libraries should now be built:&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\zlib.lib'''&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\libpng16.lib'''&lt;br /&gt;
* Include folders:&lt;br /&gt;
** '''lpng1634'''&lt;br /&gt;
** '''zlib-1.2.8'''&lt;br /&gt;
* For more libpng build information see: '''lpng1634\INSTALL'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_net (optional) ===&lt;br /&gt;
Enables networking.&lt;br /&gt;
&lt;br /&gt;
You can use the pre-built libraries in '''SDL_net-devel-1.2.8-VC.zip'''.&lt;br /&gt;
* Library files:&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.dll'''&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.lib'''&lt;br /&gt;
* Include folder:&lt;br /&gt;
** '''SDL_net-1.2.8\include'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_sound (optional) ===&lt;br /&gt;
Enables the use of CD images with compressed audio.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
=== PDCurses (optional) ===&lt;br /&gt;
Enables a DOS debugger.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
== Get the DOSBox sources ==&lt;br /&gt;
The next step is to get DOSBox itself. At the time of writing, the latest official release of DOSBox is 0.74, available at the [[Releases]] page. However, it was released over 6 years ago, so if you want more recent source code you can go to the [[SVN Builds]] page to download the source of some SVN version of DOSBox. Since the DOSBox sources come as a &amp;lt;tt&amp;gt;.tar.gz&amp;lt;/tt&amp;gt; file, you may need a separate program to extract this. Unpack the source to the location of your choosing. For this discussion, I have chosen &amp;lt;tt&amp;gt;C:\Development\dosbox&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Set up the environment ==&lt;br /&gt;
[[Image:Vce_guide1.png|thumb|Setting the include directories for SDL]]&lt;br /&gt;
From your start menu, start VCE. After a few moments, the IDE (Integrated Development Environment) will start. The first thing we need to do is tell VCE where to find SDL. From the &amp;quot;Tools&amp;quot; menu select &amp;quot;Options&amp;quot;. When the Options menu appears, expand the category &amp;quot;Projects and Solutions&amp;quot; and choose &amp;quot;VC++ Directories&amp;quot;. From the directories pulldown, choose to show the directories for include files, click the folder icon and add the folder for the SDL includes. If you have been following this guide literally, that would &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13\include&amp;lt;/tt&amp;gt;. Next, elect to show the directories for library files. This time, add the folder for the SDL libraries. When you have followed this guide, that would be &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13\lib&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
After you have done this, click OK to accept and close the options.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
== Set up the solution ==&lt;br /&gt;
=== Conversion wizard ===&lt;br /&gt;
[[Image:Vce_guide2.png|thumb|Conversion wizard]]&lt;br /&gt;
Open the solution provided by DOSBox. It can be found as &amp;lt;tt&amp;gt;C:\Development\dosbox\visualc_net\dosbox.sln&amp;lt;/tt&amp;gt;. If you have file extensions hidden (as they are by default), you may select &amp;quot;Solution files (*.sln)&amp;quot; from the object type dropdown to ensure you get the correct one. The first time you open the solution, VCE will present you with the Visual Studio Conversion Wizard, because the solution included in the DOSBox distribution is for an older version of Visual C++. You can simply click Finish and be done with it. If you want, you can take a look at the conversion log, but the information in there is not particularly interesting.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
=== Dependencies ===&lt;br /&gt;
[[Image:Vce_guide3.png|thumb|Editing the additional dependencies]]&lt;br /&gt;
Now that the solution has been opened, it is necessary to disable some of the optional features of DOSBox. From the &amp;quot;Project&amp;quot; menu select &amp;quot;dosbox Properties&amp;quot;. Expand the &amp;quot;Configuration Properties&amp;quot; and then the &amp;quot;Linker&amp;quot; category. Then choose &amp;quot;Input&amp;quot;. From the properties on the right, you will need to remove some of the &amp;quot;Additional Dependencies&amp;quot;. With the setup I have described here, I need to remove '''sdl_net.lib''', '''zlib.lib''', '''libpng.lib''' and '''curses.lib''' (you will also not need the odbc32.lib and odbccp32.lib references, but there is no harm in leaving them). Apply the changes and use the dropdown at the top left to switch to the Release configuration. Repeat the previous step, removing those same references and again apply the changes.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
=== Configuration setup ===&lt;br /&gt;
[[Image:Vce_guide4.png|thumb|Adjusting the config.h file]]&lt;br /&gt;
In the Solution Explorer, browse down the solution into &amp;quot;Source files&amp;quot; and then &amp;quot;visualc&amp;quot;. Open the file &amp;lt;tt&amp;gt;config.h&amp;lt;/tt&amp;gt; listed there and do some editing. Find the line that reads&lt;br /&gt;
 #define C_SSHOT 1&lt;br /&gt;
and change the 1 to a 0. Do the same for the lines mentioning &amp;lt;tt&amp;gt;C_MODEM&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;C_IPX&amp;lt;/tt&amp;gt;. The reason we are disabling these options is that they require some extra libraries that we haven’t set up for this tutorial. Also, set &amp;lt;tt&amp;gt;C_CORE_INLINE&amp;lt;/tt&amp;gt; to 1 to enable faster CPU emulation.&lt;br /&gt;
&lt;br /&gt;
In the Solution Explorer, in the &amp;quot;Source files&amp;quot;, you will find the file &amp;lt;tt&amp;gt;winres.rc&amp;lt;/tt&amp;gt;. Right-click on that and choose &amp;quot;View code&amp;quot;. ''Remove'' the line at the top that reads&lt;br /&gt;
 #include &amp;quot;afxres.h&amp;quot;&lt;br /&gt;
When you have done this, save the solution (&amp;quot;Save all&amp;quot; from the file menu). This ensures you won’t have to repeat any of the previous steps.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The actual build ==&lt;br /&gt;
[[Image:Vce_guide5.png|thumb|Build successfully completed]]&lt;br /&gt;
Before building, right click on &amp;quot;Solution 'dosbox'&amp;quot; in the Solution Explorer and go to Properties -&amp;gt; Configuration Properties. Set the Configuration dropdown box to &amp;quot;Release&amp;quot; instead of &amp;quot;Debug&amp;quot;. This will cause VC++ to build an optimized binary without extra debug features.&lt;br /&gt;
&lt;br /&gt;
Now that all this is done, press F7 to start the build process. There will be a few warnings, but they are unimportant. The build may take a few minutes depending on the speed of your computer, but if you have followed this tutorial it will complete successfully.&lt;br /&gt;
&lt;br /&gt;
Note that to actually run the executable you have built, you will need the SDL library (&amp;lt;tt&amp;gt;SDL.DLL&amp;lt;/tt&amp;gt;) from your regular DOSBox install and place it in the &amp;lt;tt&amp;gt;C:\Development\dosbox\visualc_net&amp;lt;/tt&amp;gt; directory.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135490</id>
		<title>Building DOSBox with Visual Studio</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135490"/>
		<updated>2018-07-13T22:32:16Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Prepare Libraries */ how to prepare libpng/zlib&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;While the official Windows build environment for DOSBox is [[Building DOSBox with MinGW|MinGW]], it may also be built in Visual Studio for users more comfortable with this.&lt;br /&gt;
&lt;br /&gt;
== Get Visual Studio ==&lt;br /&gt;
Free versions of Visual Studio are available at: https://visualstudio.microsoft.com/&lt;br /&gt;
&lt;br /&gt;
The free version of Visual Studio 2017 is called the &amp;quot;Community&amp;quot; edition. Prior to this (VS2005-2015) free versions were called the &amp;quot;Express&amp;quot; edition.&lt;br /&gt;
&lt;br /&gt;
Some older versions are available at: https://visualstudio.microsoft.com/vs/older-downloads/&lt;br /&gt;
&lt;br /&gt;
When installing Visual Studio, there may be tools for multiple languages available (C++, C#, Visual Basic .NET, Java, etc.) but only the C++ tools are necessary for DOSBox.&lt;br /&gt;
&lt;br /&gt;
== Get Libraries ==&lt;br /&gt;
&lt;br /&gt;
* Required: [https://www.libsdl.org/download-1.2.php '''SDL 1.2''']&lt;br /&gt;
** https://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip (VS2013 or earlier)&lt;br /&gt;
** https://www.libsdl.org/release/SDL-1.2.15.zip (VS2015 or later)&lt;br /&gt;
&lt;br /&gt;
* Optional for screenshots and video capture:&lt;br /&gt;
** [https://zlib.net/ '''zlib'''] - https://zlib.net/fossils/zlib-1.2.8.tar.gz&lt;br /&gt;
** [http://www.libpng.org/pub/png/libpng.html '''libpng'''] - https://download.sourceforge.net/libpng/lpng1634.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for networking:&lt;br /&gt;
** [https://www.libsdl.org/projects/SDL_net/release-1.2.html '''SDL_net 1.2'''] - https://www.libsdl.org/projects/SDL_net/release/SDL_net-devel-1.2.8-VC.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for compressed audio disc images:&lt;br /&gt;
** [https://www.icculus.org/SDL_sound/ '''SDL_sound''']&lt;br /&gt;
&lt;br /&gt;
* Optional for DOS debugging tools:&lt;br /&gt;
** [https://pdcurses.sourceforge.io/ '''PDCurses''']&lt;br /&gt;
&lt;br /&gt;
== Prepare Libraries ==&lt;br /&gt;
&lt;br /&gt;
=== SDL ===&lt;br /&gt;
If using VS2013 or earlier, you can use the pre-built library in '''SDL-devel-1.2.15-VC.zip'''. For VS2015 or later you will need to rebuild it from source ('''SDL-1.2.15.zip'''):&lt;br /&gt;
* Open '''SDL-1.2.15\VisualC\SDL.sln''' and allow Visual Studio to automatically convert the solution and project to the latest version.&lt;br /&gt;
* Select the ''Release'' configuration and use the ''Build'' menu to build the solution.&lt;br /&gt;
* The following 3 files should be built:&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.dll'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.lib'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\SDLmain\Release\SDLmain.lib'''&lt;br /&gt;
* The following folder also contains relevant include files for the library:&lt;br /&gt;
** '''SDL-1.2.15\include'''&lt;br /&gt;
* If you need more info on building SDL with VS, see: '''SDL-1.2.15\VisualC.html'''&lt;br /&gt;
&lt;br /&gt;
=== zlib / libpng (optional) ===&lt;br /&gt;
Enables screenshot and video capture.&lt;br /&gt;
&lt;br /&gt;
Because '''zlib''' is a dependency of '''libpng''', a VS solution to build both at once is provided by the ''libpng'' package.&lt;br /&gt;
&lt;br /&gt;
* Unpack '''lpng1634.zip''' to create the folder: '''lpng1634'''&lt;br /&gt;
* Unpack '''zlib-1.2.8.tar.gz''' to create an adjacent folder: '''zlib-1.2.8'''&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\zlib.props''' with a text editor.&lt;br /&gt;
** Near the bottom of the file you will find '''&amp;lt;DisableSpecificWarnings&amp;gt;'''. Add ''';5045''' to the end of this list. (This disables a new spurious warning in VS2017.)&lt;br /&gt;
* Open '''lpng1634\projects\vstudio\vstudio.sln''' and allow Visual Studio to automatically convert the solution and projects to the latest version.&lt;br /&gt;
* Select the '''Release Library''' configuration.&lt;br /&gt;
* Right click on the '''zlib''' project in the solution explorer and open its '''Properties'''.&lt;br /&gt;
** From '''Configuration Properties &amp;gt; C/C++ &amp;gt; Preprocessor &amp;gt; Preprocessor Definitions''' remove '''Z_SOLO'''. (Currently causes video capture to fail and crash.)&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Right click on the '''zlib'' project and build it.&lt;br /&gt;
* Now open the '''libpng''' project's properties.&lt;br /&gt;
** Change '''Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation &amp;gt; Runtime Library''' to '''Multi-threaded DLL (/MD)'''.&lt;br /&gt;
* Build the '''libpng''' project.&lt;br /&gt;
* The following libraries should now be built:&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\zlib.lib'''&lt;br /&gt;
** '''lpng1634\projects\vstudio\Release Library\libpng16.lib'''&lt;br /&gt;
* Include folders:&lt;br /&gt;
** '''lpng1634'''&lt;br /&gt;
** '''zlib-1.2.8'''&lt;br /&gt;
* For more libpng build information see: '''lpng1634\INSTALL'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_net (optional) ===&lt;br /&gt;
Enables networking.&lt;br /&gt;
&lt;br /&gt;
You can use the pre-built libraries in '''SDL_net-devel-1.2.8-VC.zip'''.&lt;br /&gt;
* Library files:&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.dll'''&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.lib'''&lt;br /&gt;
* Include folder:&lt;br /&gt;
** '''SDL_net-1.2.8\include'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_sound (optional) ===&lt;br /&gt;
Enables the use of CD images with compressed audio.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
=== PDCurses (optional) ===&lt;br /&gt;
Enables a DOS debugger.&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
== Get the DOSBox sources ==&lt;br /&gt;
The next step is to get DOSBox itself. At the time of writing, the latest official release of DOSBox is 0.74, available at the [[Releases]] page. However, it was released over 6 years ago, so if you want more recent source code you can go to the [[SVN Builds]] page to download the source of some SVN version of DOSBox. Since the DOSBox sources come as a &amp;lt;tt&amp;gt;.tar.gz&amp;lt;/tt&amp;gt; file, you may need a separate program to extract this. Unpack the source to the location of your choosing. For this discussion, I have chosen &amp;lt;tt&amp;gt;C:\Development\dosbox&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Set up the environment ==&lt;br /&gt;
[[Image:Vce_guide1.png|thumb|Setting the include directories for SDL]]&lt;br /&gt;
From your start menu, start VCE. After a few moments, the IDE (Integrated Development Environment) will start. The first thing we need to do is tell VCE where to find SDL. From the &amp;quot;Tools&amp;quot; menu select &amp;quot;Options&amp;quot;. When the Options menu appears, expand the category &amp;quot;Projects and Solutions&amp;quot; and choose &amp;quot;VC++ Directories&amp;quot;. From the directories pulldown, choose to show the directories for include files, click the folder icon and add the folder for the SDL includes. If you have been following this guide literally, that would &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13\include&amp;lt;/tt&amp;gt;. Next, elect to show the directories for library files. This time, add the folder for the SDL libraries. When you have followed this guide, that would be &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13\lib&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
After you have done this, click OK to accept and close the options.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
== Set up the solution ==&lt;br /&gt;
=== Conversion wizard ===&lt;br /&gt;
[[Image:Vce_guide2.png|thumb|Conversion wizard]]&lt;br /&gt;
Open the solution provided by DOSBox. It can be found as &amp;lt;tt&amp;gt;C:\Development\dosbox\visualc_net\dosbox.sln&amp;lt;/tt&amp;gt;. If you have file extensions hidden (as they are by default), you may select &amp;quot;Solution files (*.sln)&amp;quot; from the object type dropdown to ensure you get the correct one. The first time you open the solution, VCE will present you with the Visual Studio Conversion Wizard, because the solution included in the DOSBox distribution is for an older version of Visual C++. You can simply click Finish and be done with it. If you want, you can take a look at the conversion log, but the information in there is not particularly interesting.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
=== Dependencies ===&lt;br /&gt;
[[Image:Vce_guide3.png|thumb|Editing the additional dependencies]]&lt;br /&gt;
Now that the solution has been opened, it is necessary to disable some of the optional features of DOSBox. From the &amp;quot;Project&amp;quot; menu select &amp;quot;dosbox Properties&amp;quot;. Expand the &amp;quot;Configuration Properties&amp;quot; and then the &amp;quot;Linker&amp;quot; category. Then choose &amp;quot;Input&amp;quot;. From the properties on the right, you will need to remove some of the &amp;quot;Additional Dependencies&amp;quot;. With the setup I have described here, I need to remove '''sdl_net.lib''', '''zlib.lib''', '''libpng.lib''' and '''curses.lib''' (you will also not need the odbc32.lib and odbccp32.lib references, but there is no harm in leaving them). Apply the changes and use the dropdown at the top left to switch to the Release configuration. Repeat the previous step, removing those same references and again apply the changes.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
=== Configuration setup ===&lt;br /&gt;
[[Image:Vce_guide4.png|thumb|Adjusting the config.h file]]&lt;br /&gt;
In the Solution Explorer, browse down the solution into &amp;quot;Source files&amp;quot; and then &amp;quot;visualc&amp;quot;. Open the file &amp;lt;tt&amp;gt;config.h&amp;lt;/tt&amp;gt; listed there and do some editing. Find the line that reads&lt;br /&gt;
 #define C_SSHOT 1&lt;br /&gt;
and change the 1 to a 0. Do the same for the lines mentioning &amp;lt;tt&amp;gt;C_MODEM&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;C_IPX&amp;lt;/tt&amp;gt;. The reason we are disabling these options is that they require some extra libraries that we haven’t set up for this tutorial. Also, set &amp;lt;tt&amp;gt;C_CORE_INLINE&amp;lt;/tt&amp;gt; to 1 to enable faster CPU emulation.&lt;br /&gt;
&lt;br /&gt;
In the Solution Explorer, in the &amp;quot;Source files&amp;quot;, you will find the file &amp;lt;tt&amp;gt;winres.rc&amp;lt;/tt&amp;gt;. Right-click on that and choose &amp;quot;View code&amp;quot;. ''Remove'' the line at the top that reads&lt;br /&gt;
 #include &amp;quot;afxres.h&amp;quot;&lt;br /&gt;
When you have done this, save the solution (&amp;quot;Save all&amp;quot; from the file menu). This ensures you won’t have to repeat any of the previous steps.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The actual build ==&lt;br /&gt;
[[Image:Vce_guide5.png|thumb|Build successfully completed]]&lt;br /&gt;
Before building, right click on &amp;quot;Solution 'dosbox'&amp;quot; in the Solution Explorer and go to Properties -&amp;gt; Configuration Properties. Set the Configuration dropdown box to &amp;quot;Release&amp;quot; instead of &amp;quot;Debug&amp;quot;. This will cause VC++ to build an optimized binary without extra debug features.&lt;br /&gt;
&lt;br /&gt;
Now that all this is done, press F7 to start the build process. There will be a few warnings, but they are unimportant. The build may take a few minutes depending on the speed of your computer, but if you have followed this tutorial it will complete successfully.&lt;br /&gt;
&lt;br /&gt;
Note that to actually run the executable you have built, you will need the SDL library (&amp;lt;tt&amp;gt;SDL.DLL&amp;lt;/tt&amp;gt;) from your regular DOSBox install and place it in the &amp;lt;tt&amp;gt;C:\Development\dosbox\visualc_net&amp;lt;/tt&amp;gt; directory.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135489</id>
		<title>Building DOSBox with Visual Studio</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135489"/>
		<updated>2018-07-13T21:56:01Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: guide to getting and preparing libraries...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;While the official Windows build environment for DOSBox is [[Building DOSBox with MinGW|MinGW]], it may also be built in Visual Studio for users more comfortable with this.&lt;br /&gt;
&lt;br /&gt;
== Get Visual Studio ==&lt;br /&gt;
Free versions of Visual Studio are available at: https://visualstudio.microsoft.com/&lt;br /&gt;
&lt;br /&gt;
The free version of Visual Studio 2017 is called the &amp;quot;Community&amp;quot; edition. Prior to this (VS2005-2015) free versions were called the &amp;quot;Express&amp;quot; edition.&lt;br /&gt;
&lt;br /&gt;
Some older versions are available at: https://visualstudio.microsoft.com/vs/older-downloads/&lt;br /&gt;
&lt;br /&gt;
When installing Visual Studio, there may be tools for multiple languages available (C++, C#, Visual Basic .NET, Java, etc.) but only the C++ tools are necessary for DOSBox.&lt;br /&gt;
&lt;br /&gt;
== Get Libraries ==&lt;br /&gt;
&lt;br /&gt;
* Required: [https://www.libsdl.org/download-1.2.php '''SDL 1.2''']&lt;br /&gt;
** https://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip (VS2013 or earlier)&lt;br /&gt;
** https://www.libsdl.org/release/SDL-1.2.15.zip (VS2015 or later)&lt;br /&gt;
&lt;br /&gt;
* Optional for screenshots and video capture:&lt;br /&gt;
** [https://zlib.net/ '''zlib'''] - https://zlib.net/fossils/zlib-1.2.8.tar.gz&lt;br /&gt;
** [http://www.libpng.org/pub/png/libpng.html '''libpng'''] - https://download.sourceforge.net/libpng/lpng1634.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for networking:&lt;br /&gt;
** [https://www.libsdl.org/projects/SDL_net/release-1.2.html '''SDL_net 1.2'''] - https://www.libsdl.org/projects/SDL_net/release/SDL_net-devel-1.2.8-VC.zip&lt;br /&gt;
&lt;br /&gt;
* Optional for compressed audio disc images:&lt;br /&gt;
** [https://www.icculus.org/SDL_sound/ '''SDL_sound''']&lt;br /&gt;
&lt;br /&gt;
* Optional for DOS debugging tools:&lt;br /&gt;
** [https://pdcurses.sourceforge.io/ '''PDCurses''']&lt;br /&gt;
&lt;br /&gt;
== Prepare Libraries ==&lt;br /&gt;
&lt;br /&gt;
=== SDL ===&lt;br /&gt;
If using VS2013 or earlier, you can use the pre-built library in '''SDL-devel-1.2.15-VC.zip'''. For VS2015 or later you will need to rebuild it from source ('''SDL-1.2.15.zip'''):&lt;br /&gt;
* Open '''SDL-1.2.15\VisualC\SDL.sln''' and allow Visual Studio to automatically convert the solution and project to the latest version.&lt;br /&gt;
* Select the ''Release'' configuration and use the ''Build'' menu to build the solution.&lt;br /&gt;
* The following 3 files should be built:&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.dll'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\Release\SDL.lib'''&lt;br /&gt;
** '''SDL-1.2.15\VisualC\SDLmain\Release\SDLmain.lib'''&lt;br /&gt;
* The following folder also contains relevant include files for the library:&lt;br /&gt;
** '''SDL-1.2.15\include'''&lt;br /&gt;
* If you need more info on building SDL with VS, see: '''SDL-1.2.15\VisualC.html'''&lt;br /&gt;
&lt;br /&gt;
=== zlib / libpng ===&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
=== SDL_net ===&lt;br /&gt;
You can use the pre-built libraries in '''SDL_net-devel-1.2.8-VC.zip'''.&lt;br /&gt;
* Library files:&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.dll'''&lt;br /&gt;
** '''SDL_net-1.2.8\lib\x86\SDL_net.lib'''&lt;br /&gt;
* Include folder:&lt;br /&gt;
** '''SDL_net-1.2.8\include'''&lt;br /&gt;
&lt;br /&gt;
=== SDL_sound ===&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
=== PDCurses ===&lt;br /&gt;
* Guide not yet written.&lt;br /&gt;
&lt;br /&gt;
== Get the DOSBox sources ==&lt;br /&gt;
The next step is to get DOSBox itself. At the time of writing, the latest official release of DOSBox is 0.74, available at the [[Releases]] page. However, it was released over 6 years ago, so if you want more recent source code you can go to the [[SVN Builds]] page to download the source of some SVN version of DOSBox. Since the DOSBox sources come as a &amp;lt;tt&amp;gt;.tar.gz&amp;lt;/tt&amp;gt; file, you may need a separate program to extract this. Unpack the source to the location of your choosing. For this discussion, I have chosen &amp;lt;tt&amp;gt;C:\Development\dosbox&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Set up the environment ==&lt;br /&gt;
[[Image:Vce_guide1.png|thumb|Setting the include directories for SDL]]&lt;br /&gt;
From your start menu, start VCE. After a few moments, the IDE (Integrated Development Environment) will start. The first thing we need to do is tell VCE where to find SDL. From the &amp;quot;Tools&amp;quot; menu select &amp;quot;Options&amp;quot;. When the Options menu appears, expand the category &amp;quot;Projects and Solutions&amp;quot; and choose &amp;quot;VC++ Directories&amp;quot;. From the directories pulldown, choose to show the directories for include files, click the folder icon and add the folder for the SDL includes. If you have been following this guide literally, that would &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13\include&amp;lt;/tt&amp;gt;. Next, elect to show the directories for library files. This time, add the folder for the SDL libraries. When you have followed this guide, that would be &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13\lib&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
After you have done this, click OK to accept and close the options.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
== Set up the solution ==&lt;br /&gt;
=== Conversion wizard ===&lt;br /&gt;
[[Image:Vce_guide2.png|thumb|Conversion wizard]]&lt;br /&gt;
Open the solution provided by DOSBox. It can be found as &amp;lt;tt&amp;gt;C:\Development\dosbox\visualc_net\dosbox.sln&amp;lt;/tt&amp;gt;. If you have file extensions hidden (as they are by default), you may select &amp;quot;Solution files (*.sln)&amp;quot; from the object type dropdown to ensure you get the correct one. The first time you open the solution, VCE will present you with the Visual Studio Conversion Wizard, because the solution included in the DOSBox distribution is for an older version of Visual C++. You can simply click Finish and be done with it. If you want, you can take a look at the conversion log, but the information in there is not particularly interesting.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
=== Dependencies ===&lt;br /&gt;
[[Image:Vce_guide3.png|thumb|Editing the additional dependencies]]&lt;br /&gt;
Now that the solution has been opened, it is necessary to disable some of the optional features of DOSBox. From the &amp;quot;Project&amp;quot; menu select &amp;quot;dosbox Properties&amp;quot;. Expand the &amp;quot;Configuration Properties&amp;quot; and then the &amp;quot;Linker&amp;quot; category. Then choose &amp;quot;Input&amp;quot;. From the properties on the right, you will need to remove some of the &amp;quot;Additional Dependencies&amp;quot;. With the setup I have described here, I need to remove '''sdl_net.lib''', '''zlib.lib''', '''libpng.lib''' and '''curses.lib''' (you will also not need the odbc32.lib and odbccp32.lib references, but there is no harm in leaving them). Apply the changes and use the dropdown at the top left to switch to the Release configuration. Repeat the previous step, removing those same references and again apply the changes.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
=== Configuration setup ===&lt;br /&gt;
[[Image:Vce_guide4.png|thumb|Adjusting the config.h file]]&lt;br /&gt;
In the Solution Explorer, browse down the solution into &amp;quot;Source files&amp;quot; and then &amp;quot;visualc&amp;quot;. Open the file &amp;lt;tt&amp;gt;config.h&amp;lt;/tt&amp;gt; listed there and do some editing. Find the line that reads&lt;br /&gt;
 #define C_SSHOT 1&lt;br /&gt;
and change the 1 to a 0. Do the same for the lines mentioning &amp;lt;tt&amp;gt;C_MODEM&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;C_IPX&amp;lt;/tt&amp;gt;. The reason we are disabling these options is that they require some extra libraries that we haven’t set up for this tutorial. Also, set &amp;lt;tt&amp;gt;C_CORE_INLINE&amp;lt;/tt&amp;gt; to 1 to enable faster CPU emulation.&lt;br /&gt;
&lt;br /&gt;
In the Solution Explorer, in the &amp;quot;Source files&amp;quot;, you will find the file &amp;lt;tt&amp;gt;winres.rc&amp;lt;/tt&amp;gt;. Right-click on that and choose &amp;quot;View code&amp;quot;. ''Remove'' the line at the top that reads&lt;br /&gt;
 #include &amp;quot;afxres.h&amp;quot;&lt;br /&gt;
When you have done this, save the solution (&amp;quot;Save all&amp;quot; from the file menu). This ensures you won’t have to repeat any of the previous steps.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The actual build ==&lt;br /&gt;
[[Image:Vce_guide5.png|thumb|Build successfully completed]]&lt;br /&gt;
Before building, right click on &amp;quot;Solution 'dosbox'&amp;quot; in the Solution Explorer and go to Properties -&amp;gt; Configuration Properties. Set the Configuration dropdown box to &amp;quot;Release&amp;quot; instead of &amp;quot;Debug&amp;quot;. This will cause VC++ to build an optimized binary without extra debug features.&lt;br /&gt;
&lt;br /&gt;
Now that all this is done, press F7 to start the build process. There will be a few warnings, but they are unimportant. The build may take a few minutes depending on the speed of your computer, but if you have followed this tutorial it will complete successfully.&lt;br /&gt;
&lt;br /&gt;
Note that to actually run the executable you have built, you will need the SDL library (&amp;lt;tt&amp;gt;SDL.DLL&amp;lt;/tt&amp;gt;) from your regular DOSBox install and place it in the &amp;lt;tt&amp;gt;C:\Development\dosbox\visualc_net&amp;lt;/tt&amp;gt; directory.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135488</id>
		<title>Building DOSBox with MinGW</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135488"/>
		<updated>2018-07-13T21:26:00Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: maybe give a tip about INSTALL too&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DOSBox is a complicated project. This document aims to provide a step by step description of how to use the MinGW developement environment to successfully build DOSBox. An alternative is to use [[Building DOSBox with Visual Studio|Microsoft Visual Studio]].&lt;br /&gt;
&lt;br /&gt;
This page will guide you through setting up MinGW to compile a current (SVN/CVS) version of DOSBox. Because of updates to compilers and libraries, this guide will not work with the 0.74 (the last official release, which is currently over 6 years old) source files.&lt;br /&gt;
&lt;br /&gt;
An alternative guide is also available on the forums: https://www.vogons.org/viewtopic.php?f=31&amp;amp;t=55706&lt;br /&gt;
&lt;br /&gt;
Additional build setup notes may be found in the latest '''INSTALL''' file: https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/INSTALL&lt;br /&gt;
&lt;br /&gt;
== Installing MinGW ==&lt;br /&gt;
* Download mingw-get-setup.exe from http://sourceforge.net/projects/mingw/&lt;br /&gt;
* Run the installer, choosing the defaults&lt;br /&gt;
* Once the '''MinGW Installation Manager''' application starts, select&lt;br /&gt;
** mingw-developer-toolkit (msys-base should be automatically added)&lt;br /&gt;
** mingw32-base&lt;br /&gt;
** mingw32-gcc-g++&lt;br /&gt;
* On the installation menu, apply changes, and confirm that you want to apply the changes&lt;br /&gt;
&lt;br /&gt;
The installation manager is going to download a bunch of files, and at the end, start installing them. Once this is done, you can close the dialog box as well as the installation manager.&lt;br /&gt;
&lt;br /&gt;
Well done, MinGW is now installed! Let's start it up.&lt;br /&gt;
&lt;br /&gt;
* Browse to '''C:\MinGW\msys\1.0'''&lt;br /&gt;
* Run '''MSYS.BAT'''&lt;br /&gt;
&lt;br /&gt;
This will start up a DOS prompt like screen, lets mount the base path&lt;br /&gt;
  mount 'c:\MinGW' /mingw&lt;br /&gt;
&lt;br /&gt;
You have now completed this section, lets move on to adding the SDL libraries to MinGW.&lt;br /&gt;
&lt;br /&gt;
== Adding the SDL libraries to MinGW ==&lt;br /&gt;
* Download the pre compiled SDL development libraries from here http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder, it's going to be something like '''C:\MinGW\msys\1.0\home\Administrator'''&lt;br /&gt;
* Switch back to the MSYS command prompt we started earlier&lt;br /&gt;
* Lets extract the downloaded files&lt;br /&gt;
  tar xvf SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* And now add the files to MinGW&lt;br /&gt;
  cd SDL-1.2.15&lt;br /&gt;
  make install-sdl prefix=/mingw&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
Cool, the SDL libraries have been added to MinGW, onto the next section.&lt;br /&gt;
&lt;br /&gt;
== Adding Direct Draw support to DOSBox (Optional) ==&lt;br /&gt;
If you want to give DOSBox the option to use the DDRAW output option, then we need to add a couple of extra libraries to MinGW&lt;br /&gt;
* Download the following file, http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the files (the -C parameter, tells tar where to extract the files to)&lt;br /&gt;
  tar xvf directx-devel.tar.gz -C /mingw&lt;br /&gt;
&lt;br /&gt;
== Adding networking support to DOSBox (Optional) ==&lt;br /&gt;
These steps show you how to add the SDL_net libraries to MinGW, which enable networking and modem for DOSBox. If you aren't going to be using DOSBox for multi player games, then you can probably skip this step.&lt;br /&gt;
* Download the SDL_net source files from https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Lets configure the libraries&lt;br /&gt;
  cd SDL_net-1.2.8&lt;br /&gt;
  ./configure --prefix=/mingw&lt;br /&gt;
* '''SDLnet.c''' will have to be modified slightly to compile. Open it with a text editor and add the following #include near the top of the file:&lt;br /&gt;
  #include &amp;lt;winerror.h&amp;gt;&lt;br /&gt;
* And now compile them&lt;br /&gt;
  make&lt;br /&gt;
* And then install them (copy the files)&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding screenshot support (Optional) ==&lt;br /&gt;
This one is a bit tricky because it relies on two libraries, zlib (libpng needs these libraries), and libpng. We are also going to be compiling the libraries statically to keep external DLL's to a minimum.&lt;br /&gt;
* Download zlib from here http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf zlib-1.2.8.tar.xz&lt;br /&gt;
* Lets build the static library&lt;br /&gt;
  cd zlib-1.2.8&lt;br /&gt;
  make -f win32/Makefile.gcc&lt;br /&gt;
* And now copy the files to /mingw&lt;br /&gt;
  cp libz.a /mingw/lib/&lt;br /&gt;
  cp zlib.h zconf.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
Cool, that wasn't too hard, onto libpng&lt;br /&gt;
* Download libpng from here https://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.18/libpng-1.6.18.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libpng-1.6.18.tar.xz&lt;br /&gt;
* Configure the library&lt;br /&gt;
  cd libpng-1.6.18&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* There is currently [https://sourceforge.net/p/libpng/bugs/273/ a problem with the configure script] that will need to be manually resolved. Open '''pnglibconf.h''' with a text editor, and you will find several #define lines near the bottom that have been erroneously split into two lines. This can be fixed by adding a backslash to the end of the affected lines:&lt;br /&gt;
  199: #define PNG_TEXT_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  201: #define PNG_TEXT_Z_DEFAULT_STRATEGY \&lt;br /&gt;
  209: #define PNG_ZLIB_VERNUM \&lt;br /&gt;
  211: #define PNG_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  213: #define PNG_Z_DEFAULT_NOFILTER_STRATEGY \&lt;br /&gt;
  215: #define PNG_Z_DEFAULT_STRATEGY \&lt;br /&gt;
* And now to compile and install the files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding support for compressed audio on diskimages (Optional) ==&lt;br /&gt;
This is for cue/bin cdrom images with compressed (ogg) audio tracks. We will be adding the libvorbis, libogg, and sdl_sound libraries. &lt;br /&gt;
* Download libogg from here http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libogg-1.3.2.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libogg-1.3.2&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download libvorbis from here http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libvorbis-1.3.5&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download sdl_sound from here https://www.icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Configure and compile&lt;br /&gt;
  cd SDL_sound-1.0.3&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Enabling the debugger (You probably don't want this) ==&lt;br /&gt;
The debugger is mainly for developers of DOSBox, so they can find out why a game isn't working.&lt;br /&gt;
* Download the PDCurses source files from http://sourceforge.net/projects/pdcurses/files/pdcurses/3.4/PDCurses-3.4.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf PDCurses-3.4.tar.gz&lt;br /&gt;
* Compile the library&lt;br /&gt;
  cd PDCurses-3.4/win32&lt;br /&gt;
  make -f gccwin32.mak DLL=N&lt;br /&gt;
* And now copy the files to your /mingw folders&lt;br /&gt;
  cp pdcurses.a /mingw/lib/libpdcurses.a&lt;br /&gt;
  cd ..&lt;br /&gt;
  cp curses.h panel.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Compiling DOSBox ==&lt;br /&gt;
* If you plan on rebuilding periodically with the latest code, you can check out the Subversion repository here: https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/&lt;br /&gt;
* Otherwise you can download a snapshot of the latest DOSBox SVN source here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
* See also [[SVN Builds]] for a list of unofficial alternative versions of DOSBox that you may wish to try instead. Many of them have additional features.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If using the snapshot, copy that file to your MSYS home folder, and extract the file&lt;br /&gt;
  tar xvf dosboxsvn.tgz&lt;br /&gt;
* Let's configure DOSBox, and tell it to use the static C library (-static-libgcc) and C++ library (-static-libstdc++) and stripping the final EXE of debug information (-s)&lt;br /&gt;
  cd dosbox&lt;br /&gt;
  ./autogen.sh&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot;&lt;br /&gt;
* For SDL_sound support, you have to extra some extra parameters so that the configure command knows where to find the audio library files (LIBS=&amp;quot;-lvorbisfile.....)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
* If you want to enable debugging (you probably don't)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot; --enable-debug&lt;br /&gt;
* And now for compiling DOSBox&lt;br /&gt;
  make&lt;br /&gt;
* The last step is to gather all the files together in a folder&lt;br /&gt;
** Create a folder with a name of your choosing&lt;br /&gt;
** Copy the dosbox.exe file located under the '''dosbox\src''' folder, e.g. '''C:\MinGW\msys\1.0\home\Administrator\dosbox\src''' to the folder you created&lt;br /&gt;
** Copy the SDL.dll file located under '''SDL-1.2.15\bin''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL-1.2.15\bin''' to the folder you created&lt;br /&gt;
** Optionally, copy the SDL_net.dll file located under '''SDL_net-1.2.8\.libs''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL_net-1.2.8\.libs''' to the folder you created&lt;br /&gt;
&lt;br /&gt;
Start up DOSBox, and see if it works.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135487</id>
		<title>Building DOSBox with MinGW</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135487"/>
		<updated>2018-07-13T21:11:37Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: linking guide by DosFreak in case it's helpful&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DOSBox is a complicated project. This document aims to provide a step by step description of how to use the MinGW developement environment to successfully build DOSBox. An alternative is to use [[Building DOSBox with Visual Studio|Microsoft Visual Studio]].&lt;br /&gt;
&lt;br /&gt;
This page will guide you through setting up MinGW to compile a current (SVN/CVS) version of DOSBox. Because of updates to compilers and libraries, this guide will not work with the 0.74 (the last official release, which is currently over 6 years old) source files.&lt;br /&gt;
&lt;br /&gt;
An alternative guide is also available on the forums: https://www.vogons.org/viewtopic.php?f=31&amp;amp;t=55706&lt;br /&gt;
&lt;br /&gt;
== Installing MinGW ==&lt;br /&gt;
* Download mingw-get-setup.exe from http://sourceforge.net/projects/mingw/&lt;br /&gt;
* Run the installer, choosing the defaults&lt;br /&gt;
* Once the '''MinGW Installation Manager''' application starts, select&lt;br /&gt;
** mingw-developer-toolkit (msys-base should be automatically added)&lt;br /&gt;
** mingw32-base&lt;br /&gt;
** mingw32-gcc-g++&lt;br /&gt;
* On the installation menu, apply changes, and confirm that you want to apply the changes&lt;br /&gt;
&lt;br /&gt;
The installation manager is going to download a bunch of files, and at the end, start installing them. Once this is done, you can close the dialog box as well as the installation manager.&lt;br /&gt;
&lt;br /&gt;
Well done, MinGW is now installed! Let's start it up.&lt;br /&gt;
&lt;br /&gt;
* Browse to '''C:\MinGW\msys\1.0'''&lt;br /&gt;
* Run '''MSYS.BAT'''&lt;br /&gt;
&lt;br /&gt;
This will start up a DOS prompt like screen, lets mount the base path&lt;br /&gt;
  mount 'c:\MinGW' /mingw&lt;br /&gt;
&lt;br /&gt;
You have now completed this section, lets move on to adding the SDL libraries to MinGW.&lt;br /&gt;
&lt;br /&gt;
== Adding the SDL libraries to MinGW ==&lt;br /&gt;
* Download the pre compiled SDL development libraries from here http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder, it's going to be something like '''C:\MinGW\msys\1.0\home\Administrator'''&lt;br /&gt;
* Switch back to the MSYS command prompt we started earlier&lt;br /&gt;
* Lets extract the downloaded files&lt;br /&gt;
  tar xvf SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* And now add the files to MinGW&lt;br /&gt;
  cd SDL-1.2.15&lt;br /&gt;
  make install-sdl prefix=/mingw&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
Cool, the SDL libraries have been added to MinGW, onto the next section.&lt;br /&gt;
&lt;br /&gt;
== Adding Direct Draw support to DOSBox (Optional) ==&lt;br /&gt;
If you want to give DOSBox the option to use the DDRAW output option, then we need to add a couple of extra libraries to MinGW&lt;br /&gt;
* Download the following file, http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the files (the -C parameter, tells tar where to extract the files to)&lt;br /&gt;
  tar xvf directx-devel.tar.gz -C /mingw&lt;br /&gt;
&lt;br /&gt;
== Adding networking support to DOSBox (Optional) ==&lt;br /&gt;
These steps show you how to add the SDL_net libraries to MinGW, which enable networking and modem for DOSBox. If you aren't going to be using DOSBox for multi player games, then you can probably skip this step.&lt;br /&gt;
* Download the SDL_net source files from https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Lets configure the libraries&lt;br /&gt;
  cd SDL_net-1.2.8&lt;br /&gt;
  ./configure --prefix=/mingw&lt;br /&gt;
* '''SDLnet.c''' will have to be modified slightly to compile. Open it with a text editor and add the following #include near the top of the file:&lt;br /&gt;
  #include &amp;lt;winerror.h&amp;gt;&lt;br /&gt;
* And now compile them&lt;br /&gt;
  make&lt;br /&gt;
* And then install them (copy the files)&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding screenshot support (Optional) ==&lt;br /&gt;
This one is a bit tricky because it relies on two libraries, zlib (libpng needs these libraries), and libpng. We are also going to be compiling the libraries statically to keep external DLL's to a minimum.&lt;br /&gt;
* Download zlib from here http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf zlib-1.2.8.tar.xz&lt;br /&gt;
* Lets build the static library&lt;br /&gt;
  cd zlib-1.2.8&lt;br /&gt;
  make -f win32/Makefile.gcc&lt;br /&gt;
* And now copy the files to /mingw&lt;br /&gt;
  cp libz.a /mingw/lib/&lt;br /&gt;
  cp zlib.h zconf.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
Cool, that wasn't too hard, onto libpng&lt;br /&gt;
* Download libpng from here https://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.18/libpng-1.6.18.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libpng-1.6.18.tar.xz&lt;br /&gt;
* Configure the library&lt;br /&gt;
  cd libpng-1.6.18&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* There is currently [https://sourceforge.net/p/libpng/bugs/273/ a problem with the configure script] that will need to be manually resolved. Open '''pnglibconf.h''' with a text editor, and you will find several #define lines near the bottom that have been erroneously split into two lines. This can be fixed by adding a backslash to the end of the affected lines:&lt;br /&gt;
  199: #define PNG_TEXT_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  201: #define PNG_TEXT_Z_DEFAULT_STRATEGY \&lt;br /&gt;
  209: #define PNG_ZLIB_VERNUM \&lt;br /&gt;
  211: #define PNG_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  213: #define PNG_Z_DEFAULT_NOFILTER_STRATEGY \&lt;br /&gt;
  215: #define PNG_Z_DEFAULT_STRATEGY \&lt;br /&gt;
* And now to compile and install the files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding support for compressed audio on diskimages (Optional) ==&lt;br /&gt;
This is for cue/bin cdrom images with compressed (ogg) audio tracks. We will be adding the libvorbis, libogg, and sdl_sound libraries. &lt;br /&gt;
* Download libogg from here http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libogg-1.3.2.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libogg-1.3.2&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download libvorbis from here http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libvorbis-1.3.5&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download sdl_sound from here https://www.icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Configure and compile&lt;br /&gt;
  cd SDL_sound-1.0.3&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Enabling the debugger (You probably don't want this) ==&lt;br /&gt;
The debugger is mainly for developers of DOSBox, so they can find out why a game isn't working.&lt;br /&gt;
* Download the PDCurses source files from http://sourceforge.net/projects/pdcurses/files/pdcurses/3.4/PDCurses-3.4.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf PDCurses-3.4.tar.gz&lt;br /&gt;
* Compile the library&lt;br /&gt;
  cd PDCurses-3.4/win32&lt;br /&gt;
  make -f gccwin32.mak DLL=N&lt;br /&gt;
* And now copy the files to your /mingw folders&lt;br /&gt;
  cp pdcurses.a /mingw/lib/libpdcurses.a&lt;br /&gt;
  cd ..&lt;br /&gt;
  cp curses.h panel.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Compiling DOSBox ==&lt;br /&gt;
* If you plan on rebuilding periodically with the latest code, you can check out the Subversion repository here: https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/&lt;br /&gt;
* Otherwise you can download a snapshot of the latest DOSBox SVN source here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
* See also [[SVN Builds]] for a list of unofficial alternative versions of DOSBox that you may wish to try instead. Many of them have additional features.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If using the snapshot, copy that file to your MSYS home folder, and extract the file&lt;br /&gt;
  tar xvf dosboxsvn.tgz&lt;br /&gt;
* Let's configure DOSBox, and tell it to use the static C library (-static-libgcc) and C++ library (-static-libstdc++) and stripping the final EXE of debug information (-s)&lt;br /&gt;
  cd dosbox&lt;br /&gt;
  ./autogen.sh&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot;&lt;br /&gt;
* For SDL_sound support, you have to extra some extra parameters so that the configure command knows where to find the audio library files (LIBS=&amp;quot;-lvorbisfile.....)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
* If you want to enable debugging (you probably don't)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot; --enable-debug&lt;br /&gt;
* And now for compiling DOSBox&lt;br /&gt;
  make&lt;br /&gt;
* The last step is to gather all the files together in a folder&lt;br /&gt;
** Create a folder with a name of your choosing&lt;br /&gt;
** Copy the dosbox.exe file located under the '''dosbox\src''' folder, e.g. '''C:\MinGW\msys\1.0\home\Administrator\dosbox\src''' to the folder you created&lt;br /&gt;
** Copy the SDL.dll file located under '''SDL-1.2.15\bin''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL-1.2.15\bin''' to the folder you created&lt;br /&gt;
** Optionally, copy the SDL_net.dll file located under '''SDL_net-1.2.8\.libs''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL_net-1.2.8\.libs''' to the folder you created&lt;br /&gt;
&lt;br /&gt;
Start up DOSBox, and see if it works.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135486</id>
		<title>Building DOSBox with Visual Studio</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135486"/>
		<updated>2018-07-13T21:01:23Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: updating lead and information about getting Visual Studio&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;While the official Windows build environment for DOSBox is [[Building DOSBox with MinGW|MinGW]], it may also be built in Visual Studio for users more comfortable with this.&lt;br /&gt;
&lt;br /&gt;
== Get Visual Studio ==&lt;br /&gt;
Free versions of Visual Studio are available at: https://visualstudio.microsoft.com/&lt;br /&gt;
&lt;br /&gt;
The free version of Visual Studio 2017 is called the &amp;quot;Community&amp;quot; edition. Prior to this (VS2005-2015) free versions were called the &amp;quot;Express&amp;quot; edition.&lt;br /&gt;
&lt;br /&gt;
Some older versions are available at: https://visualstudio.microsoft.com/vs/older-downloads/&lt;br /&gt;
&lt;br /&gt;
When installing Visual Studio, there may be tools for multiple languages available (C++, C#, Visual Basic .NET, Java, etc.) but only the C++ tools are necessary for DOSBox.&lt;br /&gt;
&lt;br /&gt;
== Get the SDL library ==&lt;br /&gt;
To be able to build DOSBox, you will also need the development libraries for SDL. At the time of writing, the most current release of SDL is 1.2.13. From the downloads section at the [http://www.libsdl.org/ SDL website] look for the Development Libraries for Win32, marked for Visual C++ 2005 Service Pack 1. The filename will be something like &amp;lt;tt&amp;gt;SDL-devel-1.2.13-VC8.zip&amp;lt;/tt&amp;gt;. Unpack this file to the location of your choosing. For this discussion, I shall place it in &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Get the DOSBox sources ==&lt;br /&gt;
The next step is to get DOSBox itself. At the time of writing, the latest official release of DOSBox is 0.74, available at the [[Releases]] page. However, it was released over 6 years ago, so if you want more recent source code you can go to the [[SVN Builds]] page to download the source of some SVN version of DOSBox. Since the DOSBox sources come as a &amp;lt;tt&amp;gt;.tar.gz&amp;lt;/tt&amp;gt; file, you may need a separate program to extract this. Unpack the source to the location of your choosing. For this discussion, I have chosen &amp;lt;tt&amp;gt;C:\Development\dosbox&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Set up the environment ==&lt;br /&gt;
[[Image:Vce_guide1.png|thumb|Setting the include directories for SDL]]&lt;br /&gt;
From your start menu, start VCE. After a few moments, the IDE (Integrated Development Environment) will start. The first thing we need to do is tell VCE where to find SDL. From the &amp;quot;Tools&amp;quot; menu select &amp;quot;Options&amp;quot;. When the Options menu appears, expand the category &amp;quot;Projects and Solutions&amp;quot; and choose &amp;quot;VC++ Directories&amp;quot;. From the directories pulldown, choose to show the directories for include files, click the folder icon and add the folder for the SDL includes. If you have been following this guide literally, that would &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13\include&amp;lt;/tt&amp;gt;. Next, elect to show the directories for library files. This time, add the folder for the SDL libraries. When you have followed this guide, that would be &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13\lib&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
After you have done this, click OK to accept and close the options.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
== Set up the solution ==&lt;br /&gt;
=== Conversion wizard ===&lt;br /&gt;
[[Image:Vce_guide2.png|thumb|Conversion wizard]]&lt;br /&gt;
Open the solution provided by DOSBox. It can be found as &amp;lt;tt&amp;gt;C:\Development\dosbox\visualc_net\dosbox.sln&amp;lt;/tt&amp;gt;. If you have file extensions hidden (as they are by default), you may select &amp;quot;Solution files (*.sln)&amp;quot; from the object type dropdown to ensure you get the correct one. The first time you open the solution, VCE will present you with the Visual Studio Conversion Wizard, because the solution included in the DOSBox distribution is for an older version of Visual C++. You can simply click Finish and be done with it. If you want, you can take a look at the conversion log, but the information in there is not particularly interesting.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
=== Dependencies ===&lt;br /&gt;
[[Image:Vce_guide3.png|thumb|Editing the additional dependencies]]&lt;br /&gt;
Now that the solution has been opened, it is necessary to disable some of the optional features of DOSBox. From the &amp;quot;Project&amp;quot; menu select &amp;quot;dosbox Properties&amp;quot;. Expand the &amp;quot;Configuration Properties&amp;quot; and then the &amp;quot;Linker&amp;quot; category. Then choose &amp;quot;Input&amp;quot;. From the properties on the right, you will need to remove some of the &amp;quot;Additional Dependencies&amp;quot;. With the setup I have described here, I need to remove '''sdl_net.lib''', '''zlib.lib''', '''libpng.lib''' and '''curses.lib''' (you will also not need the odbc32.lib and odbccp32.lib references, but there is no harm in leaving them). Apply the changes and use the dropdown at the top left to switch to the Release configuration. Repeat the previous step, removing those same references and again apply the changes.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
=== Configuration setup ===&lt;br /&gt;
[[Image:Vce_guide4.png|thumb|Adjusting the config.h file]]&lt;br /&gt;
In the Solution Explorer, browse down the solution into &amp;quot;Source files&amp;quot; and then &amp;quot;visualc&amp;quot;. Open the file &amp;lt;tt&amp;gt;config.h&amp;lt;/tt&amp;gt; listed there and do some editing. Find the line that reads&lt;br /&gt;
 #define C_SSHOT 1&lt;br /&gt;
and change the 1 to a 0. Do the same for the lines mentioning &amp;lt;tt&amp;gt;C_MODEM&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;C_IPX&amp;lt;/tt&amp;gt;. The reason we are disabling these options is that they require some extra libraries that we haven’t set up for this tutorial. Also, set &amp;lt;tt&amp;gt;C_CORE_INLINE&amp;lt;/tt&amp;gt; to 1 to enable faster CPU emulation.&lt;br /&gt;
&lt;br /&gt;
In the Solution Explorer, in the &amp;quot;Source files&amp;quot;, you will find the file &amp;lt;tt&amp;gt;winres.rc&amp;lt;/tt&amp;gt;. Right-click on that and choose &amp;quot;View code&amp;quot;. ''Remove'' the line at the top that reads&lt;br /&gt;
 #include &amp;quot;afxres.h&amp;quot;&lt;br /&gt;
When you have done this, save the solution (&amp;quot;Save all&amp;quot; from the file menu). This ensures you won’t have to repeat any of the previous steps.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The actual build ==&lt;br /&gt;
[[Image:Vce_guide5.png|thumb|Build successfully completed]]&lt;br /&gt;
Before building, right click on &amp;quot;Solution 'dosbox'&amp;quot; in the Solution Explorer and go to Properties -&amp;gt; Configuration Properties. Set the Configuration dropdown box to &amp;quot;Release&amp;quot; instead of &amp;quot;Debug&amp;quot;. This will cause VC++ to build an optimized binary without extra debug features.&lt;br /&gt;
&lt;br /&gt;
Now that all this is done, press F7 to start the build process. There will be a few warnings, but they are unimportant. The build may take a few minutes depending on the speed of your computer, but if you have followed this tutorial it will complete successfully.&lt;br /&gt;
&lt;br /&gt;
Note that to actually run the executable you have built, you will need the SDL library (&amp;lt;tt&amp;gt;SDL.DLL&amp;lt;/tt&amp;gt;) from your regular DOSBox install and place it in the &amp;lt;tt&amp;gt;C:\Development\dosbox\visualc_net&amp;lt;/tt&amp;gt; directory.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=SVN_Builds&amp;diff=135485</id>
		<title>SVN Builds</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=SVN_Builds&amp;diff=135485"/>
		<updated>2018-07-13T20:44:15Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: link to sourceforge page probably belongs in lead&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article is a discussion of the general purpose of DOSBox SVN builds, and a list of which known public ones exist and where to get them. The first part is a FAQ covering various questions regarding DOSBox SVN builds; it is followed by a listing, description of and links to known SVN builds, as well as a selection of useful related links.&lt;br /&gt;
&lt;br /&gt;
The official DOSBox SVN repository is hosted at sourceforge.net:&lt;br /&gt;
: https://sourceforge.net/projects/dosbox/&lt;br /&gt;
&lt;br /&gt;
==SVN Builds FAQ==&lt;br /&gt;
&lt;br /&gt;
===What are SVN builds?===&lt;br /&gt;
SVN builds are versions of DOSBox that people have built from the latest version of the DOSBox source code, which is stored on [http://www.sourceforge.net/ sourceforge.net] in something called an SVN repository. SVN builds contain changes that have been made by the DOSBox developers since the latest official release. Some enhanced SVN builds also contain unofficial features and fixes that have been created by enthusiasts in the DOSBox development community.&lt;br /&gt;
&lt;br /&gt;
===Why should I use an SVN build?===&lt;br /&gt;
Every so often a new official version of DOSBox is released. Active development continues between releases, however, with new features and fixes continuously added to DOSBox's SVN repository that eventually result in the next release. At the time of this writing, the last official release (0.74) is several years old, and is therefore missing a significant amount of work performed by the developers. If you're having trouble running a game with the current DOSBox release, it's worth trying an SVN build to see if the problem has been addressed since then. You may also want access to the new features or optimizations if you are having compatibility or performance issues.&lt;br /&gt;
&lt;br /&gt;
===Which one should I use?===&lt;br /&gt;
That's up to you. Consult the list below to see which features the different builds contain and decide which one you want to try first. If you are interested in trying an SVN build in hopes that it will fix a problem you're having in the latest release version, you should probably start with a &amp;quot;plain&amp;quot; (no-enhancements) SVN build. Also, see replies to this post from the maintainers for additional info on their builds.&lt;br /&gt;
&lt;br /&gt;
===How do I use it?===&lt;br /&gt;
Some SVN builds come packaged as a fully-functional DOSBox distribution, so you can simply unpack the archive into an empty folder and run it. Other builds contain only a custom dosbox executable binary (e.g. dosbox.exe) and possibly some supporting libraries, and require that you first install the latest official release of DOSBox and then unpack the SVN build over the top of it - replacing the release versions of the files with the SVN versions. Some developers also recommend regenerating your dosbox.conf configuration file so that you will see any new config options that have been added. Consult [http://www.vogons.org/viewtopic.php?p=68701#68701 this forum thread] for info on how to regenerate a config file.&lt;br /&gt;
&lt;br /&gt;
===What do I do if I find bugs in an SVN build?===&lt;br /&gt;
First, search the DOSBox community forums to see if it's already been reported. If it hasn't, post as much information as possible (see the [http://www.vogons.org/viewtopic.php?t=2949 help request guidelines]). ''Update:'' Note that bugs in plain SVN builds are probably the only ones of interest to the DOSBox developers. Problem reports for the other builds should be addressed to their respective maintainers, as problems could be caused by experimental patches that aren't part of the official SVN source code.&lt;br /&gt;
&lt;br /&gt;
===Where can I go to talk about SVN builds? (forum thread)===&lt;br /&gt;
Please feel free to discuss SVN build-related topics in the [http://www.vogons.org/viewtopic.php?t=9306 forum thread] where this article originally started.&lt;br /&gt;
&lt;br /&gt;
==List of SVN Builds==&lt;br /&gt;
&lt;br /&gt;
===Plain/vanilla/clean SVN builds===&lt;br /&gt;
The following SVN builds are based directly off of the official DOSBox SVN source code. Use these builds to test the latest official SVN changes:&lt;br /&gt;
&lt;br /&gt;
* '''EmuCR''' for Windows&lt;br /&gt;
** URL: http://www.emucr.com/search/label/DOSBox&lt;br /&gt;
** Notes: Updated daily, although there are reports that it may lag behind if multiple changes are checked in by the DOSBox developers on the same day followed by no changes for some time after.&lt;br /&gt;
** Compiled '''without''' screenshot, video recording and IPX support.&lt;br /&gt;
&lt;br /&gt;
* '''Dominus''' for OS X 10.4 - 10.12 (ppc/intel)&lt;br /&gt;
** URL: https://www.dropbox.com/s/kbrf5elbcu66kst/Dosbox-Snapshot.dmg?dl=1&lt;br /&gt;
** Notes: Automatically updated on changes to SVN.&lt;br /&gt;
&lt;br /&gt;
===Enhanced SVN builds===&lt;br /&gt;
The following SVN builds contain additional fixes and/or features that are not officially part of DOSBox. Many people prefer them due to the included extra features that are not included in in the SVN. Note that if you have problems with these builds, it may be due to the unofficial changes that have been made by their maintainers and not the official DOSBox code itself that is to blame:&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox SVN-lfn''' (DOSBox with Long File Name (LFN), mouse copy/paste support and more) by Wengier&lt;br /&gt;
** Last updated: 2017-09-20&lt;br /&gt;
** SVN base version: r4052&lt;br /&gt;
** URL: http://www.wpdos.org/dosbox-vdos-lfn.html (introduction + source + Windows binary + links to forum discussions)&lt;br /&gt;
** URL: http://bit.ly/12jANWF (latest Windows binary + required DLLs, zipped)&lt;br /&gt;
** URL: http://bit.ly/1laDvGX (alternative Windows binary compiled with MinGW instead of Visual Studio, zipped)&lt;br /&gt;
** Description: This is an enhanced build of DOSBox based on its SVN version that adds features like Windows-style Long File Name (LFN) and mouse copy/paste support. With this both the DOSBox shell commands and many native LFN-aware DOS programs should now be able to use LFN in DOSBox, and users can also use the right mouse button to select, copy and paste text from and to DOSBox (when the mouse is not locked). It now also includes features such as automatic drive mounting, improved command-line handling, APM power off, direct parallel port passthrough used for printing, DOS APIs that communicate with the Windows clipboard, and DBCS support for displaying CJK (East Asian) characters. Windows binaries are provided, but sources should work on other platforms such as Linux and macOS/OS X too (pdcurses might be required for the cross-platform clipboard copy/paste feature). Please see README.TXT file inside the binary package for more information.&lt;br /&gt;
&lt;br /&gt;
* '''dosbox-patched''' for Ubuntu Linux (Oneiric and newer)&lt;br /&gt;
** Last updated: 2014-01-12&lt;br /&gt;
** SVN base version: ?&lt;br /&gt;
** URL: https://code.launchpad.net/~i30817/+archive/dosbox-patched&lt;br /&gt;
** Description: &amp;quot;Daily build of dosbox trunk with mt32 patch (roms go into ~/.dosbox)&amp;quot;. Automatically-built PPA packages built from DOSBox SVN trunk with Munt MT-32 emulation patch.&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox-X''' by TheGreatCodeholio&lt;br /&gt;
** Last updated: It is constantly updated&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?t=31881 (discussion + links)&lt;br /&gt;
** URL: https://github.com/joncampbell123/dosbox-x/releases&lt;br /&gt;
** Description: &amp;quot;This is a branch of DOSBox 0.74 that I have been working on and off for the past 8 months. I've been modifying a lot in the source to make the emulation more accurate, to fix other parts of the emulation, and to widen the kind of hardware DOSBox emulates. I call it &amp;quot;DOSBox-x&amp;quot; for lack of a better name.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===Obsolete SVN/CVS builds===&lt;br /&gt;
These builds appear to be no longer maintained, and are listed here for historical reference.&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox SVN Daum''' by ykhwong for Windows, OSX, and Linux&lt;br /&gt;
** Last updated: 2015-01-25&lt;br /&gt;
** SVN base version: r3894&lt;br /&gt;
** URL: http://ykhwong.x-y.net/ (Windows binary, Linux x86 source)&lt;br /&gt;
** URL: http://cafe.daum.net/dosbox&lt;br /&gt;
** Description: The last version broke this build in various places and uses out of date and not fully working changes of the DOSBox-X branch. It is no longer recommended to use it.The Windows build incorporates Direct3D with pixelshaders, OpenglHQ, Innovation, Glide, zip/7z mount, Beep, NE2000 Ethernet, Graphis user interface (menu), Save/Load states, Vertical sync, CPU flags optimization, Various DOS commands (PROMPT, VOL, LABEL, MOUSE, etc) and CONFIG.SYS commands (DEVICE, BUFFERS, FILES, etc), Continuous turbo key, Core-switch key, Show details (from menu bar), Nice DOSBox icon, Font patch (cp437), MAKEIMG command, INTRO, Ctrl-break patch, DBCS support patch, Automatic mount, Printer output, MT-32 emulation (MUNT), MP3CUE, Overscan border, Stereo-swap, SDL_Resize, MemSize128, Internal 3dfx voodoo chip emulation, etc. Recent versions include DOSBox-X branch changes as well.&lt;br /&gt;
&lt;br /&gt;
* '''&amp;quot;Mega Build&amp;quot; series (by H-A-L-9000)'''&lt;br /&gt;
** Last updated: 2010-11-18&lt;br /&gt;
** SVN base version: r3661&lt;br /&gt;
** URL: http://home.arcor.de/h-a-l-9000/ (Windows binary, Linux source, Intel Mac OS X port by thedoctor45)&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?t=26170 to discuss the Mac port&lt;br /&gt;
** Description: Builds of DOSBox focused on serial/networking support. Contains the NE2000 patch, parallel port passthrough and file forwarding, virtual printer, SVGA enhacements, OPL passthrough, and others. The Windows installer contains the debug-enabled build as option.&lt;br /&gt;
&lt;br /&gt;
* '''&amp;quot;UBER BUILD&amp;quot; (by Virusek)'''&lt;br /&gt;
** Last Updated: 2010-07-23&lt;br /&gt;
** SVN base version: r3623&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?p=193022#193022 (Windows binary, source)&lt;br /&gt;
** Description: All patches from gulikoza's build (coreswitch, direct3d, glide, mt32, openglhq, physfs, NE2000, printer and oplpassthrough). Updated Glide patch by gulikoza to 24.11.2009. SDL_sound support. Some other small fixes (mostly VS2010 compatibility fixes).&lt;br /&gt;
&lt;br /&gt;
* '''Zirias'''&lt;br /&gt;
** Last Updated: 2010-05-12&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?p=186679#186679 (Debian i386 + amd64 binary &amp;amp; source packages)&lt;br /&gt;
** Description: Debian Linux APT packaged version of DOSBox with Glide support.&lt;br /&gt;
&lt;br /&gt;
* '''Tharos (by XTale)'''&lt;br /&gt;
** Last updated: 2010-03-28&lt;br /&gt;
** &amp;lt;s&amp;gt;URL: http://builds.tharos-online.de/index.php?dir=&amp;amp;sort=date&amp;amp;order=desc&amp;lt;/s&amp;gt;&lt;br /&gt;
** Notes: '''Daily builds seem to have stopped as of 3/28/10.'''&lt;br /&gt;
&lt;br /&gt;
* '''gulikoza'''&lt;br /&gt;
** Last Updated: 2009-07-09&lt;br /&gt;
** URL: http://www.si-gamer.net/gulikoza/ (Windows binary, source)&lt;br /&gt;
** Description: Build of DOSBox focused on GLIDE support.&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox for Mac OSX (by rhoenie/Marcus Herbert)'''&lt;br /&gt;
** Last updated: 2008-08-09&lt;br /&gt;
** URL: http://www.spam-filter.de/bastelstunde#dosbox&lt;br /&gt;
** Description: DosBox 0.72 for G3 &amp;amp; DosBox CVS for OSX (G4/G5/i386)&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox CVS for Linux (by Moe)'''&lt;br /&gt;
** Last updated: 2006-12-15&lt;br /&gt;
** &amp;lt;s&amp;gt;URL: http://garni.ch/dosbox/&amp;lt;/s&amp;gt;&lt;br /&gt;
** Description: Recently Moe has decided to provide a DOSBox Linux (x86, 32-bit, Athlon64-optimized) binary including some useful patches. It is built against latest CVS and includes at least these patches: addkey, adlib optimize, Innovation SSI-2001, Self-Modifying-Code optimizations, SVGA chipsets, CD-Image cycling, Glide emulation, Printer emulation.&lt;br /&gt;
** Notes: Moe is also the creator of OPENGL-HQ. OPENGL-HQ is another scaler that is implemented in SDL.dll. Unfortunately it may be some time (or never), until OPENGL-HQ is implemented in the official SDL so until then you'll have to download it from here (or compile it yourself). Neat thing about this is that you can use this SDL.DLL with any SDL program (e.g. DOSBox, SCUMMVM...).&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox with MT-32 emulation (by Canadacow)'''&lt;br /&gt;
** Last updated: 2004-10-15&lt;br /&gt;
** &amp;lt;s&amp;gt;URL: http://www.artworxinn.com/alex/downloads.htm&amp;lt;/s&amp;gt;&lt;br /&gt;
** Description: ''This build is no longer useful''; it was made before DOSBox 0.63 came out and contains MT-32 emulation code that is much older than the current Munt releases. Note that more current MT-32 emulation is also included as an unofficial feature of some of the newer SVN builds.&lt;br /&gt;
&lt;br /&gt;
==Useful Links==&lt;br /&gt;
&lt;br /&gt;
===SVN changelog===&lt;br /&gt;
The following links list the latest changes to the official DOSBox source code on its sourceforge.net SVN repository:&lt;br /&gt;
* http://source.dosbox.com/dosboxsvn.txt (auto-generated changelog provided by Qbix)&lt;br /&gt;
* http://sourceforge.net/p/dosbox/code-0/4052/log/?path=/dosbox (sourceforge.net SVN log) - '''fixed on 2017-09-20'''&lt;br /&gt;
&lt;br /&gt;
===SVN build news===&lt;br /&gt;
The following link(s) provide news related to DOSBox SVN builds:&lt;br /&gt;
* http://www.emucr.com/search/label/DOSBox (EmuCR posts with DOSBox tag, which includes news regarding DOSBox SVN builds, frontends and other DOSBox ports)&lt;br /&gt;
&lt;br /&gt;
===Debugger-enabled builds===&lt;br /&gt;
Qbix has a thread on the DOSBox forum containing links to some special DOSBox builds that have a built-in debugger:&lt;br /&gt;
* http://www.vogons.org/viewtopic.php?t=7323&lt;br /&gt;
&lt;br /&gt;
===Making your own SVN build===&lt;br /&gt;
The following DOSBoxWiki article discusses the process of making your own SVN build from the official DOSBox SVN source code:&lt;br /&gt;
* [[BuildingDOSBox]]&lt;br /&gt;
&lt;br /&gt;
===Unofficial ports===&lt;br /&gt;
The following DOSBoxWiki article discusses unofficial ports for other operating systems, which are not in any way supported by the DOSBox team.&lt;br /&gt;
* [[Unofficial ports]]&lt;br /&gt;
&lt;br /&gt;
===Snapshot of latest DOSBox SVN source code===&lt;br /&gt;
Snapshots of the latest SVN versions of the DOSBox source code are available at the following URL(s) :&lt;br /&gt;
* http://source.dosbox.com/dosboxsvn.tgz (auto-generated tarball provided by Qbix)&lt;br /&gt;
* https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/ (sourceforge.net SVN browser for official DOSBox SVN repository)&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=SVN_Builds&amp;diff=135484</id>
		<title>SVN Builds</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=SVN_Builds&amp;diff=135484"/>
		<updated>2018-07-13T20:42:40Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Snapshot of latest DOSBox SVN source code */ updating links, removing links that don't work&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article is a discussion of the general purpose of DOSBox SVN builds, and a list of which known public ones exist and where to get them. The first part is a FAQ covering various questions regarding DOSBox SVN builds; it is followed by a listing, description of and links to known SVN builds, as well as a selection of useful related links. &lt;br /&gt;
&lt;br /&gt;
==SVN Builds FAQ==&lt;br /&gt;
&lt;br /&gt;
===What are SVN builds?===&lt;br /&gt;
SVN builds are versions of DOSBox that people have built from the latest version of the DOSBox source code, which is stored on [http://www.sourceforge.net/ sourceforge.net] in something called an SVN repository. SVN builds contain changes that have been made by the DOSBox developers since the latest official release. Some enhanced SVN builds also contain unofficial features and fixes that have been created by enthusiasts in the DOSBox development community.&lt;br /&gt;
&lt;br /&gt;
===Why should I use an SVN build?===&lt;br /&gt;
Every so often a new official version of DOSBox is released. Active development continues between releases, however, with new features and fixes continuously added to DOSBox's SVN repository that eventually result in the next release. At the time of this writing, the last official release (0.74) is several years old, and is therefore missing a significant amount of work performed by the developers. If you're having trouble running a game with the current DOSBox release, it's worth trying an SVN build to see if the problem has been addressed since then. You may also want access to the new features or optimizations if you are having compatibility or performance issues.&lt;br /&gt;
&lt;br /&gt;
===Which one should I use?===&lt;br /&gt;
That's up to you. Consult the list below to see which features the different builds contain and decide which one you want to try first. If you are interested in trying an SVN build in hopes that it will fix a problem you're having in the latest release version, you should probably start with a &amp;quot;plain&amp;quot; (no-enhancements) SVN build. Also, see replies to this post from the maintainers for additional info on their builds.&lt;br /&gt;
&lt;br /&gt;
===How do I use it?===&lt;br /&gt;
Some SVN builds come packaged as a fully-functional DOSBox distribution, so you can simply unpack the archive into an empty folder and run it. Other builds contain only a custom dosbox executable binary (e.g. dosbox.exe) and possibly some supporting libraries, and require that you first install the latest official release of DOSBox and then unpack the SVN build over the top of it - replacing the release versions of the files with the SVN versions. Some developers also recommend regenerating your dosbox.conf configuration file so that you will see any new config options that have been added. Consult [http://www.vogons.org/viewtopic.php?p=68701#68701 this forum thread] for info on how to regenerate a config file.&lt;br /&gt;
&lt;br /&gt;
===What do I do if I find bugs in an SVN build?===&lt;br /&gt;
First, search the DOSBox community forums to see if it's already been reported. If it hasn't, post as much information as possible (see the [http://www.vogons.org/viewtopic.php?t=2949 help request guidelines]). ''Update:'' Note that bugs in plain SVN builds are probably the only ones of interest to the DOSBox developers. Problem reports for the other builds should be addressed to their respective maintainers, as problems could be caused by experimental patches that aren't part of the official SVN source code.&lt;br /&gt;
&lt;br /&gt;
===Where can I go to talk about SVN builds? (forum thread)===&lt;br /&gt;
Please feel free to discuss SVN build-related topics in the [http://www.vogons.org/viewtopic.php?t=9306 forum thread] where this article originally started.&lt;br /&gt;
&lt;br /&gt;
==List of SVN Builds==&lt;br /&gt;
&lt;br /&gt;
===Plain/vanilla/clean SVN builds===&lt;br /&gt;
The following SVN builds are based directly off of the official DOSBox SVN source code. Use these builds to test the latest official SVN changes:&lt;br /&gt;
&lt;br /&gt;
* '''EmuCR''' for Windows&lt;br /&gt;
** URL: http://www.emucr.com/search/label/DOSBox&lt;br /&gt;
** Notes: Updated daily, although there are reports that it may lag behind if multiple changes are checked in by the DOSBox developers on the same day followed by no changes for some time after.&lt;br /&gt;
** Compiled '''without''' screenshot, video recording and IPX support.&lt;br /&gt;
&lt;br /&gt;
* '''Dominus''' for OS X 10.4 - 10.12 (ppc/intel)&lt;br /&gt;
** URL: https://www.dropbox.com/s/kbrf5elbcu66kst/Dosbox-Snapshot.dmg?dl=1&lt;br /&gt;
** Notes: Automatically updated on changes to SVN.&lt;br /&gt;
&lt;br /&gt;
===Enhanced SVN builds===&lt;br /&gt;
The following SVN builds contain additional fixes and/or features that are not officially part of DOSBox. Many people prefer them due to the included extra features that are not included in in the SVN. Note that if you have problems with these builds, it may be due to the unofficial changes that have been made by their maintainers and not the official DOSBox code itself that is to blame:&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox SVN-lfn''' (DOSBox with Long File Name (LFN), mouse copy/paste support and more) by Wengier&lt;br /&gt;
** Last updated: 2017-09-20&lt;br /&gt;
** SVN base version: r4052&lt;br /&gt;
** URL: http://www.wpdos.org/dosbox-vdos-lfn.html (introduction + source + Windows binary + links to forum discussions)&lt;br /&gt;
** URL: http://bit.ly/12jANWF (latest Windows binary + required DLLs, zipped)&lt;br /&gt;
** URL: http://bit.ly/1laDvGX (alternative Windows binary compiled with MinGW instead of Visual Studio, zipped)&lt;br /&gt;
** Description: This is an enhanced build of DOSBox based on its SVN version that adds features like Windows-style Long File Name (LFN) and mouse copy/paste support. With this both the DOSBox shell commands and many native LFN-aware DOS programs should now be able to use LFN in DOSBox, and users can also use the right mouse button to select, copy and paste text from and to DOSBox (when the mouse is not locked). It now also includes features such as automatic drive mounting, improved command-line handling, APM power off, direct parallel port passthrough used for printing, DOS APIs that communicate with the Windows clipboard, and DBCS support for displaying CJK (East Asian) characters. Windows binaries are provided, but sources should work on other platforms such as Linux and macOS/OS X too (pdcurses might be required for the cross-platform clipboard copy/paste feature). Please see README.TXT file inside the binary package for more information.&lt;br /&gt;
&lt;br /&gt;
* '''dosbox-patched''' for Ubuntu Linux (Oneiric and newer)&lt;br /&gt;
** Last updated: 2014-01-12&lt;br /&gt;
** SVN base version: ?&lt;br /&gt;
** URL: https://code.launchpad.net/~i30817/+archive/dosbox-patched&lt;br /&gt;
** Description: &amp;quot;Daily build of dosbox trunk with mt32 patch (roms go into ~/.dosbox)&amp;quot;. Automatically-built PPA packages built from DOSBox SVN trunk with Munt MT-32 emulation patch.&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox-X''' by TheGreatCodeholio&lt;br /&gt;
** Last updated: It is constantly updated&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?t=31881 (discussion + links)&lt;br /&gt;
** URL: https://github.com/joncampbell123/dosbox-x/releases&lt;br /&gt;
** Description: &amp;quot;This is a branch of DOSBox 0.74 that I have been working on and off for the past 8 months. I've been modifying a lot in the source to make the emulation more accurate, to fix other parts of the emulation, and to widen the kind of hardware DOSBox emulates. I call it &amp;quot;DOSBox-x&amp;quot; for lack of a better name.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===Obsolete SVN/CVS builds===&lt;br /&gt;
These builds appear to be no longer maintained, and are listed here for historical reference.&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox SVN Daum''' by ykhwong for Windows, OSX, and Linux&lt;br /&gt;
** Last updated: 2015-01-25&lt;br /&gt;
** SVN base version: r3894&lt;br /&gt;
** URL: http://ykhwong.x-y.net/ (Windows binary, Linux x86 source)&lt;br /&gt;
** URL: http://cafe.daum.net/dosbox&lt;br /&gt;
** Description: The last version broke this build in various places and uses out of date and not fully working changes of the DOSBox-X branch. It is no longer recommended to use it.The Windows build incorporates Direct3D with pixelshaders, OpenglHQ, Innovation, Glide, zip/7z mount, Beep, NE2000 Ethernet, Graphis user interface (menu), Save/Load states, Vertical sync, CPU flags optimization, Various DOS commands (PROMPT, VOL, LABEL, MOUSE, etc) and CONFIG.SYS commands (DEVICE, BUFFERS, FILES, etc), Continuous turbo key, Core-switch key, Show details (from menu bar), Nice DOSBox icon, Font patch (cp437), MAKEIMG command, INTRO, Ctrl-break patch, DBCS support patch, Automatic mount, Printer output, MT-32 emulation (MUNT), MP3CUE, Overscan border, Stereo-swap, SDL_Resize, MemSize128, Internal 3dfx voodoo chip emulation, etc. Recent versions include DOSBox-X branch changes as well.&lt;br /&gt;
&lt;br /&gt;
* '''&amp;quot;Mega Build&amp;quot; series (by H-A-L-9000)'''&lt;br /&gt;
** Last updated: 2010-11-18&lt;br /&gt;
** SVN base version: r3661&lt;br /&gt;
** URL: http://home.arcor.de/h-a-l-9000/ (Windows binary, Linux source, Intel Mac OS X port by thedoctor45)&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?t=26170 to discuss the Mac port&lt;br /&gt;
** Description: Builds of DOSBox focused on serial/networking support. Contains the NE2000 patch, parallel port passthrough and file forwarding, virtual printer, SVGA enhacements, OPL passthrough, and others. The Windows installer contains the debug-enabled build as option.&lt;br /&gt;
&lt;br /&gt;
* '''&amp;quot;UBER BUILD&amp;quot; (by Virusek)'''&lt;br /&gt;
** Last Updated: 2010-07-23&lt;br /&gt;
** SVN base version: r3623&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?p=193022#193022 (Windows binary, source)&lt;br /&gt;
** Description: All patches from gulikoza's build (coreswitch, direct3d, glide, mt32, openglhq, physfs, NE2000, printer and oplpassthrough). Updated Glide patch by gulikoza to 24.11.2009. SDL_sound support. Some other small fixes (mostly VS2010 compatibility fixes).&lt;br /&gt;
&lt;br /&gt;
* '''Zirias'''&lt;br /&gt;
** Last Updated: 2010-05-12&lt;br /&gt;
** URL: http://www.vogons.org/viewtopic.php?p=186679#186679 (Debian i386 + amd64 binary &amp;amp; source packages)&lt;br /&gt;
** Description: Debian Linux APT packaged version of DOSBox with Glide support.&lt;br /&gt;
&lt;br /&gt;
* '''Tharos (by XTale)'''&lt;br /&gt;
** Last updated: 2010-03-28&lt;br /&gt;
** &amp;lt;s&amp;gt;URL: http://builds.tharos-online.de/index.php?dir=&amp;amp;sort=date&amp;amp;order=desc&amp;lt;/s&amp;gt;&lt;br /&gt;
** Notes: '''Daily builds seem to have stopped as of 3/28/10.'''&lt;br /&gt;
&lt;br /&gt;
* '''gulikoza'''&lt;br /&gt;
** Last Updated: 2009-07-09&lt;br /&gt;
** URL: http://www.si-gamer.net/gulikoza/ (Windows binary, source)&lt;br /&gt;
** Description: Build of DOSBox focused on GLIDE support.&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox for Mac OSX (by rhoenie/Marcus Herbert)'''&lt;br /&gt;
** Last updated: 2008-08-09&lt;br /&gt;
** URL: http://www.spam-filter.de/bastelstunde#dosbox&lt;br /&gt;
** Description: DosBox 0.72 for G3 &amp;amp; DosBox CVS for OSX (G4/G5/i386)&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox CVS for Linux (by Moe)'''&lt;br /&gt;
** Last updated: 2006-12-15&lt;br /&gt;
** &amp;lt;s&amp;gt;URL: http://garni.ch/dosbox/&amp;lt;/s&amp;gt;&lt;br /&gt;
** Description: Recently Moe has decided to provide a DOSBox Linux (x86, 32-bit, Athlon64-optimized) binary including some useful patches. It is built against latest CVS and includes at least these patches: addkey, adlib optimize, Innovation SSI-2001, Self-Modifying-Code optimizations, SVGA chipsets, CD-Image cycling, Glide emulation, Printer emulation.&lt;br /&gt;
** Notes: Moe is also the creator of OPENGL-HQ. OPENGL-HQ is another scaler that is implemented in SDL.dll. Unfortunately it may be some time (or never), until OPENGL-HQ is implemented in the official SDL so until then you'll have to download it from here (or compile it yourself). Neat thing about this is that you can use this SDL.DLL with any SDL program (e.g. DOSBox, SCUMMVM...).&lt;br /&gt;
&lt;br /&gt;
* '''DOSBox with MT-32 emulation (by Canadacow)'''&lt;br /&gt;
** Last updated: 2004-10-15&lt;br /&gt;
** &amp;lt;s&amp;gt;URL: http://www.artworxinn.com/alex/downloads.htm&amp;lt;/s&amp;gt;&lt;br /&gt;
** Description: ''This build is no longer useful''; it was made before DOSBox 0.63 came out and contains MT-32 emulation code that is much older than the current Munt releases. Note that more current MT-32 emulation is also included as an unofficial feature of some of the newer SVN builds.&lt;br /&gt;
&lt;br /&gt;
==Useful Links==&lt;br /&gt;
&lt;br /&gt;
===SVN changelog===&lt;br /&gt;
The following links list the latest changes to the official DOSBox source code on its sourceforge.net SVN repository:&lt;br /&gt;
* http://source.dosbox.com/dosboxsvn.txt (auto-generated changelog provided by Qbix)&lt;br /&gt;
* http://sourceforge.net/p/dosbox/code-0/4052/log/?path=/dosbox (sourceforge.net SVN log) - '''fixed on 2017-09-20'''&lt;br /&gt;
&lt;br /&gt;
===SVN build news===&lt;br /&gt;
The following link(s) provide news related to DOSBox SVN builds:&lt;br /&gt;
* http://www.emucr.com/search/label/DOSBox (EmuCR posts with DOSBox tag, which includes news regarding DOSBox SVN builds, frontends and other DOSBox ports)&lt;br /&gt;
&lt;br /&gt;
===Debugger-enabled builds===&lt;br /&gt;
Qbix has a thread on the DOSBox forum containing links to some special DOSBox builds that have a built-in debugger:&lt;br /&gt;
* http://www.vogons.org/viewtopic.php?t=7323&lt;br /&gt;
&lt;br /&gt;
===Making your own SVN build===&lt;br /&gt;
The following DOSBoxWiki article discusses the process of making your own SVN build from the official DOSBox SVN source code:&lt;br /&gt;
* [[BuildingDOSBox]]&lt;br /&gt;
&lt;br /&gt;
===Unofficial ports===&lt;br /&gt;
The following DOSBoxWiki article discusses unofficial ports for other operating systems, which are not in any way supported by the DOSBox team.&lt;br /&gt;
* [[Unofficial ports]]&lt;br /&gt;
&lt;br /&gt;
===Snapshot of latest DOSBox SVN source code===&lt;br /&gt;
Snapshots of the latest SVN versions of the DOSBox source code are available at the following URL(s) :&lt;br /&gt;
* http://source.dosbox.com/dosboxsvn.tgz (auto-generated tarball provided by Qbix)&lt;br /&gt;
* https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/ (sourceforge.net SVN browser for official DOSBox SVN repository)&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135483</id>
		<title>Building DOSBox with MinGW</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135483"/>
		<updated>2018-07-13T20:34:38Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: mv Visual C 2008 Express to Visual Studio&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DOSBox is a complicated project. This document aims to provide a step by step description of how to use the MinGW developement environment to successfully build DOSBox. An alternative is to use [[Building DOSBox with Visual Studio|Microsoft Visual Studio]].&lt;br /&gt;
&lt;br /&gt;
This page will guide you through setting up MinGW to compile a current (SVN/CVS) version of DOSBox. Because of updates to compilers and libraries, this guide will not work with the 0.74 (the last official release, which is currently over 6 years old) source files.&lt;br /&gt;
&lt;br /&gt;
== Installing MinGW ==&lt;br /&gt;
* Download mingw-get-setup.exe from http://sourceforge.net/projects/mingw/&lt;br /&gt;
* Run the installer, choosing the defaults&lt;br /&gt;
* Once the '''MinGW Installation Manager''' application starts, select&lt;br /&gt;
** mingw-developer-toolkit (msys-base should be automatically added)&lt;br /&gt;
** mingw32-base&lt;br /&gt;
** mingw32-gcc-g++&lt;br /&gt;
* On the installation menu, apply changes, and confirm that you want to apply the changes&lt;br /&gt;
&lt;br /&gt;
The installation manager is going to download a bunch of files, and at the end, start installing them. Once this is done, you can close the dialog box as well as the installation manager.&lt;br /&gt;
&lt;br /&gt;
Well done, MinGW is now installed! Let's start it up.&lt;br /&gt;
&lt;br /&gt;
* Browse to '''C:\MinGW\msys\1.0'''&lt;br /&gt;
* Run '''MSYS.BAT'''&lt;br /&gt;
&lt;br /&gt;
This will start up a DOS prompt like screen, lets mount the base path&lt;br /&gt;
  mount 'c:\MinGW' /mingw&lt;br /&gt;
&lt;br /&gt;
You have now completed this section, lets move on to adding the SDL libraries to MinGW.&lt;br /&gt;
&lt;br /&gt;
== Adding the SDL libraries to MinGW ==&lt;br /&gt;
* Download the pre compiled SDL development libraries from here http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder, it's going to be something like '''C:\MinGW\msys\1.0\home\Administrator'''&lt;br /&gt;
* Switch back to the MSYS command prompt we started earlier&lt;br /&gt;
* Lets extract the downloaded files&lt;br /&gt;
  tar xvf SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* And now add the files to MinGW&lt;br /&gt;
  cd SDL-1.2.15&lt;br /&gt;
  make install-sdl prefix=/mingw&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
Cool, the SDL libraries have been added to MinGW, onto the next section.&lt;br /&gt;
&lt;br /&gt;
== Adding Direct Draw support to DOSBox (Optional) ==&lt;br /&gt;
If you want to give DOSBox the option to use the DDRAW output option, then we need to add a couple of extra libraries to MinGW&lt;br /&gt;
* Download the following file, http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the files (the -C parameter, tells tar where to extract the files to)&lt;br /&gt;
  tar xvf directx-devel.tar.gz -C /mingw&lt;br /&gt;
&lt;br /&gt;
== Adding networking support to DOSBox (Optional) ==&lt;br /&gt;
These steps show you how to add the SDL_net libraries to MinGW, which enable networking and modem for DOSBox. If you aren't going to be using DOSBox for multi player games, then you can probably skip this step.&lt;br /&gt;
* Download the SDL_net source files from https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Lets configure the libraries&lt;br /&gt;
  cd SDL_net-1.2.8&lt;br /&gt;
  ./configure --prefix=/mingw&lt;br /&gt;
* '''SDLnet.c''' will have to be modified slightly to compile. Open it with a text editor and add the following #include near the top of the file:&lt;br /&gt;
  #include &amp;lt;winerror.h&amp;gt;&lt;br /&gt;
* And now compile them&lt;br /&gt;
  make&lt;br /&gt;
* And then install them (copy the files)&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding screenshot support (Optional) ==&lt;br /&gt;
This one is a bit tricky because it relies on two libraries, zlib (libpng needs these libraries), and libpng. We are also going to be compiling the libraries statically to keep external DLL's to a minimum.&lt;br /&gt;
* Download zlib from here http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf zlib-1.2.8.tar.xz&lt;br /&gt;
* Lets build the static library&lt;br /&gt;
  cd zlib-1.2.8&lt;br /&gt;
  make -f win32/Makefile.gcc&lt;br /&gt;
* And now copy the files to /mingw&lt;br /&gt;
  cp libz.a /mingw/lib/&lt;br /&gt;
  cp zlib.h zconf.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
Cool, that wasn't too hard, onto libpng&lt;br /&gt;
* Download libpng from here https://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.18/libpng-1.6.18.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libpng-1.6.18.tar.xz&lt;br /&gt;
* Configure the library&lt;br /&gt;
  cd libpng-1.6.18&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* There is currently [https://sourceforge.net/p/libpng/bugs/273/ a problem with the configure script] that will need to be manually resolved. Open '''pnglibconf.h''' with a text editor, and you will find several #define lines near the bottom that have been erroneously split into two lines. This can be fixed by adding a backslash to the end of the affected lines:&lt;br /&gt;
  199: #define PNG_TEXT_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  201: #define PNG_TEXT_Z_DEFAULT_STRATEGY \&lt;br /&gt;
  209: #define PNG_ZLIB_VERNUM \&lt;br /&gt;
  211: #define PNG_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  213: #define PNG_Z_DEFAULT_NOFILTER_STRATEGY \&lt;br /&gt;
  215: #define PNG_Z_DEFAULT_STRATEGY \&lt;br /&gt;
* And now to compile and install the files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding support for compressed audio on diskimages (Optional) ==&lt;br /&gt;
This is for cue/bin cdrom images with compressed (ogg) audio tracks. We will be adding the libvorbis, libogg, and sdl_sound libraries. &lt;br /&gt;
* Download libogg from here http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libogg-1.3.2.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libogg-1.3.2&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download libvorbis from here http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libvorbis-1.3.5&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download sdl_sound from here https://www.icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Configure and compile&lt;br /&gt;
  cd SDL_sound-1.0.3&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Enabling the debugger (You probably don't want this) ==&lt;br /&gt;
The debugger is mainly for developers of DOSBox, so they can find out why a game isn't working.&lt;br /&gt;
* Download the PDCurses source files from http://sourceforge.net/projects/pdcurses/files/pdcurses/3.4/PDCurses-3.4.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf PDCurses-3.4.tar.gz&lt;br /&gt;
* Compile the library&lt;br /&gt;
  cd PDCurses-3.4/win32&lt;br /&gt;
  make -f gccwin32.mak DLL=N&lt;br /&gt;
* And now copy the files to your /mingw folders&lt;br /&gt;
  cp pdcurses.a /mingw/lib/libpdcurses.a&lt;br /&gt;
  cd ..&lt;br /&gt;
  cp curses.h panel.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Compiling DOSBox ==&lt;br /&gt;
* If you plan on rebuilding periodically with the latest code, you can check out the Subversion repository here: https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/&lt;br /&gt;
* Otherwise you can download a snapshot of the latest DOSBox SVN source here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
* See also [[SVN Builds]] for a list of unofficial alternative versions of DOSBox that you may wish to try instead. Many of them have additional features.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If using the snapshot, copy that file to your MSYS home folder, and extract the file&lt;br /&gt;
  tar xvf dosboxsvn.tgz&lt;br /&gt;
* Let's configure DOSBox, and tell it to use the static C library (-static-libgcc) and C++ library (-static-libstdc++) and stripping the final EXE of debug information (-s)&lt;br /&gt;
  cd dosbox&lt;br /&gt;
  ./autogen.sh&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot;&lt;br /&gt;
* For SDL_sound support, you have to extra some extra parameters so that the configure command knows where to find the audio library files (LIBS=&amp;quot;-lvorbisfile.....)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
* If you want to enable debugging (you probably don't)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot; --enable-debug&lt;br /&gt;
* And now for compiling DOSBox&lt;br /&gt;
  make&lt;br /&gt;
* The last step is to gather all the files together in a folder&lt;br /&gt;
** Create a folder with a name of your choosing&lt;br /&gt;
** Copy the dosbox.exe file located under the '''dosbox\src''' folder, e.g. '''C:\MinGW\msys\1.0\home\Administrator\dosbox\src''' to the folder you created&lt;br /&gt;
** Copy the SDL.dll file located under '''SDL-1.2.15\bin''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL-1.2.15\bin''' to the folder you created&lt;br /&gt;
** Optionally, copy the SDL_net.dll file located under '''SDL_net-1.2.8\.libs''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL_net-1.2.8\.libs''' to the folder you created&lt;br /&gt;
&lt;br /&gt;
Start up DOSBox, and see if it works.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=BuildingDOSBox&amp;diff=135482</id>
		<title>BuildingDOSBox</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=BuildingDOSBox&amp;diff=135482"/>
		<updated>2018-07-13T20:33:55Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: mv Visual C 2008 Express to Visual Studio&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You can build your own copy of DOSBox under Windows using either MinGW or Microsoft Visual Studio.&lt;br /&gt;
&lt;br /&gt;
For more information on building DOSBox please see:&lt;br /&gt;
*[[Building DOSBox with MinGW]]&lt;br /&gt;
*[[Building DOSBox with Visual Studio]]&lt;br /&gt;
&lt;br /&gt;
See also [[SVN Builds]] for plain and enhanced SVN builds and [[unofficial ports]] for other ports.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Main_Page&amp;diff=135481</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Main_Page&amp;diff=135481"/>
		<updated>2018-07-13T20:31:14Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Advanced Topics */ mv Visual C 2008 Express to Visual Studio&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''&lt;br /&gt;
=Welcome to the Wiki page of the DOSBox project=&lt;br /&gt;
&lt;br /&gt;
'''DOSBox''' emulates an Intel x86 PC, complete with [[Sound|sound]], [[Display|graphics]], [[Input|mouse]], [[Input|joystick]], [[Connectivity|modem]], etc., necessary for running many old MS-DOS [[GAMES|games]] that simply cannot be run on modern PCs and operating systems, such as Microsoft Windows XP, Windows Vista, Linux and FreeBSD. However, it is not restricted to running only games. In theory, any MS-DOS or PC-DOS (referred to commonly as &amp;quot;DOS&amp;quot;)  [[Software|application]] should run in DOSBox, but the emphasis has been on getting DOS [[GAMES|games]] to run smoothly, which means that communication, networking and printer support are still in early development.&lt;br /&gt;
&lt;br /&gt;
DOSBox also comes with its own [[Command Line|DOS-like command prompt]]. It is still quite rudimentary and lacks many of the features found in MS-DOS, but it is sufficient for installing and running most DOS [[GAMES|games]].&lt;br /&gt;
&lt;br /&gt;
DOSBox has a lively, user-supported [http://www.vogons.org/viewforum.php?f=53 community forum] hosted at VOGONS (Very Old Games On New Systems).  Feel very very free to drop by if you have questions about DOSBox!&lt;br /&gt;
&lt;br /&gt;
==General Information==&lt;br /&gt;
*[[Releases]] - Download DOSBox&lt;br /&gt;
*[[System Requirements]]&lt;br /&gt;
*[[DOSBox_FAQ|Frequently Asked Questions]] (FAQ)&lt;br /&gt;
*Guides&lt;br /&gt;
**[[Basic_Setup_and_Installation_of_DosBox|Basic Setup and Installation of DOSBox]]&lt;br /&gt;
***[[DOSBox and Windows Vista|Vista Specific Issues]]&lt;br /&gt;
***[[DOSBox and Mac OSX|Mac OSX Specific Issues]]&lt;br /&gt;
***[[Mac OSX Advanced]]&lt;br /&gt;
***[[Recording Video]]&lt;br /&gt;
**[[Contributing to this Wiki]]&lt;br /&gt;
**[[GAMES|Games]] that DOSBox can (or can't) run&lt;br /&gt;
**[[Software]] applications that DOSBox can (or can't) run&lt;br /&gt;
**[[TOOLS|Tools]] that can assist either playing games or using DOSBox generally&lt;br /&gt;
**[[DOSBoxFrontends|Frontends]] - simplifies running and understanding DOSBox.&lt;br /&gt;
**[[Performance|Running Resource Demanding Games]]&lt;br /&gt;
*[[Special Thanks]]&lt;br /&gt;
*[[Contact]]&lt;br /&gt;
&lt;br /&gt;
==More Specific Topics==&lt;br /&gt;
*[[Usage| DOSBox.exe Supported Parameters]]&lt;br /&gt;
*[[ZDrive|Z:\&amp;gt; Prompt]]&lt;br /&gt;
*[[Commands|Command Line Utilities]]&lt;br /&gt;
**[[MOUNT|Mounting your CD-ROM in DOSBox]]&lt;br /&gt;
*[[Special Keys]]&lt;br /&gt;
*[[dosbox.conf|The Configuration File]] (dosbox.conf)&lt;br /&gt;
**[[Associating the Configuration File in Windows]]&lt;br /&gt;
*[[Language File|The Language File]]&lt;br /&gt;
*[[Keymapper|The Keymapper]]&lt;br /&gt;
*[[Ubuntu Configuration|Ubuntu Configuration]]&lt;br /&gt;
*[[Network_Setup|Network Setup]] (SerialPPP, SLIP and IPX-tunneling)&lt;br /&gt;
*[[DOSBoxShortcuts|DOSBox Shortcuts]]&lt;br /&gt;
*[[GOG_games_that_use_DOSBox|GOG Games that use DOSBox]] - An overview&lt;br /&gt;
&lt;br /&gt;
==DOSBox resources==&lt;br /&gt;
*[[SVN Builds|DOSBox SVN Builds]] - Plain and enhanced SVN builds of DOSBox&lt;br /&gt;
*[[Unofficial ports]] - DOSBox for other operating systems and hardware platforms (unsupported)&lt;br /&gt;
*[http://dosbox.cvs.sourceforge.net/dosbox/dosbox/README?view=markup DOSBox README File]&lt;br /&gt;
*[http://dosbox.com/comp_list.php List of Games and Applications] (and how to install and run them)&lt;br /&gt;
*[http://www.vogons.org/viewforum.php?f=53 DOSBox community forum]&lt;br /&gt;
&amp;lt;!-- *[http://dosbox.sourceforge.net/oldwiki/ The original DOSBox Wiki] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Advanced Topics==&lt;br /&gt;
*[[BuildingDOSBox]] - Building your own version of DOSBox&lt;br /&gt;
**[[Building DOSBox with MinGW]]&lt;br /&gt;
**[[Building DOSBox with Visual Studio]]&lt;br /&gt;
*[https://wiki.libsdl.org/FAQUsingSDL Using SDL FAQ] (SDL environment variables that can make or break things)&lt;br /&gt;
*[[Special:Allpages|Index of all articles]]&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_C_2008_Express&amp;diff=135480</id>
		<title>Building DOSBox with Visual C 2008 Express</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_C_2008_Express&amp;diff=135480"/>
		<updated>2018-07-13T20:29:53Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: Rainwarrior moved page Building DOSBox with Visual C 2008 Express to Building DOSBox with Visual Studio: giving this page a new title that isn't permanently fixed in time&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Building DOSBox with Visual Studio]]&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135479</id>
		<title>Building DOSBox with Visual Studio</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_Visual_Studio&amp;diff=135479"/>
		<updated>2018-07-13T20:29:53Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: Rainwarrior moved page Building DOSBox with Visual C 2008 Express to Building DOSBox with Visual Studio: giving this page a new title that isn't permanently fixed in time&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Building DOSBox with Visual C++ 2008 Express}}&lt;br /&gt;
Note: The title of this page should actually be &amp;quot;''Building DOSBox with Visual C++ 2008 Express''&amp;quot;, but the Wiki software does not allow the use of the + character in a title.&lt;br /&gt;
&lt;br /&gt;
DOSBox is a complicated project. This document aims to provide a step by step description of how to use the free Express Edition of Microsoft's Visual C++ 2008 to successfully build DOSBox. An alternative is to use [[Building DOSBox with MinGW|MinGW]].&lt;br /&gt;
&lt;br /&gt;
== Get Visual C++ 2008 Express ==&lt;br /&gt;
Microsoft provides the Express edition of Visual C++ 2008 for free. Download VCE [http://www.microsoft.com/Express/vc/ directly from Microsoft] and install it. When installing, you don’t need to select any of the optional components like the Silverlight runtime, SQL Server or the MSDN Express Library. After the installation is complete, you will need to restart your computer.&lt;br /&gt;
&lt;br /&gt;
== Get the SDL library ==&lt;br /&gt;
To be able to build DOSBox, you will also need the development libraries for SDL. At the time of writing, the most current release of SDL is 1.2.13. From the downloads section at the [http://www.libsdl.org/ SDL website] look for the Development Libraries for Win32, marked for Visual C++ 2005 Service Pack 1. The filename will be something like &amp;lt;tt&amp;gt;SDL-devel-1.2.13-VC8.zip&amp;lt;/tt&amp;gt;. Unpack this file to the location of your choosing. For this discussion, I shall place it in &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Get the DOSBox sources ==&lt;br /&gt;
The next step is to get DOSBox itself. At the time of writing, the latest official release of DOSBox is 0.74, available at the [[Releases]] page. However, it was released over 6 years ago, so if you want more recent source code you can go to the [[SVN Builds]] page to download the source of some SVN version of DOSBox. Since the DOSBox sources come as a &amp;lt;tt&amp;gt;.tar.gz&amp;lt;/tt&amp;gt; file, you may need a separate program to extract this. Unpack the source to the location of your choosing. For this discussion, I have chosen &amp;lt;tt&amp;gt;C:\Development\dosbox&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Set up the environment ==&lt;br /&gt;
[[Image:Vce_guide1.png|thumb|Setting the include directories for SDL]]&lt;br /&gt;
From your start menu, start VCE. After a few moments, the IDE (Integrated Development Environment) will start. The first thing we need to do is tell VCE where to find SDL. From the &amp;quot;Tools&amp;quot; menu select &amp;quot;Options&amp;quot;. When the Options menu appears, expand the category &amp;quot;Projects and Solutions&amp;quot; and choose &amp;quot;VC++ Directories&amp;quot;. From the directories pulldown, choose to show the directories for include files, click the folder icon and add the folder for the SDL includes. If you have been following this guide literally, that would &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13\include&amp;lt;/tt&amp;gt;. Next, elect to show the directories for library files. This time, add the folder for the SDL libraries. When you have followed this guide, that would be &amp;lt;tt&amp;gt;C:\Development\SDL-1.2.13\lib&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
After you have done this, click OK to accept and close the options.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
== Set up the solution ==&lt;br /&gt;
=== Conversion wizard ===&lt;br /&gt;
[[Image:Vce_guide2.png|thumb|Conversion wizard]]&lt;br /&gt;
Open the solution provided by DOSBox. It can be found as &amp;lt;tt&amp;gt;C:\Development\dosbox\visualc_net\dosbox.sln&amp;lt;/tt&amp;gt;. If you have file extensions hidden (as they are by default), you may select &amp;quot;Solution files (*.sln)&amp;quot; from the object type dropdown to ensure you get the correct one. The first time you open the solution, VCE will present you with the Visual Studio Conversion Wizard, because the solution included in the DOSBox distribution is for an older version of Visual C++. You can simply click Finish and be done with it. If you want, you can take a look at the conversion log, but the information in there is not particularly interesting.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
=== Dependencies ===&lt;br /&gt;
[[Image:Vce_guide3.png|thumb|Editing the additional dependencies]]&lt;br /&gt;
Now that the solution has been opened, it is necessary to disable some of the optional features of DOSBox. From the &amp;quot;Project&amp;quot; menu select &amp;quot;dosbox Properties&amp;quot;. Expand the &amp;quot;Configuration Properties&amp;quot; and then the &amp;quot;Linker&amp;quot; category. Then choose &amp;quot;Input&amp;quot;. From the properties on the right, you will need to remove some of the &amp;quot;Additional Dependencies&amp;quot;. With the setup I have described here, I need to remove '''sdl_net.lib''', '''zlib.lib''', '''libpng.lib''' and '''curses.lib''' (you will also not need the odbc32.lib and odbccp32.lib references, but there is no harm in leaving them). Apply the changes and use the dropdown at the top left to switch to the Release configuration. Repeat the previous step, removing those same references and again apply the changes.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
=== Configuration setup ===&lt;br /&gt;
[[Image:Vce_guide4.png|thumb|Adjusting the config.h file]]&lt;br /&gt;
In the Solution Explorer, browse down the solution into &amp;quot;Source files&amp;quot; and then &amp;quot;visualc&amp;quot;. Open the file &amp;lt;tt&amp;gt;config.h&amp;lt;/tt&amp;gt; listed there and do some editing. Find the line that reads&lt;br /&gt;
 #define C_SSHOT 1&lt;br /&gt;
and change the 1 to a 0. Do the same for the lines mentioning &amp;lt;tt&amp;gt;C_MODEM&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;C_IPX&amp;lt;/tt&amp;gt;. The reason we are disabling these options is that they require some extra libraries that we haven’t set up for this tutorial. Also, set &amp;lt;tt&amp;gt;C_CORE_INLINE&amp;lt;/tt&amp;gt; to 1 to enable faster CPU emulation.&lt;br /&gt;
&lt;br /&gt;
In the Solution Explorer, in the &amp;quot;Source files&amp;quot;, you will find the file &amp;lt;tt&amp;gt;winres.rc&amp;lt;/tt&amp;gt;. Right-click on that and choose &amp;quot;View code&amp;quot;. ''Remove'' the line at the top that reads&lt;br /&gt;
 #include &amp;quot;afxres.h&amp;quot;&lt;br /&gt;
When you have done this, save the solution (&amp;quot;Save all&amp;quot; from the file menu). This ensures you won’t have to repeat any of the previous steps.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The actual build ==&lt;br /&gt;
[[Image:Vce_guide5.png|thumb|Build successfully completed]]&lt;br /&gt;
Before building, right click on &amp;quot;Solution 'dosbox'&amp;quot; in the Solution Explorer and go to Properties -&amp;gt; Configuration Properties. Set the Configuration dropdown box to &amp;quot;Release&amp;quot; instead of &amp;quot;Debug&amp;quot;. This will cause VC++ to build an optimized binary without extra debug features.&lt;br /&gt;
&lt;br /&gt;
Now that all this is done, press F7 to start the build process. There will be a few warnings, but they are unimportant. The build may take a few minutes depending on the speed of your computer, but if you have followed this tutorial it will complete successfully.&lt;br /&gt;
&lt;br /&gt;
Note that to actually run the executable you have built, you will need the SDL library (&amp;lt;tt&amp;gt;SDL.DLL&amp;lt;/tt&amp;gt;) from your regular DOSBox install and place it in the &amp;lt;tt&amp;gt;C:\Development\dosbox\visualc_net&amp;lt;/tt&amp;gt; directory.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135478</id>
		<title>Building DOSBox with MinGW</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135478"/>
		<updated>2018-07-13T20:17:16Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Compiling DOSBox */ adding suggestion that you might want a SVN checkout instead of just the snapshot&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DOSBox is a complicated project. This document aims to provide a step by step description of how to use the MinGW developement environment to successfully build DOSBox. An alternative is to use [[Building DOSBox with Visual C 2008 Express|Microsoft Visual Studio]].&lt;br /&gt;
&lt;br /&gt;
This page will guide you through setting up MinGW to compile a current (SVN/CVS) version of DOSBox. Because of updates to compilers and libraries, this guide will not work with the 0.74 (the last official release, which is currently over 6 years old) source files.&lt;br /&gt;
&lt;br /&gt;
== Installing MinGW ==&lt;br /&gt;
* Download mingw-get-setup.exe from http://sourceforge.net/projects/mingw/&lt;br /&gt;
* Run the installer, choosing the defaults&lt;br /&gt;
* Once the '''MinGW Installation Manager''' application starts, select&lt;br /&gt;
** mingw-developer-toolkit (msys-base should be automatically added)&lt;br /&gt;
** mingw32-base&lt;br /&gt;
** mingw32-gcc-g++&lt;br /&gt;
* On the installation menu, apply changes, and confirm that you want to apply the changes&lt;br /&gt;
&lt;br /&gt;
The installation manager is going to download a bunch of files, and at the end, start installing them. Once this is done, you can close the dialog box as well as the installation manager.&lt;br /&gt;
&lt;br /&gt;
Well done, MinGW is now installed! Let's start it up.&lt;br /&gt;
&lt;br /&gt;
* Browse to '''C:\MinGW\msys\1.0'''&lt;br /&gt;
* Run '''MSYS.BAT'''&lt;br /&gt;
&lt;br /&gt;
This will start up a DOS prompt like screen, lets mount the base path&lt;br /&gt;
  mount 'c:\MinGW' /mingw&lt;br /&gt;
&lt;br /&gt;
You have now completed this section, lets move on to adding the SDL libraries to MinGW.&lt;br /&gt;
&lt;br /&gt;
== Adding the SDL libraries to MinGW ==&lt;br /&gt;
* Download the pre compiled SDL development libraries from here http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder, it's going to be something like '''C:\MinGW\msys\1.0\home\Administrator'''&lt;br /&gt;
* Switch back to the MSYS command prompt we started earlier&lt;br /&gt;
* Lets extract the downloaded files&lt;br /&gt;
  tar xvf SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* And now add the files to MinGW&lt;br /&gt;
  cd SDL-1.2.15&lt;br /&gt;
  make install-sdl prefix=/mingw&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
Cool, the SDL libraries have been added to MinGW, onto the next section.&lt;br /&gt;
&lt;br /&gt;
== Adding Direct Draw support to DOSBox (Optional) ==&lt;br /&gt;
If you want to give DOSBox the option to use the DDRAW output option, then we need to add a couple of extra libraries to MinGW&lt;br /&gt;
* Download the following file, http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the files (the -C parameter, tells tar where to extract the files to)&lt;br /&gt;
  tar xvf directx-devel.tar.gz -C /mingw&lt;br /&gt;
&lt;br /&gt;
== Adding networking support to DOSBox (Optional) ==&lt;br /&gt;
These steps show you how to add the SDL_net libraries to MinGW, which enable networking and modem for DOSBox. If you aren't going to be using DOSBox for multi player games, then you can probably skip this step.&lt;br /&gt;
* Download the SDL_net source files from https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Lets configure the libraries&lt;br /&gt;
  cd SDL_net-1.2.8&lt;br /&gt;
  ./configure --prefix=/mingw&lt;br /&gt;
* '''SDLnet.c''' will have to be modified slightly to compile. Open it with a text editor and add the following #include near the top of the file:&lt;br /&gt;
  #include &amp;lt;winerror.h&amp;gt;&lt;br /&gt;
* And now compile them&lt;br /&gt;
  make&lt;br /&gt;
* And then install them (copy the files)&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding screenshot support (Optional) ==&lt;br /&gt;
This one is a bit tricky because it relies on two libraries, zlib (libpng needs these libraries), and libpng. We are also going to be compiling the libraries statically to keep external DLL's to a minimum.&lt;br /&gt;
* Download zlib from here http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf zlib-1.2.8.tar.xz&lt;br /&gt;
* Lets build the static library&lt;br /&gt;
  cd zlib-1.2.8&lt;br /&gt;
  make -f win32/Makefile.gcc&lt;br /&gt;
* And now copy the files to /mingw&lt;br /&gt;
  cp libz.a /mingw/lib/&lt;br /&gt;
  cp zlib.h zconf.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
Cool, that wasn't too hard, onto libpng&lt;br /&gt;
* Download libpng from here https://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.18/libpng-1.6.18.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libpng-1.6.18.tar.xz&lt;br /&gt;
* Configure the library&lt;br /&gt;
  cd libpng-1.6.18&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* There is currently [https://sourceforge.net/p/libpng/bugs/273/ a problem with the configure script] that will need to be manually resolved. Open '''pnglibconf.h''' with a text editor, and you will find several #define lines near the bottom that have been erroneously split into two lines. This can be fixed by adding a backslash to the end of the affected lines:&lt;br /&gt;
  199: #define PNG_TEXT_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  201: #define PNG_TEXT_Z_DEFAULT_STRATEGY \&lt;br /&gt;
  209: #define PNG_ZLIB_VERNUM \&lt;br /&gt;
  211: #define PNG_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  213: #define PNG_Z_DEFAULT_NOFILTER_STRATEGY \&lt;br /&gt;
  215: #define PNG_Z_DEFAULT_STRATEGY \&lt;br /&gt;
* And now to compile and install the files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding support for compressed audio on diskimages (Optional) ==&lt;br /&gt;
This is for cue/bin cdrom images with compressed (ogg) audio tracks. We will be adding the libvorbis, libogg, and sdl_sound libraries. &lt;br /&gt;
* Download libogg from here http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libogg-1.3.2.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libogg-1.3.2&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download libvorbis from here http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libvorbis-1.3.5&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download sdl_sound from here https://www.icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Configure and compile&lt;br /&gt;
  cd SDL_sound-1.0.3&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Enabling the debugger (You probably don't want this) ==&lt;br /&gt;
The debugger is mainly for developers of DOSBox, so they can find out why a game isn't working.&lt;br /&gt;
* Download the PDCurses source files from http://sourceforge.net/projects/pdcurses/files/pdcurses/3.4/PDCurses-3.4.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf PDCurses-3.4.tar.gz&lt;br /&gt;
* Compile the library&lt;br /&gt;
  cd PDCurses-3.4/win32&lt;br /&gt;
  make -f gccwin32.mak DLL=N&lt;br /&gt;
* And now copy the files to your /mingw folders&lt;br /&gt;
  cp pdcurses.a /mingw/lib/libpdcurses.a&lt;br /&gt;
  cd ..&lt;br /&gt;
  cp curses.h panel.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Compiling DOSBox ==&lt;br /&gt;
* If you plan on rebuilding periodically with the latest code, you can check out the Subversion repository here: https://sourceforge.net/p/dosbox/code-0/HEAD/tree/dosbox/trunk/&lt;br /&gt;
* Otherwise you can download a snapshot of the latest DOSBox SVN source here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
* See also [[SVN Builds]] for a list of unofficial alternative versions of DOSBox that you may wish to try instead. Many of them have additional features.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If using the snapshot, copy that file to your MSYS home folder, and extract the file&lt;br /&gt;
  tar xvf dosboxsvn.tgz&lt;br /&gt;
* Let's configure DOSBox, and tell it to use the static C library (-static-libgcc) and C++ library (-static-libstdc++) and stripping the final EXE of debug information (-s)&lt;br /&gt;
  cd dosbox&lt;br /&gt;
  ./autogen.sh&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot;&lt;br /&gt;
* For SDL_sound support, you have to extra some extra parameters so that the configure command knows where to find the audio library files (LIBS=&amp;quot;-lvorbisfile.....)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
* If you want to enable debugging (you probably don't)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot; --enable-debug&lt;br /&gt;
* And now for compiling DOSBox&lt;br /&gt;
  make&lt;br /&gt;
* The last step is to gather all the files together in a folder&lt;br /&gt;
** Create a folder with a name of your choosing&lt;br /&gt;
** Copy the dosbox.exe file located under the '''dosbox\src''' folder, e.g. '''C:\MinGW\msys\1.0\home\Administrator\dosbox\src''' to the folder you created&lt;br /&gt;
** Copy the SDL.dll file located under '''SDL-1.2.15\bin''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL-1.2.15\bin''' to the folder you created&lt;br /&gt;
** Optionally, copy the SDL_net.dll file located under '''SDL_net-1.2.8\.libs''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL_net-1.2.8\.libs''' to the folder you created&lt;br /&gt;
&lt;br /&gt;
Start up DOSBox, and see if it works.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135477</id>
		<title>Building DOSBox with MinGW</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135477"/>
		<updated>2018-07-13T19:52:36Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Adding networking support to DOSBox (Optional) */ bold for SDLnet.c filename&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DOSBox is a complicated project. This document aims to provide a step by step description of how to use the MinGW developement environment to successfully build DOSBox. An alternative is to use [[Building DOSBox with Visual C 2008 Express|Microsoft Visual Studio]].&lt;br /&gt;
&lt;br /&gt;
This page will guide you through setting up MinGW to compile a current (SVN/CVS) version of DOSBox. Because of updates to compilers and libraries, this guide will not work with the 0.74 (the last official release, which is currently over 6 years old) source files.&lt;br /&gt;
&lt;br /&gt;
== Installing MinGW ==&lt;br /&gt;
* Download mingw-get-setup.exe from http://sourceforge.net/projects/mingw/&lt;br /&gt;
* Run the installer, choosing the defaults&lt;br /&gt;
* Once the '''MinGW Installation Manager''' application starts, select&lt;br /&gt;
** mingw-developer-toolkit (msys-base should be automatically added)&lt;br /&gt;
** mingw32-base&lt;br /&gt;
** mingw32-gcc-g++&lt;br /&gt;
* On the installation menu, apply changes, and confirm that you want to apply the changes&lt;br /&gt;
&lt;br /&gt;
The installation manager is going to download a bunch of files, and at the end, start installing them. Once this is done, you can close the dialog box as well as the installation manager.&lt;br /&gt;
&lt;br /&gt;
Well done, MinGW is now installed! Let's start it up.&lt;br /&gt;
&lt;br /&gt;
* Browse to '''C:\MinGW\msys\1.0'''&lt;br /&gt;
* Run '''MSYS.BAT'''&lt;br /&gt;
&lt;br /&gt;
This will start up a DOS prompt like screen, lets mount the base path&lt;br /&gt;
  mount 'c:\MinGW' /mingw&lt;br /&gt;
&lt;br /&gt;
You have now completed this section, lets move on to adding the SDL libraries to MinGW.&lt;br /&gt;
&lt;br /&gt;
== Adding the SDL libraries to MinGW ==&lt;br /&gt;
* Download the pre compiled SDL development libraries from here http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder, it's going to be something like '''C:\MinGW\msys\1.0\home\Administrator'''&lt;br /&gt;
* Switch back to the MSYS command prompt we started earlier&lt;br /&gt;
* Lets extract the downloaded files&lt;br /&gt;
  tar xvf SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* And now add the files to MinGW&lt;br /&gt;
  cd SDL-1.2.15&lt;br /&gt;
  make install-sdl prefix=/mingw&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
Cool, the SDL libraries have been added to MinGW, onto the next section.&lt;br /&gt;
&lt;br /&gt;
== Adding Direct Draw support to DOSBox (Optional) ==&lt;br /&gt;
If you want to give DOSBox the option to use the DDRAW output option, then we need to add a couple of extra libraries to MinGW&lt;br /&gt;
* Download the following file, http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the files (the -C parameter, tells tar where to extract the files to)&lt;br /&gt;
  tar xvf directx-devel.tar.gz -C /mingw&lt;br /&gt;
&lt;br /&gt;
== Adding networking support to DOSBox (Optional) ==&lt;br /&gt;
These steps show you how to add the SDL_net libraries to MinGW, which enable networking and modem for DOSBox. If you aren't going to be using DOSBox for multi player games, then you can probably skip this step.&lt;br /&gt;
* Download the SDL_net source files from https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Lets configure the libraries&lt;br /&gt;
  cd SDL_net-1.2.8&lt;br /&gt;
  ./configure --prefix=/mingw&lt;br /&gt;
* '''SDLnet.c''' will have to be modified slightly to compile. Open it with a text editor and add the following #include near the top of the file:&lt;br /&gt;
  #include &amp;lt;winerror.h&amp;gt;&lt;br /&gt;
* And now compile them&lt;br /&gt;
  make&lt;br /&gt;
* And then install them (copy the files)&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding screenshot support (Optional) ==&lt;br /&gt;
This one is a bit tricky because it relies on two libraries, zlib (libpng needs these libraries), and libpng. We are also going to be compiling the libraries statically to keep external DLL's to a minimum.&lt;br /&gt;
* Download zlib from here http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf zlib-1.2.8.tar.xz&lt;br /&gt;
* Lets build the static library&lt;br /&gt;
  cd zlib-1.2.8&lt;br /&gt;
  make -f win32/Makefile.gcc&lt;br /&gt;
* And now copy the files to /mingw&lt;br /&gt;
  cp libz.a /mingw/lib/&lt;br /&gt;
  cp zlib.h zconf.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
Cool, that wasn't too hard, onto libpng&lt;br /&gt;
* Download libpng from here https://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.18/libpng-1.6.18.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libpng-1.6.18.tar.xz&lt;br /&gt;
* Configure the library&lt;br /&gt;
  cd libpng-1.6.18&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* There is currently [https://sourceforge.net/p/libpng/bugs/273/ a problem with the configure script] that will need to be manually resolved. Open '''pnglibconf.h''' with a text editor, and you will find several #define lines near the bottom that have been erroneously split into two lines. This can be fixed by adding a backslash to the end of the affected lines:&lt;br /&gt;
  199: #define PNG_TEXT_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  201: #define PNG_TEXT_Z_DEFAULT_STRATEGY \&lt;br /&gt;
  209: #define PNG_ZLIB_VERNUM \&lt;br /&gt;
  211: #define PNG_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  213: #define PNG_Z_DEFAULT_NOFILTER_STRATEGY \&lt;br /&gt;
  215: #define PNG_Z_DEFAULT_STRATEGY \&lt;br /&gt;
* And now to compile and install the files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding support for compressed audio on diskimages (Optional) ==&lt;br /&gt;
This is for cue/bin cdrom images with compressed (ogg) audio tracks. We will be adding the libvorbis, libogg, and sdl_sound libraries. &lt;br /&gt;
* Download libogg from here http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libogg-1.3.2.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libogg-1.3.2&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download libvorbis from here http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libvorbis-1.3.5&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download sdl_sound from here https://www.icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Configure and compile&lt;br /&gt;
  cd SDL_sound-1.0.3&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Enabling the debugger (You probably don't want this) ==&lt;br /&gt;
The debugger is mainly for developers of DOSBox, so they can find out why a game isn't working.&lt;br /&gt;
* Download the PDCurses source files from http://sourceforge.net/projects/pdcurses/files/pdcurses/3.4/PDCurses-3.4.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf PDCurses-3.4.tar.gz&lt;br /&gt;
* Compile the library&lt;br /&gt;
  cd PDCurses-3.4/win32&lt;br /&gt;
  make -f gccwin32.mak DLL=N&lt;br /&gt;
* And now copy the files to your /mingw folders&lt;br /&gt;
  cp pdcurses.a /mingw/lib/libpdcurses.a&lt;br /&gt;
  cd ..&lt;br /&gt;
  cp curses.h panel.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Compiling DOSBox ==&lt;br /&gt;
* Download the latest official DOSBox SVN source files from here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
(There are also enhanced SVN versions containing additional fixes and/or features that are not officially part of DOSBox, see [[SVN Builds]] for more details)&lt;br /&gt;
* Copy the file to your MSYS home folder&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf dosboxsvn.tgz&lt;br /&gt;
* Let's configure DOSBox, and tell it to use the static C library (-static-libgcc) and C++ library (-static-libstdc++) and stripping the final EXE of debug information (-s)&lt;br /&gt;
  cd dosbox&lt;br /&gt;
  ./autogen.sh&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot;&lt;br /&gt;
* For SDL_sound support, you have to extra some extra parameters so that the configure command knows where to find the audio library files (LIBS=&amp;quot;-lvorbisfile.....)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
* If you want to enable debugging (you probably don't)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot; --enable-debug&lt;br /&gt;
* And now for compiling DOSBox&lt;br /&gt;
  make&lt;br /&gt;
* The last step is to gather all the files together in a folder&lt;br /&gt;
** Create a folder with a name of your choosing&lt;br /&gt;
** Copy the dosbox.exe file located under the '''dosbox\src''' folder, e.g. '''C:\MinGW\msys\1.0\home\Administrator\dosbox\src''' to the folder you created&lt;br /&gt;
** Copy the SDL.dll file located under '''SDL-1.2.15\bin''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL-1.2.15\bin''' to the folder you created&lt;br /&gt;
** Optionally, copy the SDL_net.dll file located under '''SDL_net-1.2.8\.libs''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL_net-1.2.8\.libs''' to the folder you created&lt;br /&gt;
&lt;br /&gt;
Start up DOSBox, and see if it works.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135476</id>
		<title>Building DOSBox with MinGW</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135476"/>
		<updated>2018-07-13T19:51:54Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Adding screenshot support (Optional) */ libpng's configure script is currently broken with MinGW, here's a way to correct it&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DOSBox is a complicated project. This document aims to provide a step by step description of how to use the MinGW developement environment to successfully build DOSBox. An alternative is to use [[Building DOSBox with Visual C 2008 Express|Microsoft Visual Studio]].&lt;br /&gt;
&lt;br /&gt;
This page will guide you through setting up MinGW to compile a current (SVN/CVS) version of DOSBox. Because of updates to compilers and libraries, this guide will not work with the 0.74 (the last official release, which is currently over 6 years old) source files.&lt;br /&gt;
&lt;br /&gt;
== Installing MinGW ==&lt;br /&gt;
* Download mingw-get-setup.exe from http://sourceforge.net/projects/mingw/&lt;br /&gt;
* Run the installer, choosing the defaults&lt;br /&gt;
* Once the '''MinGW Installation Manager''' application starts, select&lt;br /&gt;
** mingw-developer-toolkit (msys-base should be automatically added)&lt;br /&gt;
** mingw32-base&lt;br /&gt;
** mingw32-gcc-g++&lt;br /&gt;
* On the installation menu, apply changes, and confirm that you want to apply the changes&lt;br /&gt;
&lt;br /&gt;
The installation manager is going to download a bunch of files, and at the end, start installing them. Once this is done, you can close the dialog box as well as the installation manager.&lt;br /&gt;
&lt;br /&gt;
Well done, MinGW is now installed! Let's start it up.&lt;br /&gt;
&lt;br /&gt;
* Browse to '''C:\MinGW\msys\1.0'''&lt;br /&gt;
* Run '''MSYS.BAT'''&lt;br /&gt;
&lt;br /&gt;
This will start up a DOS prompt like screen, lets mount the base path&lt;br /&gt;
  mount 'c:\MinGW' /mingw&lt;br /&gt;
&lt;br /&gt;
You have now completed this section, lets move on to adding the SDL libraries to MinGW.&lt;br /&gt;
&lt;br /&gt;
== Adding the SDL libraries to MinGW ==&lt;br /&gt;
* Download the pre compiled SDL development libraries from here http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder, it's going to be something like '''C:\MinGW\msys\1.0\home\Administrator'''&lt;br /&gt;
* Switch back to the MSYS command prompt we started earlier&lt;br /&gt;
* Lets extract the downloaded files&lt;br /&gt;
  tar xvf SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* And now add the files to MinGW&lt;br /&gt;
  cd SDL-1.2.15&lt;br /&gt;
  make install-sdl prefix=/mingw&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
Cool, the SDL libraries have been added to MinGW, onto the next section.&lt;br /&gt;
&lt;br /&gt;
== Adding Direct Draw support to DOSBox (Optional) ==&lt;br /&gt;
If you want to give DOSBox the option to use the DDRAW output option, then we need to add a couple of extra libraries to MinGW&lt;br /&gt;
* Download the following file, http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the files (the -C parameter, tells tar where to extract the files to)&lt;br /&gt;
  tar xvf directx-devel.tar.gz -C /mingw&lt;br /&gt;
&lt;br /&gt;
== Adding networking support to DOSBox (Optional) ==&lt;br /&gt;
These steps show you how to add the SDL_net libraries to MinGW, which enable networking and modem for DOSBox. If you aren't going to be using DOSBox for multi player games, then you can probably skip this step.&lt;br /&gt;
* Download the SDL_net source files from https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Lets configure the libraries&lt;br /&gt;
  cd SDL_net-1.2.8&lt;br /&gt;
  ./configure --prefix=/mingw&lt;br /&gt;
* SDLnet.c will have to be modified slightly to compile. Open it with a text editor and add the following #include near the top of the file:&lt;br /&gt;
  #include &amp;lt;winerror.h&amp;gt;&lt;br /&gt;
* And now compile them&lt;br /&gt;
  make&lt;br /&gt;
* And then install them (copy the files)&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding screenshot support (Optional) ==&lt;br /&gt;
This one is a bit tricky because it relies on two libraries, zlib (libpng needs these libraries), and libpng. We are also going to be compiling the libraries statically to keep external DLL's to a minimum.&lt;br /&gt;
* Download zlib from here http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf zlib-1.2.8.tar.xz&lt;br /&gt;
* Lets build the static library&lt;br /&gt;
  cd zlib-1.2.8&lt;br /&gt;
  make -f win32/Makefile.gcc&lt;br /&gt;
* And now copy the files to /mingw&lt;br /&gt;
  cp libz.a /mingw/lib/&lt;br /&gt;
  cp zlib.h zconf.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
Cool, that wasn't too hard, onto libpng&lt;br /&gt;
* Download libpng from here https://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.18/libpng-1.6.18.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libpng-1.6.18.tar.xz&lt;br /&gt;
* Configure the library&lt;br /&gt;
  cd libpng-1.6.18&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* There is currently [https://sourceforge.net/p/libpng/bugs/273/ a problem with the configure script] that will need to be manually resolved. Open '''pnglibconf.h''' with a text editor, and you will find several #define lines near the bottom that have been erroneously split into two lines. This can be fixed by adding a backslash to the end of the affected lines:&lt;br /&gt;
  199: #define PNG_TEXT_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  201: #define PNG_TEXT_Z_DEFAULT_STRATEGY \&lt;br /&gt;
  209: #define PNG_ZLIB_VERNUM \&lt;br /&gt;
  211: #define PNG_Z_DEFAULT_COMPRESSION \&lt;br /&gt;
  213: #define PNG_Z_DEFAULT_NOFILTER_STRATEGY \&lt;br /&gt;
  215: #define PNG_Z_DEFAULT_STRATEGY \&lt;br /&gt;
* And now to compile and install the files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding support for compressed audio on diskimages (Optional) ==&lt;br /&gt;
This is for cue/bin cdrom images with compressed (ogg) audio tracks. We will be adding the libvorbis, libogg, and sdl_sound libraries. &lt;br /&gt;
* Download libogg from here http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libogg-1.3.2.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libogg-1.3.2&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download libvorbis from here http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libvorbis-1.3.5&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download sdl_sound from here https://www.icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Configure and compile&lt;br /&gt;
  cd SDL_sound-1.0.3&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Enabling the debugger (You probably don't want this) ==&lt;br /&gt;
The debugger is mainly for developers of DOSBox, so they can find out why a game isn't working.&lt;br /&gt;
* Download the PDCurses source files from http://sourceforge.net/projects/pdcurses/files/pdcurses/3.4/PDCurses-3.4.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf PDCurses-3.4.tar.gz&lt;br /&gt;
* Compile the library&lt;br /&gt;
  cd PDCurses-3.4/win32&lt;br /&gt;
  make -f gccwin32.mak DLL=N&lt;br /&gt;
* And now copy the files to your /mingw folders&lt;br /&gt;
  cp pdcurses.a /mingw/lib/libpdcurses.a&lt;br /&gt;
  cd ..&lt;br /&gt;
  cp curses.h panel.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Compiling DOSBox ==&lt;br /&gt;
* Download the latest official DOSBox SVN source files from here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
(There are also enhanced SVN versions containing additional fixes and/or features that are not officially part of DOSBox, see [[SVN Builds]] for more details)&lt;br /&gt;
* Copy the file to your MSYS home folder&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf dosboxsvn.tgz&lt;br /&gt;
* Let's configure DOSBox, and tell it to use the static C library (-static-libgcc) and C++ library (-static-libstdc++) and stripping the final EXE of debug information (-s)&lt;br /&gt;
  cd dosbox&lt;br /&gt;
  ./autogen.sh&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot;&lt;br /&gt;
* For SDL_sound support, you have to extra some extra parameters so that the configure command knows where to find the audio library files (LIBS=&amp;quot;-lvorbisfile.....)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
* If you want to enable debugging (you probably don't)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot; --enable-debug&lt;br /&gt;
* And now for compiling DOSBox&lt;br /&gt;
  make&lt;br /&gt;
* The last step is to gather all the files together in a folder&lt;br /&gt;
** Create a folder with a name of your choosing&lt;br /&gt;
** Copy the dosbox.exe file located under the '''dosbox\src''' folder, e.g. '''C:\MinGW\msys\1.0\home\Administrator\dosbox\src''' to the folder you created&lt;br /&gt;
** Copy the SDL.dll file located under '''SDL-1.2.15\bin''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL-1.2.15\bin''' to the folder you created&lt;br /&gt;
** Optionally, copy the SDL_net.dll file located under '''SDL_net-1.2.8\.libs''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL_net-1.2.8\.libs''' to the folder you created&lt;br /&gt;
&lt;br /&gt;
Start up DOSBox, and see if it works.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135475</id>
		<title>Building DOSBox with MinGW</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135475"/>
		<updated>2018-07-13T19:45:28Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Adding networking support to DOSBox (Optional) */ SDLnet.c will fail compilation for some windows error defines (ERROR_BUFFER_OVERLOW, NO_ERROR), this is one way to fix it (don't know a better way)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DOSBox is a complicated project. This document aims to provide a step by step description of how to use the MinGW developement environment to successfully build DOSBox. An alternative is to use [[Building DOSBox with Visual C 2008 Express|Microsoft Visual Studio]].&lt;br /&gt;
&lt;br /&gt;
This page will guide you through setting up MinGW to compile a current (SVN/CVS) version of DOSBox. Because of updates to compilers and libraries, this guide will not work with the 0.74 (the last official release, which is currently over 6 years old) source files.&lt;br /&gt;
&lt;br /&gt;
== Installing MinGW ==&lt;br /&gt;
* Download mingw-get-setup.exe from http://sourceforge.net/projects/mingw/&lt;br /&gt;
* Run the installer, choosing the defaults&lt;br /&gt;
* Once the '''MinGW Installation Manager''' application starts, select&lt;br /&gt;
** mingw-developer-toolkit (msys-base should be automatically added)&lt;br /&gt;
** mingw32-base&lt;br /&gt;
** mingw32-gcc-g++&lt;br /&gt;
* On the installation menu, apply changes, and confirm that you want to apply the changes&lt;br /&gt;
&lt;br /&gt;
The installation manager is going to download a bunch of files, and at the end, start installing them. Once this is done, you can close the dialog box as well as the installation manager.&lt;br /&gt;
&lt;br /&gt;
Well done, MinGW is now installed! Let's start it up.&lt;br /&gt;
&lt;br /&gt;
* Browse to '''C:\MinGW\msys\1.0'''&lt;br /&gt;
* Run '''MSYS.BAT'''&lt;br /&gt;
&lt;br /&gt;
This will start up a DOS prompt like screen, lets mount the base path&lt;br /&gt;
  mount 'c:\MinGW' /mingw&lt;br /&gt;
&lt;br /&gt;
You have now completed this section, lets move on to adding the SDL libraries to MinGW.&lt;br /&gt;
&lt;br /&gt;
== Adding the SDL libraries to MinGW ==&lt;br /&gt;
* Download the pre compiled SDL development libraries from here http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder, it's going to be something like '''C:\MinGW\msys\1.0\home\Administrator'''&lt;br /&gt;
* Switch back to the MSYS command prompt we started earlier&lt;br /&gt;
* Lets extract the downloaded files&lt;br /&gt;
  tar xvf SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* And now add the files to MinGW&lt;br /&gt;
  cd SDL-1.2.15&lt;br /&gt;
  make install-sdl prefix=/mingw&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
Cool, the SDL libraries have been added to MinGW, onto the next section.&lt;br /&gt;
&lt;br /&gt;
== Adding Direct Draw support to DOSBox (Optional) ==&lt;br /&gt;
If you want to give DOSBox the option to use the DDRAW output option, then we need to add a couple of extra libraries to MinGW&lt;br /&gt;
* Download the following file, http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the files (the -C parameter, tells tar where to extract the files to)&lt;br /&gt;
  tar xvf directx-devel.tar.gz -C /mingw&lt;br /&gt;
&lt;br /&gt;
== Adding networking support to DOSBox (Optional) ==&lt;br /&gt;
These steps show you how to add the SDL_net libraries to MinGW, which enable networking and modem for DOSBox. If you aren't going to be using DOSBox for multi player games, then you can probably skip this step.&lt;br /&gt;
* Download the SDL_net source files from https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Lets configure the libraries&lt;br /&gt;
  cd SDL_net-1.2.8&lt;br /&gt;
  ./configure --prefix=/mingw&lt;br /&gt;
* SDLnet.c will have to be modified slightly to compile. Open it with a text editor and add the following #include near the top of the file:&lt;br /&gt;
  #include &amp;lt;winerror.h&amp;gt;&lt;br /&gt;
* And now compile them&lt;br /&gt;
  make&lt;br /&gt;
* And then install them (copy the files)&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding screenshot support (Optional) ==&lt;br /&gt;
This one is a bit tricky because it relies on two libraries, zlib (libpng needs these libraries), and libpng. We are also going to be compiling the libraries statically to keep external DLL's to a minimum.&lt;br /&gt;
* Download zlib from here http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf zlib-1.2.8.tar.xz&lt;br /&gt;
* Lets build the static library&lt;br /&gt;
  cd zlib-1.2.8&lt;br /&gt;
  make -f win32/Makefile.gcc&lt;br /&gt;
* And now copy the files to /mingw&lt;br /&gt;
  cp libz.a /mingw/lib/&lt;br /&gt;
  cp zlib.h zconf.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
Cool, that wasn't too hard, onto libpng&lt;br /&gt;
* Download libpng from here https://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.18/libpng-1.6.18.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libpng-1.6.18.tar.xz&lt;br /&gt;
* Configure the library&lt;br /&gt;
  cd libpng-1.6.18&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* And now to compile and install the files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding support for compressed audio on diskimages (Optional) ==&lt;br /&gt;
This is for cue/bin cdrom images with compressed (ogg) audio tracks. We will be adding the libvorbis, libogg, and sdl_sound libraries. &lt;br /&gt;
* Download libogg from here http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libogg-1.3.2.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libogg-1.3.2&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download libvorbis from here http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libvorbis-1.3.5&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download sdl_sound from here https://www.icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Configure and compile&lt;br /&gt;
  cd SDL_sound-1.0.3&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Enabling the debugger (You probably don't want this) ==&lt;br /&gt;
The debugger is mainly for developers of DOSBox, so they can find out why a game isn't working.&lt;br /&gt;
* Download the PDCurses source files from http://sourceforge.net/projects/pdcurses/files/pdcurses/3.4/PDCurses-3.4.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf PDCurses-3.4.tar.gz&lt;br /&gt;
* Compile the library&lt;br /&gt;
  cd PDCurses-3.4/win32&lt;br /&gt;
  make -f gccwin32.mak DLL=N&lt;br /&gt;
* And now copy the files to your /mingw folders&lt;br /&gt;
  cp pdcurses.a /mingw/lib/libpdcurses.a&lt;br /&gt;
  cd ..&lt;br /&gt;
  cp curses.h panel.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Compiling DOSBox ==&lt;br /&gt;
* Download the latest official DOSBox SVN source files from here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
(There are also enhanced SVN versions containing additional fixes and/or features that are not officially part of DOSBox, see [[SVN Builds]] for more details)&lt;br /&gt;
* Copy the file to your MSYS home folder&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf dosboxsvn.tgz&lt;br /&gt;
* Let's configure DOSBox, and tell it to use the static C library (-static-libgcc) and C++ library (-static-libstdc++) and stripping the final EXE of debug information (-s)&lt;br /&gt;
  cd dosbox&lt;br /&gt;
  ./autogen.sh&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot;&lt;br /&gt;
* For SDL_sound support, you have to extra some extra parameters so that the configure command knows where to find the audio library files (LIBS=&amp;quot;-lvorbisfile.....)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
* If you want to enable debugging (you probably don't)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot; --enable-debug&lt;br /&gt;
* And now for compiling DOSBox&lt;br /&gt;
  make&lt;br /&gt;
* The last step is to gather all the files together in a folder&lt;br /&gt;
** Create a folder with a name of your choosing&lt;br /&gt;
** Copy the dosbox.exe file located under the '''dosbox\src''' folder, e.g. '''C:\MinGW\msys\1.0\home\Administrator\dosbox\src''' to the folder you created&lt;br /&gt;
** Copy the SDL.dll file located under '''SDL-1.2.15\bin''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL-1.2.15\bin''' to the folder you created&lt;br /&gt;
** Optionally, copy the SDL_net.dll file located under '''SDL_net-1.2.8\.libs''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL_net-1.2.8\.libs''' to the folder you created&lt;br /&gt;
&lt;br /&gt;
Start up DOSBox, and see if it works.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135474</id>
		<title>Building DOSBox with MinGW</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135474"/>
		<updated>2018-07-13T19:40:31Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Adding screenshot support (Optional) */ libpng-1.6.18 has moved to older-releases folder, using xz for updated link because it's smaller&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DOSBox is a complicated project. This document aims to provide a step by step description of how to use the MinGW developement environment to successfully build DOSBox. An alternative is to use [[Building DOSBox with Visual C 2008 Express|Microsoft Visual Studio]].&lt;br /&gt;
&lt;br /&gt;
This page will guide you through setting up MinGW to compile a current (SVN/CVS) version of DOSBox. Because of updates to compilers and libraries, this guide will not work with the 0.74 (the last official release, which is currently over 6 years old) source files.&lt;br /&gt;
&lt;br /&gt;
== Installing MinGW ==&lt;br /&gt;
* Download mingw-get-setup.exe from http://sourceforge.net/projects/mingw/&lt;br /&gt;
* Run the installer, choosing the defaults&lt;br /&gt;
* Once the '''MinGW Installation Manager''' application starts, select&lt;br /&gt;
** mingw-developer-toolkit (msys-base should be automatically added)&lt;br /&gt;
** mingw32-base&lt;br /&gt;
** mingw32-gcc-g++&lt;br /&gt;
* On the installation menu, apply changes, and confirm that you want to apply the changes&lt;br /&gt;
&lt;br /&gt;
The installation manager is going to download a bunch of files, and at the end, start installing them. Once this is done, you can close the dialog box as well as the installation manager.&lt;br /&gt;
&lt;br /&gt;
Well done, MinGW is now installed! Let's start it up.&lt;br /&gt;
&lt;br /&gt;
* Browse to '''C:\MinGW\msys\1.0'''&lt;br /&gt;
* Run '''MSYS.BAT'''&lt;br /&gt;
&lt;br /&gt;
This will start up a DOS prompt like screen, lets mount the base path&lt;br /&gt;
  mount 'c:\MinGW' /mingw&lt;br /&gt;
&lt;br /&gt;
You have now completed this section, lets move on to adding the SDL libraries to MinGW.&lt;br /&gt;
&lt;br /&gt;
== Adding the SDL libraries to MinGW ==&lt;br /&gt;
* Download the pre compiled SDL development libraries from here http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder, it's going to be something like '''C:\MinGW\msys\1.0\home\Administrator'''&lt;br /&gt;
* Switch back to the MSYS command prompt we started earlier&lt;br /&gt;
* Lets extract the downloaded files&lt;br /&gt;
  tar xvf SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* And now add the files to MinGW&lt;br /&gt;
  cd SDL-1.2.15&lt;br /&gt;
  make install-sdl prefix=/mingw&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
Cool, the SDL libraries have been added to MinGW, onto the next section.&lt;br /&gt;
&lt;br /&gt;
== Adding Direct Draw support to DOSBox (Optional) ==&lt;br /&gt;
If you want to give DOSBox the option to use the DDRAW output option, then we need to add a couple of extra libraries to MinGW&lt;br /&gt;
* Download the following file, http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the files (the -C parameter, tells tar where to extract the files to)&lt;br /&gt;
  tar xvf directx-devel.tar.gz -C /mingw&lt;br /&gt;
&lt;br /&gt;
== Adding networking support to DOSBox (Optional) ==&lt;br /&gt;
These steps show you how to add the SDL_net libraries to MinGW, which enable networking and modem for DOSBox. If you aren't going to be using DOSBox for multi player games, then you can probably skip this step.&lt;br /&gt;
* Download the SDL_net source files from https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Lets configure the libraries&lt;br /&gt;
  cd SDL_net-1.2.8&lt;br /&gt;
  ./configure --prefix=/mingw&lt;br /&gt;
* And now compile them&lt;br /&gt;
  make&lt;br /&gt;
* And then install them (copy the files)&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding screenshot support (Optional) ==&lt;br /&gt;
This one is a bit tricky because it relies on two libraries, zlib (libpng needs these libraries), and libpng. We are also going to be compiling the libraries statically to keep external DLL's to a minimum.&lt;br /&gt;
* Download zlib from here http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf zlib-1.2.8.tar.xz&lt;br /&gt;
* Lets build the static library&lt;br /&gt;
  cd zlib-1.2.8&lt;br /&gt;
  make -f win32/Makefile.gcc&lt;br /&gt;
* And now copy the files to /mingw&lt;br /&gt;
  cp libz.a /mingw/lib/&lt;br /&gt;
  cp zlib.h zconf.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
Cool, that wasn't too hard, onto libpng&lt;br /&gt;
* Download libpng from here https://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.18/libpng-1.6.18.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libpng-1.6.18.tar.xz&lt;br /&gt;
* Configure the library&lt;br /&gt;
  cd libpng-1.6.18&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* And now to compile and install the files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding support for compressed audio on diskimages (Optional) ==&lt;br /&gt;
This is for cue/bin cdrom images with compressed (ogg) audio tracks. We will be adding the libvorbis, libogg, and sdl_sound libraries. &lt;br /&gt;
* Download libogg from here http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libogg-1.3.2.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libogg-1.3.2&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download libvorbis from here http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libvorbis-1.3.5&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download sdl_sound from here https://www.icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Configure and compile&lt;br /&gt;
  cd SDL_sound-1.0.3&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Enabling the debugger (You probably don't want this) ==&lt;br /&gt;
The debugger is mainly for developers of DOSBox, so they can find out why a game isn't working.&lt;br /&gt;
* Download the PDCurses source files from http://sourceforge.net/projects/pdcurses/files/pdcurses/3.4/PDCurses-3.4.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf PDCurses-3.4.tar.gz&lt;br /&gt;
* Compile the library&lt;br /&gt;
  cd PDCurses-3.4/win32&lt;br /&gt;
  make -f gccwin32.mak DLL=N&lt;br /&gt;
* And now copy the files to your /mingw folders&lt;br /&gt;
  cp pdcurses.a /mingw/lib/libpdcurses.a&lt;br /&gt;
  cd ..&lt;br /&gt;
  cp curses.h panel.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Compiling DOSBox ==&lt;br /&gt;
* Download the latest official DOSBox SVN source files from here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
(There are also enhanced SVN versions containing additional fixes and/or features that are not officially part of DOSBox, see [[SVN Builds]] for more details)&lt;br /&gt;
* Copy the file to your MSYS home folder&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf dosboxsvn.tgz&lt;br /&gt;
* Let's configure DOSBox, and tell it to use the static C library (-static-libgcc) and C++ library (-static-libstdc++) and stripping the final EXE of debug information (-s)&lt;br /&gt;
  cd dosbox&lt;br /&gt;
  ./autogen.sh&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot;&lt;br /&gt;
* For SDL_sound support, you have to extra some extra parameters so that the configure command knows where to find the audio library files (LIBS=&amp;quot;-lvorbisfile.....)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
* If you want to enable debugging (you probably don't)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot; --enable-debug&lt;br /&gt;
* And now for compiling DOSBox&lt;br /&gt;
  make&lt;br /&gt;
* The last step is to gather all the files together in a folder&lt;br /&gt;
** Create a folder with a name of your choosing&lt;br /&gt;
** Copy the dosbox.exe file located under the '''dosbox\src''' folder, e.g. '''C:\MinGW\msys\1.0\home\Administrator\dosbox\src''' to the folder you created&lt;br /&gt;
** Copy the SDL.dll file located under '''SDL-1.2.15\bin''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL-1.2.15\bin''' to the folder you created&lt;br /&gt;
** Optionally, copy the SDL_net.dll file located under '''SDL_net-1.2.8\.libs''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL_net-1.2.8\.libs''' to the folder you created&lt;br /&gt;
&lt;br /&gt;
Start up DOSBox, and see if it works.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135473</id>
		<title>Building DOSBox with MinGW</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Building_DOSBox_with_MinGW&amp;diff=135473"/>
		<updated>2018-07-13T19:38:15Z</updated>

		<summary type="html">&lt;p&gt;Rainwarrior: /* Adding support for compressed audio on diskimages (Optional) */ SDL_sound vs MinGW no longer appears to have this compile issue&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DOSBox is a complicated project. This document aims to provide a step by step description of how to use the MinGW developement environment to successfully build DOSBox. An alternative is to use [[Building DOSBox with Visual C 2008 Express|Microsoft Visual Studio]].&lt;br /&gt;
&lt;br /&gt;
This page will guide you through setting up MinGW to compile a current (SVN/CVS) version of DOSBox. Because of updates to compilers and libraries, this guide will not work with the 0.74 (the last official release, which is currently over 6 years old) source files.&lt;br /&gt;
&lt;br /&gt;
== Installing MinGW ==&lt;br /&gt;
* Download mingw-get-setup.exe from http://sourceforge.net/projects/mingw/&lt;br /&gt;
* Run the installer, choosing the defaults&lt;br /&gt;
* Once the '''MinGW Installation Manager''' application starts, select&lt;br /&gt;
** mingw-developer-toolkit (msys-base should be automatically added)&lt;br /&gt;
** mingw32-base&lt;br /&gt;
** mingw32-gcc-g++&lt;br /&gt;
* On the installation menu, apply changes, and confirm that you want to apply the changes&lt;br /&gt;
&lt;br /&gt;
The installation manager is going to download a bunch of files, and at the end, start installing them. Once this is done, you can close the dialog box as well as the installation manager.&lt;br /&gt;
&lt;br /&gt;
Well done, MinGW is now installed! Let's start it up.&lt;br /&gt;
&lt;br /&gt;
* Browse to '''C:\MinGW\msys\1.0'''&lt;br /&gt;
* Run '''MSYS.BAT'''&lt;br /&gt;
&lt;br /&gt;
This will start up a DOS prompt like screen, lets mount the base path&lt;br /&gt;
  mount 'c:\MinGW' /mingw&lt;br /&gt;
&lt;br /&gt;
You have now completed this section, lets move on to adding the SDL libraries to MinGW.&lt;br /&gt;
&lt;br /&gt;
== Adding the SDL libraries to MinGW ==&lt;br /&gt;
* Download the pre compiled SDL development libraries from here http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder, it's going to be something like '''C:\MinGW\msys\1.0\home\Administrator'''&lt;br /&gt;
* Switch back to the MSYS command prompt we started earlier&lt;br /&gt;
* Lets extract the downloaded files&lt;br /&gt;
  tar xvf SDL-devel-1.2.15-mingw32.tar.gz&lt;br /&gt;
* And now add the files to MinGW&lt;br /&gt;
  cd SDL-1.2.15&lt;br /&gt;
  make install-sdl prefix=/mingw&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
Cool, the SDL libraries have been added to MinGW, onto the next section.&lt;br /&gt;
&lt;br /&gt;
== Adding Direct Draw support to DOSBox (Optional) ==&lt;br /&gt;
If you want to give DOSBox the option to use the DDRAW output option, then we need to add a couple of extra libraries to MinGW&lt;br /&gt;
* Download the following file, http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the files (the -C parameter, tells tar where to extract the files to)&lt;br /&gt;
  tar xvf directx-devel.tar.gz -C /mingw&lt;br /&gt;
&lt;br /&gt;
== Adding networking support to DOSBox (Optional) ==&lt;br /&gt;
These steps show you how to add the SDL_net libraries to MinGW, which enable networking and modem for DOSBox. If you aren't going to be using DOSBox for multi player games, then you can probably skip this step.&lt;br /&gt;
* Download the SDL_net source files from https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf SDL_net-1.2.8.tar.gz&lt;br /&gt;
* Lets configure the libraries&lt;br /&gt;
  cd SDL_net-1.2.8&lt;br /&gt;
  ./configure --prefix=/mingw&lt;br /&gt;
* And now compile them&lt;br /&gt;
  make&lt;br /&gt;
* And then install them (copy the files)&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding screenshot support (Optional) ==&lt;br /&gt;
This one is a bit tricky because it relies on two libraries, zlib (libpng needs these libraries), and libpng. We are also going to be compiling the libraries statically to keep external DLL's to a minimum.&lt;br /&gt;
* Download zlib from here http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.xz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf zlib-1.2.8.tar.xz&lt;br /&gt;
* Lets build the static library&lt;br /&gt;
  cd zlib-1.2.8&lt;br /&gt;
  make -f win32/Makefile.gcc&lt;br /&gt;
* And now copy the files to /mingw&lt;br /&gt;
  cp libz.a /mingw/lib/&lt;br /&gt;
  cp zlib.h zconf.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
Cool, that wasn't too hard, onto libpng&lt;br /&gt;
* Download libpng from here http://sourceforge.net/projects/libpng/files/libpng16/1.6.18/libpng-1.6.18.tar.gz/download&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libpng-1.6.18.tar.gz&lt;br /&gt;
* Configure the library&lt;br /&gt;
  cd libpng-1.6.18&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* And now to compile and install the files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Adding support for compressed audio on diskimages (Optional) ==&lt;br /&gt;
This is for cue/bin cdrom images with compressed (ogg) audio tracks. We will be adding the libvorbis, libogg, and sdl_sound libraries. &lt;br /&gt;
* Download libogg from here http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libogg-1.3.2.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libogg-1.3.2&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download libvorbis from here http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf libvorbis-1.3.5.tar.gz&lt;br /&gt;
* Configure the library, disabling shared library files&lt;br /&gt;
  cd libvorbis-1.3.5&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw&lt;br /&gt;
* Compile and install the library files&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
* Download sdl_sound from here https://www.icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file &lt;br /&gt;
  tar xvf SDL_sound-1.0.3.tar.gz&lt;br /&gt;
* Configure and compile&lt;br /&gt;
  cd SDL_sound-1.0.3&lt;br /&gt;
  ./configure --disable-shared --prefix=/mingw LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Enabling the debugger (You probably don't want this) ==&lt;br /&gt;
The debugger is mainly for developers of DOSBox, so they can find out why a game isn't working.&lt;br /&gt;
* Download the PDCurses source files from http://sourceforge.net/projects/pdcurses/files/pdcurses/3.4/PDCurses-3.4.tar.gz&lt;br /&gt;
* Copy the downloaded file to your MSYS home folder&lt;br /&gt;
* Switch to the MSYS command prompt&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf PDCurses-3.4.tar.gz&lt;br /&gt;
* Compile the library&lt;br /&gt;
  cd PDCurses-3.4/win32&lt;br /&gt;
  make -f gccwin32.mak DLL=N&lt;br /&gt;
* And now copy the files to your /mingw folders&lt;br /&gt;
  cp pdcurses.a /mingw/lib/libpdcurses.a&lt;br /&gt;
  cd ..&lt;br /&gt;
  cp curses.h panel.h /mingw/include/&lt;br /&gt;
  cd ..&lt;br /&gt;
&lt;br /&gt;
== Compiling DOSBox ==&lt;br /&gt;
* Download the latest official DOSBox SVN source files from here: http://source.dosbox.com/dosboxsvn.tgz&lt;br /&gt;
(There are also enhanced SVN versions containing additional fixes and/or features that are not officially part of DOSBox, see [[SVN Builds]] for more details)&lt;br /&gt;
* Copy the file to your MSYS home folder&lt;br /&gt;
* Extract the file&lt;br /&gt;
  tar xvf dosboxsvn.tgz&lt;br /&gt;
* Let's configure DOSBox, and tell it to use the static C library (-static-libgcc) and C++ library (-static-libstdc++) and stripping the final EXE of debug information (-s)&lt;br /&gt;
  cd dosbox&lt;br /&gt;
  ./autogen.sh&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot;&lt;br /&gt;
* For SDL_sound support, you have to extra some extra parameters so that the configure command knows where to find the audio library files (LIBS=&amp;quot;-lvorbisfile.....)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot;&lt;br /&gt;
* If you want to enable debugging (you probably don't)&lt;br /&gt;
  ./configure --enable-core-inline LDFLAGS=&amp;quot;-static-libgcc -static-libstdc++ -s&amp;quot; LIBS=&amp;quot;-lvorbisfile -lvorbis -logg&amp;quot; --enable-debug&lt;br /&gt;
* And now for compiling DOSBox&lt;br /&gt;
  make&lt;br /&gt;
* The last step is to gather all the files together in a folder&lt;br /&gt;
** Create a folder with a name of your choosing&lt;br /&gt;
** Copy the dosbox.exe file located under the '''dosbox\src''' folder, e.g. '''C:\MinGW\msys\1.0\home\Administrator\dosbox\src''' to the folder you created&lt;br /&gt;
** Copy the SDL.dll file located under '''SDL-1.2.15\bin''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL-1.2.15\bin''' to the folder you created&lt;br /&gt;
** Optionally, copy the SDL_net.dll file located under '''SDL_net-1.2.8\.libs''', e.g. '''C:\MinGW\msys\1.0\home\Administrator\SDL_net-1.2.8\.libs''' to the folder you created&lt;br /&gt;
&lt;br /&gt;
Start up DOSBox, and see if it works.&lt;/div&gt;</summary>
		<author><name>Rainwarrior</name></author>
	</entry>
</feed>