Build or install from source
Setup¶
Before being able to compile the source code, you first have to download it from GitHub and install Golang (if you don't have it already). Depending on which compiler executable you want to use, you also have to either install Java JDK15 or a common C++ compiler and CMake.
Clone source from GitHub¶
git clone https://github.com/compose-generator/ccom.git
cd ccom
Install Go¶
For compiling CCom from source, you need to have Go 1.16 or higher installed on your system. Please refer to the official guide on how to install Go.
Build from source¶
If you want to build the executable, you can use the build.sh
for Linux or the build.bat
file for Windows:
./build.sh
.\build.bat
The executables will end up in the bin
subfolder.
Install from source¶
If you don't care about the executable and you just want to use CCom, you can use the install.sh
for Linux or the install.bat
for Windows. This will install the executable to a path, located in the PATH, so your OS can find it and makes it available as a command:
./install.sh
.\install.bat
Use¶
ccom [options] <input>