INSTALL.txt 2.3 KB

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