<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.mamedev.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Balrog</id>
	<title>MAMEDEV Wiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mamedev.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Balrog"/>
	<link rel="alternate" type="text/html" href="https://wiki.mamedev.org/index.php?title=Special:Contributions/Balrog"/>
	<updated>2026-05-09T06:42:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.mamedev.org/index.php?title=Building_MAME_using_Microsoft_Visual_Studio_compilers&amp;diff=4709</id>
		<title>Building MAME using Microsoft Visual Studio compilers</title>
		<link rel="alternate" type="text/html" href="https://wiki.mamedev.org/index.php?title=Building_MAME_using_Microsoft_Visual_Studio_compilers&amp;diff=4709"/>
		<updated>2016-06-02T13:24:45Z</updated>

		<summary type="html">&lt;p&gt;Balrog: missed a word&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default, MAME is configured via the makefile to build using the MinGW gcc compiler. Although this is a nice cross-platform solution, debugging binaries built this way leaves a lot to be desired.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can configure MAME to build using Visual Studio. Once you have done that, you can debug problems in MAME using the Visual Studio debugger, which is a huge step up from gdb.&lt;br /&gt;
&lt;br /&gt;
Since MAME uses modern C++ features, Visual Studio 2015 is required, and [https://www.visualstudio.com/en-us/news/vs2015-update2-vs.aspx Update 2] is preferred as it fixes various compiler bugs. If you don&#039;t have a paid license, [https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx Visual Studio Community 2015] is available from Microsoft for free (but requires sign-in with a Microsoft account).&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how to make it work:&lt;br /&gt;
&lt;br /&gt;
# You must already have an environment that can build MAME using the MinGW tools. Although you won&#039;t be using gcc to compile, you will be using several of the other tools included in the standard MAME [http://mamedev.org/tools/ MinGW Development Environment]&lt;br /&gt;
# Switch to the directory where the root MAME makefile lives.&lt;br /&gt;
# Once you&#039;ve done that, simply run: &amp;lt;code&amp;gt;make vs2015 PYTHON_EXECUTABLE=c:/msys64/mingw64/bin/python.exe&amp;lt;/code&amp;gt; and wait for it to create projects&lt;br /&gt;
# In order not to specify PYTHON_EXECUTABLE all the time, just place it in system variables&lt;br /&gt;
# If you are building with XP compatibility enabled run  &amp;lt;code&amp;gt;make vs2015_xp&amp;lt;/code&amp;gt;&lt;br /&gt;
# Browse to folder containing solution file and open it with Visual Studio&lt;br /&gt;
# Inside Visual Studio you can change to Debug/Release x86 or x64 builds&lt;br /&gt;
# While doing development please note that you need to update LUA files in scripts folders in order to add new sources and regenerate projects&lt;br /&gt;
# Note that all parameters for partial compilation works so you can do &amp;lt;code&amp;gt;make SUBTARGET=tiny vs2015&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;make vs2015 SUBTARGET=drivername SOURCES=src\mame\drivers\drivername.cpp&amp;lt;/code&amp;gt;&lt;br /&gt;
Back to [[How MAME Works]]&lt;/div&gt;</summary>
		<author><name>Balrog</name></author>
	</entry>
	<entry>
		<id>https://wiki.mamedev.org/index.php?title=Building_MAME_using_Microsoft_Visual_Studio_compilers&amp;diff=4708</id>
		<title>Building MAME using Microsoft Visual Studio compilers</title>
		<link rel="alternate" type="text/html" href="https://wiki.mamedev.org/index.php?title=Building_MAME_using_Microsoft_Visual_Studio_compilers&amp;diff=4708"/>
		<updated>2016-06-02T13:24:22Z</updated>

		<summary type="html">&lt;p&gt;Balrog: Add info about VS Community and remove VS2013 as it is no longer supported.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default, MAME is configured via the makefile to build using the MinGW gcc compiler. Although this is a nice cross-platform solution, debugging binaries built this way leaves a lot to be desired.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can configure MAME to build using Visual Studio. Once you have done that, you can debug problems in MAME using the Visual Studio debugger, which is a huge step up from gdb.&lt;br /&gt;
&lt;br /&gt;
Since MAME uses modern C++ features, Visual Studio 2015 is required, and [https://www.visualstudio.com/en-us/news/vs2015-update2-vs.aspx Update 2] is preferred as it fixes various compiler bugs. If you don&#039;t have a paid license, [https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx Visual Community 2015] is available from Microsoft for free (but requires sign-in with a Microsoft account).&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how to make it work:&lt;br /&gt;
&lt;br /&gt;
# You must already have an environment that can build MAME using the MinGW tools. Although you won&#039;t be using gcc to compile, you will be using several of the other tools included in the standard MAME [http://mamedev.org/tools/ MinGW Development Environment]&lt;br /&gt;
# Switch to the directory where the root MAME makefile lives.&lt;br /&gt;
# Once you&#039;ve done that, simply run: &amp;lt;code&amp;gt;make vs2015 PYTHON_EXECUTABLE=c:/msys64/mingw64/bin/python.exe&amp;lt;/code&amp;gt; and wait for it to create projects&lt;br /&gt;
# In order not to specify PYTHON_EXECUTABLE all the time, just place it in system variables&lt;br /&gt;
# If you are building with XP compatibility enabled run  &amp;lt;code&amp;gt;make vs2015_xp&amp;lt;/code&amp;gt;&lt;br /&gt;
# Browse to folder containing solution file and open it with Visual Studio&lt;br /&gt;
# Inside Visual Studio you can change to Debug/Release x86 or x64 builds&lt;br /&gt;
# While doing development please note that you need to update LUA files in scripts folders in order to add new sources and regenerate projects&lt;br /&gt;
# Note that all parameters for partial compilation works so you can do &amp;lt;code&amp;gt;make SUBTARGET=tiny vs2015&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;make vs2015 SUBTARGET=drivername SOURCES=src\mame\drivers\drivername.cpp&amp;lt;/code&amp;gt;&lt;br /&gt;
Back to [[How MAME Works]]&lt;/div&gt;</summary>
		<author><name>Balrog</name></author>
	</entry>
	<entry>
		<id>https://wiki.mamedev.org/index.php?title=Building_MAME_using_Microsoft_Visual_Studio_compilers&amp;diff=4681</id>
		<title>Building MAME using Microsoft Visual Studio compilers</title>
		<link rel="alternate" type="text/html" href="https://wiki.mamedev.org/index.php?title=Building_MAME_using_Microsoft_Visual_Studio_compilers&amp;diff=4681"/>
		<updated>2016-05-28T22:39:07Z</updated>

		<summary type="html">&lt;p&gt;Balrog: updated path to python executable&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default, MAME is configured via the makefile to build using the MinGW gcc compiler. Although this is a nice cross-platform solution, debugging binaries built this way leaves a lot to be desired.&lt;br /&gt;
&lt;br /&gt;
If you own a copy of Visual Studio, you can configure MAME to build using those tools instead. Once you have done that, you can debug problems in MAME using the Visual Studio debugger, which is a huge step up from gdb.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how to make it work:&lt;br /&gt;
&lt;br /&gt;
# You must already have an environment that can build MAME using the MinGW tools. Although you won&#039;t be using gcc to compile, you will be using several of the other tools included in the standard MAME [http://mamedev.org/tools/ MinGW Development Environment]&lt;br /&gt;
# Switch to the directory where the root MAME makefile lives.&lt;br /&gt;
# Once you&#039;ve done that, simply run: &amp;lt;code&amp;gt;make vs2015 PYTHON_EXECUTABLE=c:/msys64/mingw64/bin/python.exe&amp;lt;/code&amp;gt; and wait for it to create projects&lt;br /&gt;
# In order not to specify PYTHON_EXECUTABLE all the time, just place it in system variables&lt;br /&gt;
# For Visual Studio 2013 use:  &amp;lt;code&amp;gt;make vs2013 &amp;lt;/code&amp;gt;&lt;br /&gt;
# If you are building with XP compatibility enabled run  &amp;lt;code&amp;gt;make vs2015_xp&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;make vs2013_xp&amp;lt;/code&amp;gt;&lt;br /&gt;
# Browse to folder containing solution file and open it with Visual Studio&lt;br /&gt;
# Inside Visual Studio you can change to Debug/Release x86 or x64 builds&lt;br /&gt;
# While doing development please note that you need to update LUA files in scripts folders in order to add new sources and regenerate projects&lt;br /&gt;
# Note that all parameters for partial compilation works so you can do &amp;lt;code&amp;gt;make SUBTARGET=tiny vs2015&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;make vs2015 SUBTARGET=drivername SOURCES=src\mame\drivers\drivername.cpp&amp;lt;/code&amp;gt;&lt;br /&gt;
Back to [[How MAME Works]]&lt;/div&gt;</summary>
		<author><name>Balrog</name></author>
	</entry>
</feed>