Debian Codegraph @

doc/INSTALL.txt

raw
1 Compiling Double Commander
2
3 1) What you need?
4
5 Double Commander is developed with Free Pascal and Lazarus.
6 Current version requires at least FPC 3.2.2 and Lazarus 2.2.0 (3.0 under macOS).
7
8 2) Using the IDE to develop and build DC.
9
10 If you want to use Lazarus IDE to develop Double Commander, first you have to
11 install a few additional components all of which reside in components
12 directory of DC sources. You must open each .lpk package file:
13
14 - chsdet/chsdet.lpk
15 - multithreadprocs/multithreadprocslaz.lpk
16 - kascrypt/kascrypt.lpk
17 - doublecmd/doublecmd_common.lpk
18 - gifanim/pkg_gifanim.lpk
19 - KASToolBar/kascomp.lpk
20 - synunihighlighter/synuni.lpk
21 - viewer/viewerpackage.lpk
22 - virtualterminal/virtualterminal.lpk
23
24 and install it into Lazarus (menu: Package -> Open package file (.lpk) -> Browse
25 to needed .lpk file -> Press "Install", if "Install" disabled then press
26 "Compile" instead). Choose "No" when asked for rebuilding Lazarus after each
27 package then rebuild Lazarus when you have installed all of them.
28
29 After rebuilding Lazarus open the project file src/doublecmd.lpi.
30
31 Compile.
32
33 3) Building DC from command line.
34
35 From command line (Windows)
36
37 Use build.bat script to build DC on Windows.
38
39 First you need the lazbuild utility of Lazarus to be somewhere in your PATH or
40 you need to edit the build script and change the lazpath variable to point to
41 it.
42
43 Execute the script to start the build process. Make sure you use all parameter
44 if you're building for the first time, so that also components and plugins are
45 built:
46
47 > build.bat release
48
49 or alternatively without plugins
50
51 > build.bat components
52 > build.bat doublecmd
53
54 From command line (Linux)
55
56 Use build.sh script to build DC on Linux.
57
58 First you need the lazbuild utility of Lazarus to be somewhere in your PATH and
59 if you installed a Lazarus package it should already be there. Otherwise you
60 need to edit the build script and change the lazbuild variable to point to it.
61
62 On Linux three widgetsets are supported: GTK2, Qt4 and Qt5. You can choose one
63 by setting lcl environment variable before executing the script to either gtk2,
64 qt or qt5 for example:
65
66 $ lcl=qt ./build.sh
67
68 Execute the script to start the build process. Make sure you use all parameter
69 if you're building for the first time, so that also components and plugins are
70 built:
71
72 $ ./build.sh release
73
74 or alternatively without plugins
75
76 $ ./build.sh components
77 $ ./build.sh doublecmd