VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/doc/html/CompilingGuidelineLinux.html
blob: a8460518f47ebcc0fb35431d8b08b694daf6cbbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<style>
.textbox {
  vertical-align: top;
  height: auto !important;
  font-family: Helvetica,sans-serif;
  font-size: 20px;
  font-weight: bold;
  margin: 10px;
  padding: 10px;
  background-color: white;
  width: auto;
  border-radius: 10px;
}

.texttohide {
  display:none;
  font-family: Helvetica,sans-serif;
  font-size: 14px;
  font-weight: normal;
}

.show {
  display: none;
    text-decoration: none;
}

.hide:target + .show {
  display: inline;
  text-decoration: none;
}

.hide:target {
  display: none;
  text-decoration: none;
}

.hide:target ~ .texttohide {
  display:inline;
  text-decoration: none;

}

@media print {
  .hide, .show {
    display: none;
  }
}

</style>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>VeraCrypt - Free Open source disk encryption with strong security for the Paranoid</title>
<meta name="description" content="VeraCrypt is free open-source disk encryption software for Windows, Mac OS X and Linux. In case an attacker forces you to reveal the password, VeraCrypt provides plausible deniability. In contrast to file encryption, data encryption performed by VeraCrypt is real-time (on-the-fly), automatic, transparent, needs very little memory, and does not involve temporary unencrypted files."/>
<meta name="keywords" content="encryption, security"/>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div>
<a href="Documentation.html"><img src="VeraCrypt128x128.png" alt="VeraCrypt"/></a>
</div>

<div id="menu">
	<ul>
	  <li><a href="Home.html">Home</a></li>
	  <li><a href="/code/">Source Code</a></li>
	  <li><a href="Downloads.html">Downloads</a></li>
	  <li><a class="active" href="Documentation.html">Documentation</a></li>
	  <li><a href="Donation.html">Donate</a></li>
	  <li><a href="https://sourceforge.net/p/veracrypt/discussion/" target="_blank">Forums</a></li>
	</ul>
</div>

<div>
<p>
<a href="Documentation.html">Documentation</a>
<img src="arrow_right.gif" alt=">>" style="margin-top: 5px">
<a href="CompilingGuidelineLinux.html">Compiling Gudineline for Linux</a>
</p></div>

<div class="wikidoc">
This guide describes how to set up a Linux System that can compile the VeraCrypt. Further it is described how VeraCrypt is going to be compiled. <br>
The procedure for a Ubuntu 22.04 LTS system is described here as an example, but the procedure for other Linux systems is analogous.
</div>

<div class="wikidoc">
<br>
<br>
The following components are required for compiling VeraCrypt:
<ol>
	<li>GNU Make</li>
	<li>GNU C++ Compiler 4.0</li>
	<li>YASM 1.3.0</li>
	<li>pkg-config</li>
	<li>wxWidgets 3.2 shared library and header files installed or wxWidgets 3.0 library source code </li>
	<li>FUSE library and header files</li>
</ol>
</div>

<div class="wikidoc">
If you do not want to perform the single steps below, you can run these commands to build an environment and to compile VeraCrpyt: <br>
Download as script: <a href="LinuxPrepAndBuild.sh" target="_blank">Script</a> <br>
<code>
sudo apt update <br>
sudo apt install -y build-essential yasm pkg-config libgtk-3-dev <br>
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.0/wxWidgets-3.2.0.tar.bz2 <br>
tar -xf wxWidgets-3.2.0.tar.bz2 <br>
cd wxWidgets-3.2.0 <br>
mkdir gtk-build <br>
cd gtk-build <br>
../configure <br>
make <br>
sudo make install <br>
sudo ldconfig <br>
cd ../.. <br>
rm -r wxWidgets-3.2.0 <br>
rm wxWidgets-3.2.0.tar.bz2 <br>
sudo apt install -y libfuse-dev git <br>
git clone https://github.com/veracrypt/VeraCrypt.git
cd ~/VeraCrypt/src <br>
make
</code>
</div>

