From DiskCryptor wiki
Jump to: navigation, search
m (Компиляция проекта: grammar)
 
m
 
(3 intermediate revisions by the same user not shown)
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.
  
=== Инструменты для компиляции ===
+
=== Compilation tools ===
# [http://www.microsoft.com/whdc/devtools/wdk/WDKpkg.mspx Windows Driver Kit (WDK)]. На сайте Microsoft предоставлена последняя версия WDK, а также предыдущие (в архиве), подойдет любая из них. Установите WDK, после чего создайте переменную окружения "DDK", указывающую на путь к нему. В моем случае это будет "C:\WinDDK\6000\".  
+
# [https://msdn.microsoft.com/library/windows/hardware/ff557573 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 <tt>C:\WinDDK\6000\</tt>.
# [http://www.microsoft.com/express/download Microsoft Visual Studio]. Если вы используете Express Edition, то после установки необходимо открыть "Tools → Options", перейти на вкладку "Projects and Solutions → VC++ Directories" и добавить путь (в полной версии Visual Studio этого делать не нужно):
+
# [https://www.visualstudio.com/en-US/products/visual-studio-express-vs Microsoft Visual Studio]. When using Express Edition, after its install you will need to open "Tools → Options", then go to <tt>Projects and Solutions → VC++ Directories</tt> and add path (not required for the full version of Visual Studio):
#* "$(DDK)\bin\x86" в ''Executable files'';
+
#* <tt>$(DDK)\bin\x86</tt> into ''Executable files'';
#* "$(DDK)\inc\mfc42" в ''Include Files''.
+
#* <tt>$(DDK)\inc\mfc42</tt> into ''Include Files''.
: {{Note|Express Edition не содержит 64 битного компилятора, поэтому для компиляции x64 версии DiskCryptor понадобится полная версия Visual Studio.}}
+
: {{Note|Express Edition does not have 64-bit compiler, therefore you need full version of Visual Studio in order to compile x64 version of DiskCryptor.}}
<ol start="3"><li>[http://flatassembler.net/download.php Flat Assembler (FASM)]. После установки необходимо создать переменную окружения "fasm", указывающую на директорию установки.</li>
+
<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] необходимо поместить в любую директорию прописанную в %path%.</li></ol>
+
<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>
  
=== Компиляция проекта ===
+
=== Project compilation ===
# Откройте проект dcrypt.sln в VisualStudio и выберите желаемую:
+
# Open <tt>dcrypt.sln</tt> project file in Visual Studio and select required:
#* конфигурацию (debug/release);
+
#* configuration (debug/release)
#* платформу (Win32/x64).
+
#* platform (Win32/x64)
# Выполните Build Solution.
+
# Do Build Solution.
Результат компиляции вы можете найти в папке, соответствующей выбранной конфигурации и платформе.
+
The end result of compilation will be found in the folder that is appropriate to the chosen configuration and platform.
  
== Сборка BartPE plugin ==
+
== Building BartPE plugin ==
# Выполните компиляцию для конфигурации Release и платформы Win32.
+
# Perform compilation for Release configuration and Win32 platform.
# Запустите make_bartpe.bat.
+
# Then run <tt>make_bartpe.bat</tt> file. The result of compilation will be located in "bartpe" folder.
Результат компиляции будет находиться в папке bartpe.
+
To learn how to make a disk with this plugin, — please refer to the article "[[LiveCD|Windows LiveCD integration]]".
 
+
Cоздание LiveCD диска с данным плагином описано в статье "[[LiveCD|Интеграция с Windows LiveCD]]".
+
  
 
{{Languages}}
 
{{Languages}}

Latest revision as of 23:18, 8 December 2015

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.
Express Edition does not have 64-bit compiler, therefore you need full version of Visual Studio in order to compile x64 version of DiskCryptor.
  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 • русский