title: How to build GhostScript from source for WinRT?
body: <p>I need the GhostScript 32-bit dll (gsdll32.dll) built to be compatible with Windows Runtime.
  According GS's documentation, you can build the dll, from the <a href="https://www.ghostscript.com/download/gpdldnld.html" rel="nofollow noreferrer">source files</a>, for WinRT apps.<br>
   See header <a href="https://ghostscript.com/doc/9.21/Make.htm" rel="nofollow noreferrer">8.3</a>.</p>
  
  <p>Since I had no idea what I was getting myself into, I opened up the Ghostscript-winrt solution and tried to build it, and as you can imagine it outputted errors</p>
  
  <p><a href="https://i.stack.imgur.com/KIFKr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KIFKr.png" alt="Build output"></a></p>
  
  <p>The doc specifies how to build using Microsoft Visual Studio command line. But it's not very clear to the user who isn't experienced with nmake. For example,</p>
  
  <p>The normal installation process for Microsoft Visual C++ includes setting the location of the Microsoft Visual C++ executables (cl.exe, link.exe, nmake.exe, rc.exe) in your PATH definition and the LIB and INCLUDE environment variables are set to point to the Microsoft Visual C++ directories. If this is true then the value for DEVSTUDIO can be changed to empty. I.e. DEVSTUDIO=</p>
  
  <p>I don't know where these three environment variables are. I've the code thats called when I tried to build it:</p>
  
  <p>nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= METRO=1 debug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= METRO=1 debugbsc</p>
  
  <p>Any ideas based on the output what I need to set here?</p>