DiskCryptorCompile en

From DiskCryptor wiki
Jump to: navigation, search

Contents

[edit] Compiling DiskCryptor

This article will aid you, if you would like to compile DiskCryptor from sources on your own. You may want to do that, if you would like to make changes to the program functionality, or if you want to make some fixes in the program yourself, or if you want to be in an absolute control of your security and trust only the compiles of the programs you use, that you have made yourself. For the process you will need a number of tools.

[edit] Compilation tools

  • Windows Driver Kit (WDK)
  • Microsoft Visual Studio 2008
  • Flat Assembler (FASM)
  • Yasm Modular Assembler

In order to obtain WDK, please visit this page at Windows Hardware Development Central, to learn how you can do that. After installing WDK, please create "DDK" environment variable, and point it to your WDK installation, for example "C:\WinDDK\6000\".

Concerning Visual Studio 2008, you can either go and obtain a free copy of Express Editions or try out commercial Visual Studio versions. If you are going to use Visual Studio Express, then after install you will need to open "Tools->Options", then go to "Projects and Solutions->VC++ Directories", and add "$(DDK)\bin\x86" path to "Executable files", and also add "$(DDK)\inc\mfc42" path to "Include Files". When using commercial Visual Studio versions, the steps described above, are not needed to be taken. And please be aware, that Visual Studio Express does not have the 64bit compiler, and therefore for the compilation of x64 version of DiskCryptor, you will need to have a commercial Visual Studio version.

To obtain Flat Assembler, please visit its official home site. Please also set environment variable "fasm" and point it to the FASM directory.

To obtain Yasm Modular Assembler, please visit its official home site. Directory containing this package needs to be included in %PATH% environment variable.

[edit] Project compilation

Please open "dcrypt.sln" project file in Visual Studio, then choose the needed configuration (Debug/Release), the platform (Win32/x64) and do Build Solution. The end result of compilation will be found in a folder, that is appropriate to the chosen configuration and platform.

[edit] Building BartPE plugin

Please perform compilation for Release configuration and Win32 platform. Then run "make_bartpe.bat" file. The result of compilation will be located in "bartpe" folder. To read how to make a disk with this plugin, - please refer to the article "Integrating DiskCryptor into BartPE based LiveCD".

Links

   ReactOS project
   Fireforge.net
Personal tools