Installing DeSmuME from source on Windows
Since all of the Windows developers make use of Microsoft Visual Studio, only that compiler is supported on Windows.
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_VS2008_release.exe".