users > RE: cmtk v. 3.3.2 compile issue
Jun 15, 2023  06:06 PM | ktagen-sudo - University of Colorado Anschutz Medical Campus
RE: cmtk v. 3.3.2 compile issue

The procedure below seems to have worked. Thanks!


1. Untar the compressed tarball file:
tar -xzvf CMTK-3.3.2-Source.tar.gz


2. Rename the package core

mv CMTK-3.3.2-Source.tar.gz core


3. Create build directory and cd:

mkdir build;cd build


4. Load cmake v 3.25.0, gcc v10.3.0 and fftw v3.3.10:

module load cmake gcc/10.3.0 fftw/3.3.10


5. Configure with cmake:

cmake -C ../core/config/gcc-x86_64-sse.cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -
DFFTW_DIR=/curc/sw/install/fftw/3.3.10/gcc/10.3.0 -
DFFTW_INCLUDE_PATH=/curc/sw/install/fftw/3.3.10/gcc/10.3.0/include -
DFFTWD_THREADS_LIB=/curc/sw/install/fftw/3.3.10/gcc/10.3.0/lib/ -
DFFTWD_OMP_LIB=/curc/sw/install/fftw/3.3.10/gcc/10.3.0/lib/ -
DCMAKE_INSTALL_PREFIX=/scratch/alpine/kefo9343/nitrc/build ../core/


6. Run make:

make j 4


7. Install

make install


8. Make package that is compatible with all the specific system versions


cpack -G RPM


9. Go to the bin directory and add the path

cd bin; PATH=${PATH}:$(pwd)


10. Add the PATH to your ~/.bashrc as well

Threaded View

ktagen-sudo Jun 15, 2023
RE: cmtk v. 3.3.2 compile issue
ktagen-sudo Jun 15, 2023