From DiskCryptor wiki
Jump to: navigation, search
m (Компиляция проекта: grammar)
 
Line 1: Line 1:
== Компиляция DiskCryptor ==
+
== Compiling DiskCryptor ==
Эта статья понадобится тем, кто хочет самостоятельно скомпилировать 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 functionality of the program, 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 that you can get for free from their creators.
# [http://www.microsoft.com/whdc/devtools/wdk/WDKpkg.mspx Windows Driver Kit (WDK)]. На сайте Microsoft предоставлена последняя версия WDK, а также предыдущие (в архиве), подойдет любая из них. Установите WDK, после чего создайте переменную окружения "DDK", указывающую на путь к нему. В моем случае это будет "C:\WinDDK\6000\".
+
# [http://www.microsoft.com/express/download Microsoft Visual Studio]. Если вы используете Express Edition, то после установки необходимо открыть "Tools → Options", перейти на вкладку "Projects and Solutions → VC++ Directories" и добавить путь (в полной версии Visual Studio этого делать не нужно):
+
#* "$(DDK)\bin\x86" в ''Executable files'';
+
#* "$(DDK)\inc\mfc42" в ''Include Files''.
+
: {{Note|Express Edition не содержит 64 битного компилятора, поэтому для компиляции x64 версии DiskCryptor понадобится полная версия Visual Studio.}}
+
<ol start="3"><li>[http://flatassembler.net/download.php Flat Assembler (FASM)]. После установки необходимо создать переменную окружения "fasm", указывающую на директорию установки.</li>
+
<li>[http://www.tortall.net/projects/yasm/ Yasm Modular Assembler] необходимо поместить в любую директорию прописанную в %path%.</li></ol>
+
  
=== Компиляция проекта ===
+
=== Compilation tools ===
# Откройте проект dcrypt.sln в VisualStudio и выберите желаемую:
+
#* конфигурацию (debug/release);
+
#* платформу (Win32/x64).
+
# Выполните Build Solution.
+
Результат компиляции вы можете найти в папке, соответствующей выбранной конфигурации и платформе.
+
  
== Сборка BartPE plugin ==
+
# [http://www.microsoft.com/whdc/devtools/wdk/WDKpkg.mspx Windows Driver Kit (WDK)]. The latest version of WDK is offered on the Microsoft site, as well as previous releases (in an archive), you can use any of those. Install WDK, then create "DDK" environment variable, and point it to your WDK installation. In my case this is "C:\WinDDK\6000\".
# Выполните компиляцию для конфигурации Release и платформы Win32.
+
# [http://www.microsoft.com/express/download Microsoft Visual Studio]. When using Express Edition, after its install you will need to open "Tools → Options", then go to "Projects and Solutions → VC++ Directories" and add path (not required for the full version of Visual Studio):
# Запустите make_bartpe.bat.
+
#* "$(DDK)\bin\x86" into ''Executable files'';
Результат компиляции будет находиться в папке bartpe.
+
#* "$(DDK)\inc\mfc42" into ''Include Files''.
 +
: {{Note/en|Express Edition does not have 64-bit compiler, therefore you need full version of Visual Studio in order to compile x64 vesion of DiskCryptor.}}
 +
<ol start="3"><li>[http://flatassembler.net/download.php Flat Assembler (FASM)]. After its install you would need to set the "fasm" environment variable, and point it to the folder where FASM is installed.</li>
 +
<li> [http://www.tortall.net/projects/yasm/ Yasm Modular Assembler] would need to be placed in any folder that is included in the %path% environment variable.</li></ol>
  
Cоздание LiveCD диска с данным плагином описано в статье "[[LiveCD|Интеграция с Windows LiveCD]]".
+
=== Project compilation ===
 +
 
 +
# Open "dcrypt.sln" project file in Visual Studio and select required:
 +
#* configuration (debug/release);
 +
#* platform (Win32/x64).
 +
# Do Build Solution.
 +
The end result of compilation will be found in the folder that is appropriate to the chosen configuration and platform.
 +
 
 +
== Building BartPE plugin ==
 +
 
 +
# 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 learn how to make a disk with this plugin, — please refer to the article "[[LiveCD/en|Windows LiveCD integration]]".
  
 
{{Languages}}
 
{{Languages}}

Revision as of 07:03, 28 October 2013

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 functionality of the program, 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 that you can get for free from their creators.

Compilation tools

  1. Windows Driver Kit (WDK). The latest version of WDK is offered on the Microsoft site, as well as previous releases (in an archive), you can use any of those. Install WDK, then create "DDK" environment variable, and point it to your WDK installation. In my case this is "C:\WinDDK\6000\".
  2. Microsoft Visual Studio. When using Express Edition, after its install you will need to open "Tools → Options", then go to "Projects and Solutions → VC++ Directories" and add path (not required for the full version of Visual Studio):
    • "$(DDK)\bin\x86" into Executable files;
    • "$(DDK)\inc\mfc42" into Include Files.
Template:Note/en
  1. Flat Assembler (FASM). After its install you would need to set the "fasm" environment variable, and point it to the folder where FASM is installed.
  2. Yasm Modular Assembler would need to be placed in any folder that is included in the %path% environment variable.

Project compilation

  1. Open "dcrypt.sln" project file in Visual Studio and select required:
    • configuration (debug/release);
    • platform (Win32/x64).
  2. Do Build Solution.

The end result of compilation will be found in the folder that is appropriate to the chosen configuration and platform.

Building BartPE plugin

  1. Perform compilation for Release configuration and Win32 platform.
  2. Then run "make_bartpe.bat" file. The result of compilation will be located in "bartpe" folder.

To learn how to make a disk with this plugin, — please refer to the article "Windows LiveCD integration".

Language: English  • Deutsch • русский