To use ccm you need to do the following steps.

1. Preconditions

To run and use ccm you need to install the following packages:

Linux:
1.1 SQLlite3

  sudo aptitude install libsqlite3-dev  

1.2 gpsbabel (creation of poi files)

  sudo aptitude install gpsbabel  

1.3 OpenSSL (for Spoilerdownloading and description preview)

  sudo aptitude install libssl-dev
   
Windows:
1.1 SQLlite3

 https://www.sqlite.org/index.html
 -> Download sqlite3.dll and store it into the ccm.exe folder

1.2 gpsbabel (creation of poi files)

 https://www.gpsbabel.org/  
 -> in the Optionsdialog you have to set the GPS-Babel binary folder.

1.3 OpenSSL (for Spoilerdownloading and description preview)

 https://www.openssl.org/
 -> Install OpenSSL or copy (ssleay32.dll, libeay32.dll) to ccm.exe folder
 eg. use http://indy.fulgan.com/SSL/ select the needed version.


The Process can be shortcutted by using the ccmsetup.zip file from www.Corpsman.de
 
2. Compilation and Installation

If you want to compile the source by yourself you need to install lazarus

2.1
  sudo aptitude install lazarus-ide

2.2 Then you need to install the following packages

  TurboPowerlPro
  LazOpenGLContext
  SQLDBLaz

  by opening the project under Lazarus, the IDE should suggest you to install the missing packages

2.3 Additional synapse is needed:
  http://www.ararat.cz/synapse/doku.php/download
  Add the sourcepath to the search folder or copy all source files to the project directory
  
2.4 The Corpsman Library set
  https://corpsman.de/index.php?doc=opengl/clear_engine  

2.5 The DGLOpenGL header  
  https://wiki.delphigl.com/index.php/dglOpenGL.pas
  
2.3 Compile the programm by pressing F9 in the IDE-Window or by using the command tool lazbuild
  lazbuild -B ccm.lpi


After its installation ccm will create files in the following folders:

Permanent:
  ccm.ini          Win:   'C:\Users\<User>\AppData\Local\ccm\'
                   Linux: '/home/<user>/.config/ccm/'
  Databases        Win:   'C:\Users\<User>\AppData\Local\ccm\databases' or user specific
                   Linux: '/home/<user>/.config/ccm/databases'
  Downloads        Win:   'C:\Users\<User>\AppData\Local\ccm\downloads'
                   Linux: '/home/<user>/.config/ccm/downloads'
  Spoilers         Win:   'C:\Users\<User>\AppData\Local\ccm\spoilers'
                   Linux: '/home/<user>/.config/ccm/spoilers' 
  Maptiles         Win:   'C:\Users\<User>\AppData\Local\ccm\maptilecache\'
                   Linux: '/home/<user>/.config/ccm/maptilecache' 
  
Temporary:
  GPX /GGZ files   Win:   'C:\Users\<user>\AppData\Local\Temp\CCM_Temp'
                   Linux: '/tmp/CCM_Temp'