<div class="wikidoc">
 <div class="textbox" id="InstallationOfGNUMake">
  <a href="#hide1" class="hide" id="hide1">Installation of GNU Make</a>
  <a href="#show1" class="show" id="show1">Installation of GNU Make</a>
  <div class="texttohide">
    <p>
		<ol>
			<li>
				Open a terminal
			</li>
			<li>
				Execute the following commands: <br>
				<code>
				sudo apt update <br>
				sudo apt install build-essential
				</code>
			</li>
		</ol>
	</p>
  </div>
 </div>
 
 <div class="textbox" id="InstallationOfGNUCompiler">
  <a href="#hide2" class="hide" id="hide2">Installation of GNU C++ Compiler 4.0</a>
  <a href="#show2" class="show" id="show2">Installation of GNU C++ Compiler 4.0</a>
  <div class="texttohide">
    <p> If the build-essential were already installed in the step before, this step can be skipped.
		<ol>
			<li>
				Open a terminal
			</li>
			<li>
				Execute the following commands: <br>
				<code>
				sudo apt update <br>
				sudo apt install build-essential
				</code>
			</li>
		</ol>
	</p>
  </div>
 </div>

 <div class="textbox" id="InstallationOfYASM">
  <a href="#hide3" class="hide" id="hide3">Installation of YASM</a>
  <a href="#show3" class="show" id="show3">Installation of YASM</a>
  <div class="texttohide">
    <p>
		<ol>
			<li>
				Open a terminal
			</li>
			<li>
				Execute the following commands: <br>
				<code>
				sudo apt update <br>
				sudo apt install yasm
				</code>
			</li>
		</ol>
	</p>
  </div>
 </div>

 <div class="textbox" id="InstallationOfPKGConfig">
  <a href="#hide4" class="hide" id="hide4">Installation of pkg-config</a>
  <a href="#show4" class="show" id="show4">Installation of pkg-config</a>
  <div class="texttohide">
    <p>
		<ol>
			<li>
				Open a terminal
			</li>
			<li>
				Execute the following commands: <br>
				<code>
				sudo apt update <br>
				sudo apt install pkg-config
				</code>
			</li>
		</ol>
	</p>
  </div>
 </div>
 
 <div class="textbox" id="InstallationOfwxWidgets">
  <a href="#hide5" class="hide" id="hide5">Installation of wxWidgets 3.2</a>
  <a href="#show5" class="show" id="show5">Installation of wxWidgets 3.2</a>
  <div class="texttohide">
    <p>
		<ol>
			<li>
				Open a terminal
			</li>
			<li>
				Execute the following commands: <br>
				<code>		
				sudo apt install libgtk-3-dev <br>
				wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.0/wxWidgets-3.2.0.tar.bz2 <br>
				tar -xf wxWidgets-3.2.0.tar.bz2 <br>
				cd wxWidgets-3.2.0 <br>
				mkdir gtk-build <br>
				cd gtk-build <br>
				../configure <br>
				make <br>
				sudo make install <br>
				sudo ldconfig <br>
				cd ../.. <br>
				rm -r wxWidgets-3.2.0 <br>
				</code>
			</li>
		</ol>
	</p>
  </div>
 </div>
 
 <div class="textbox" id="InstallationOfFuse">
  <a href="#hide6" class="hide" id="hide6">Installation of libfuse</a>
  <a href="#show6" class="show" id="show6">Installation of libfuse</a>
  <div class="texttohide">
    <p>
		<ol>
			<li>
				Open a terminal
			</li>
			<li>
				Execute the following commands: <br>
				<code>
				sudo apt update <br>
				sudo apt install libfuse-dev
				</code>
			</li>
		</ol>
	</p>
  </div>
 </div>
 
 <div class="textbox" id="DownloadVeraCrypt">
  <a href="#hide7" class="hide" id="hide7">Download VeraCrypt</a>
  <a href="#show7" class="show" id="show7">Download VeraCrypt</a>
  <div class="texttohide">
    <p>
		<ol>
			<li>
				Open a terminal
			</li>
			<li>
				Execute the following commands: <br>
				<code>
				sudo apt update <br>
				sudo apt install git <br>
				git clone https://github.com/veracrypt/VeraCrypt.git
				</code>
			</li>
		</ol>
	</p>
  </div>
 </div>
 
 <div class="textbox" id="CompileVeraCrypt">
  <a href="#hide8" class="hide" id="hide8">Compile VeraCrypt</a>
  <a href="#show8" class="show" id="show8">Compile VeraCrypt</a>
  <div class="texttohide">
    <p> Remarks: <br>
	<ul>
		<li>
			If you have not installed wxWidgets like described here, you may have to modify the make statement to reference to the right file: <br>
			<code>make WXSTATIC=1</code>
		</li>
		<li>
			By default, a universal executable supporting both graphical and text user interface (through the switch --text) is built. <br>
			On Linux, a console-only executable, which requires no GUI library, can be built using the 'NOGUI' parameter: <br>
			<code>
			make NOGUI=1 WXSTATIC=1 WX_ROOT=/usr/src/wxWidgets wxbuild <br>
			make NOGUI=1 WXSTATIC=1
			</code>
		</li>
	</ul>
	Steps:
		<ol>
			<li>
				Open a terminal
			</li>
			<li>
				Execute the following commands: <br>
				<code>		
				cd ~/VeraCrypt/src <br>
				make
				</code>
			</li>
			<li>
				If successful, the VeraCrypt executable should be located in the directory 'Main'.
			</li>
		</ol>
	</p>
  </div>
 </div>
 
</div>
</body></html>