title: How do I build TrueCrypt on Windows?
body: <p>I'm trying to compile TrueCrypt. I am using the instructions from <a href="https://github.com/syglug/truecrypt" rel="noreferrer">https://github.com/syglug/truecrypt</a>.</p>
  
  <p>I set the 3 environment variables (<code>pkcs</code>,<code>ddk</code>,<code>MSVC16_ROOT</code>) and opened the project in msvc2008. This wasn't in the instructions but I needed NASM to be installed so I installed it and put NASM in the PATH. Now when I build I get the below. It juts ends even though the IDE has the cancel build selectable the compiler isn't doing anything and the system idles. </p>
  
  <p>Crypto.lib does exist after this step</p>
  
  <pre><code>1&gt;------ Build started: Project: Crypto, Configuration: Release Win32 ------
  2&gt;------ Build started: Project: Boot, Configuration: Release Win32 ------
  3&gt;------ Build started: Project: Driver, Configuration: Release Win32 ------
  2&gt;Performing Makefile project actions
  3&gt;Performing Makefile project actions
  1&gt;Performing Custom Build Step
  3&gt;------ Building truecrypt.sys: Release x86 ------
  1&gt;Aes_hw_cpu.asm 
  2&gt;Microsoft (R) C/C++ Optimizing Compiler Version 8.00c    
  2&gt;Copyright (c) Microsoft Corp 1984-1993. All rights reserved.
  3&gt;The syntax of the command is incorrect.
  3&gt;Project : error PRJ0002 : Error result 255 returned from 'C:\Windows\SysWow64\cmd.exe'.
  3&gt;Build log was saved at "file://c:\unzipped\tc\Driver\Release\BuildLog.htm"
  3&gt;Driver - 1 error(s), 0 warning(s)
  1&gt;Performing Custom Build Step
  1&gt;Aes_x86.asm 
  1&gt;Compiling...
  1&gt;Whirlpool.c
  1&gt;Twofish.c
  1&gt;Sha2.c
  1&gt;Sha1.c
  1&gt;Serpent.c
  1&gt;Rmd160.c
  1&gt;Des.c
  1&gt;Cast.c
  1&gt;Blowfish.c
  1&gt;Aestab.c
  1&gt;Aeskey.c
  1&gt;Generating Code...
  1&gt;Creating library...
  1&gt;Build log was saved at "file://c:\unzipped\tc\Crypto\Release\BuildLog.htm"
  1&gt;Crypto - 0 error(s), 0 warning(s)
  </code></pre>
  
  <p>It just hangs. It isn't using any CPU the IDE doesn't seem to know it failed or stopped. When running again I get this</p>
  
  <pre><code>1&gt;------ Build started: Project: Boot, Configuration: Release Win32 ------
  2&gt;------ Build started: Project: Driver, Configuration: Release Win32 ------
  1&gt;Performing Makefile project actions
  2&gt;Performing Makefile project actions
  2&gt;------ Building truecrypt.sys: Release x86 ------
  1&gt;Microsoft (R) C/C++ Optimizing Compiler Version 8.00c    
  1&gt;Copyright (c) Microsoft Corp 1984-1993. All rights reserved.
  2&gt;The syntax of the command is incorrect.
  </code></pre>
  
  <p>I have msvc2012 installed so I tried it as well. I get the same problems</p>
  
  <pre><code>1&gt;------ Build started: Project: Crypto, Configuration: Release Win32 ------
  2&gt;------ Build started: Project: Boot, Configuration: Release Win32 ------
  3&gt;------ Build started: Project: Driver, Configuration: Release Win32 ------
  1&gt;  Performing Custom Build Tools
  1&gt;  Aes_hw_cpu.asm 
  3&gt;  ------ Building truecrypt.sys: Release x86 ------
  2&gt;  Microsoft (R) C/C++ Optimizing Compiler Version 8.00c    
  2&gt;  Copyright (c) Microsoft Corp 1984-1993. All rights reserved.
  2&gt;  
  3&gt;  The syntax of the command is incorrect.
  3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "echo ------ Building truecrypt.sys: Release x86 ------
  3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: cmd.exe /c BuildDriver.cmd -build -release -x86 "C:\unzipped\tc\\Common" "C:\unzipped\tc\\Crypto" "C:\unzipped\tc\Driver\"
  3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: if errorlevel 1 exit %errorlevel%
  3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: echo.
  3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: echo ------ Building truecrypt.sys: Release x64 ------
  3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: BuildDriver.cmd -build -release -x64 "C:\unzipped\tc\\Common" "C:\unzipped\tc\\Crypto" "C:\unzipped\tc\Driver\"" exited with code 255.
  1&gt;  Performing Custom Build Tools
  1&gt;  Aes_x86.asm 
  1&gt;  Aeskey.c
  1&gt;  Aestab.c
  1&gt;  Blowfish.c
  1&gt;  Cast.c
  1&gt;  Des.c
  1&gt;  Rmd160.c
  1&gt;  Serpent.c
  1&gt;  Sha1.c
  1&gt;  Sha2.c
  1&gt;  Twofish.c
  1&gt;  Whirlpool.c
  1&gt;  Generating Code...
  1&gt;  Crypto.vcxproj -&gt; C:\unzipped\tc\Crypto\Release\Crypto.lib
  </code></pre>
  
  <p>When I cancel/build again I get the below</p>
  
  <pre><code>1&gt;------ Build started: Project: Boot, Configuration: Release Win32 ------
  2&gt;------ Build started: Project: Driver, Configuration: Release Win32 ------
  2&gt;  ------ Building truecrypt.sys: Release x86 ------
  2&gt;  The syntax of the command is incorrect.
  2&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "echo ------ Building truecrypt.sys: Release x86 ------
  2&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: cmd.exe /c BuildDriver.cmd -build -release -x86 "C:\unzipped\tc\\Common" "C:\unzipped\tc\\Crypto" "C:\unzipped\tc\Driver\"
  2&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: if errorlevel 1 exit %errorlevel%
  2&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: echo.
  2&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: echo ------ Building truecrypt.sys: Release x64 ------
  2&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: BuildDriver.cmd -build -release -x64 "C:\unzipped\tc\\Common" "C:\unzipped\tc\\Crypto" "C:\unzipped\tc\Driver\"" exited with code 255.
  1&gt;  Microsoft (R) C/C++ Optimizing Compiler Version 8.00c    
  1&gt;  Copyright (c) Microsoft Corp 1984-1993. All rights reserved.
  1&gt;  
  </code></pre>
  
  <p>What's wrong here? How do I build TrueCrypt? I'm running Windows 7 64bits</p>