TPCCLIB development using C in Linux
This page gives instructions on setting up the necessary tools for compiling TPCCLIB in the Ubuntu Linux environment. Compilation works also in other Linux distributions such as Fedora, but system set-up will be different, depending on the Linux distribution. Linux programs can also be compiled and executed in Windows Subsystem for Linux in Windows 10 Developer mode.
Install the tools for compiling and documenting
By default, Ubuntu distributions are not installed with all the tools that are required to
compile C libraries and programs.
You must first install the package
build-essential either using
Synaptic package manager or with terminal command
sudo apt-get install build-essential checkinstall
If you have a 64-bit Linux, but would also like to compile also 32-bit binaries,
then you need to install also package
gcc-multilib in terminal window with command
sudo apt-get install gcc-multilib.
CMake is an open-source, cross-platform tool which is required to build, test, and package the TPCCLIB software. Download and install CMake using package manager:
sudo apt-get install cmake
Install also Doxygen and,
depending on Doxygen settings,
using Synaptic package manager.
In order to use the compiled programs the operating system must be told where to find the program files. Also the test procedure requires this setting.
Go to your home directory (usually
/home/username) and open file
.bashrc with text editor; this file is hidden by default, therefore
you must 'view hidden files' with your file browser. To the end of this file
add the following line (changing the binary path as necessary):
Documentation for TPCCLIB gives instructions for compiling the C libraries and executables.
- Software development in TPC
- TPCCLIB development in Windows
- PET software
- List of TPCCLIB software
- Command-line interface (CLI)
- Windows Subsystem for Linux
Updated at: 2020-04-14
Created at: 2014-03-10
Written by: Vesa Oikonen