Installing DeSmuME from source on Windows
Line 1: | Line 1: | ||
− | |||
− | |||
== Supported Compilers == | == Supported Compilers == | ||
Since all of the Windows developers make use of Microsoft Visual Studio, only that compiler is supported on Windows. | Since all of the Windows developers make use of Microsoft Visual Studio, only that compiler is supported on Windows. | ||
Line 48: | Line 46: | ||
If your system can't support Visual Studio 2015, you can use Visual C++ Express 2010 instead. Microsoft has hidden it so you can use this direct URL: | If your system can't support Visual Studio 2015, you can use Visual C++ Express 2010 instead. Microsoft has hidden it so you can use this direct URL: | ||
− | http://download.microsoft.com/download/1/D/9/1D9A6C0E-FC89-43EE-9658-B9F0E3A76983/vc_web.exe | + | http://download.microsoft.com/download/1/D/9/1D9A6C0E-FC89-43EE-9658-B9F0E3A76983/vc_web.exe . From there, you'll have to improvise. The steps are very similar to what's above. Use DeSmuME_2010.bat instead of DeSmuME.sln, however. |
Revision as of 01:10, 13 July 2016
Contents |
Supported Compilers
Since all of the Windows developers make use of Microsoft Visual Studio, only that compiler is supported on Windows.
Prerequisites
All dependencies are included in the source code download. The only things you are required to install is a supported compiler, and (when checking out SVN), a SVN client.
Install Microsoft Visual Studio Community 2015
For a Windows build, you first have to download and install Microsoft Visual Studio Community 2015 (which is free). Download the installer from https://www.visualstudio.com/post-download-vs . This is small; the installer will download the files it needs.
Retrieving the sources
There are 2 ways you can get the code.
Go to https://sourceforge.net/p/desmume/code/HEAD/tree/ and select “Download Snapshot”. Due to sourceforge sucking, this may take 1 million years and never finish successfully.
Download it and open with your archive manager (if you haven’t one, I suggest 7zip at http://www.7-zip.org/).
Inside there is another one archive, open it and you’ll see the source code.
Extract into a folder of your choice. Now are you ready to compile.
The main advantage here is you don’t need the SVN client, the disadvantage is that every time a new SVN is released you need to download again the entire source tarball.
Get code with SVN client
Go to http://tortoisesvn.net/downloads, download TortoiseSVN, install it then reboot.Now create a folder where the code will be downloaded (ex. D:\Desmume\source). Right click on it and select “TortoiseSVN->Checkout…”
Add https://desmume.svn.sourceforge.net/svnroot/desmume/trunk/desmume/ to “Url of Repository”, then press OK.
Wait until TortoiseSVN has downloaded all the source files then press OK.
Now you’re ready to compile.
The main advantage here is that TortoiseSVN will download only the modified files when you check for a new SVN version, the disadvantage is that the first time take a while to download all the code. When you want to update the source code you only need to do “TortoiseSVN->Update”.
Compile your SVN
In "desmume/src/windows" open DeSmuME.sln
Then Visual Studio should open up. Change "Debug" to "Release" where you can readily see it on the screen and then press CTRL+ALT+F7.
After the compile completes, the executable should be located in "desmume/src/windows/__bins/DeSmuME-VS2015-Release.exe".
Useful Tips
If your system can't support Visual Studio 2015, you can use Visual C++ Express 2010 instead. Microsoft has hidden it so you can use this direct URL: http://download.microsoft.com/download/1/D/9/1D9A6C0E-FC89-43EE-9658-B9F0E3A76983/vc_web.exe . From there, you'll have to improvise. The steps are very similar to what's above. Use DeSmuME_2010.bat instead of DeSmuME.sln, however.