Page MenuHomePhabricator

Build MITK CoreCmdApps on CentOS 7
Closed, ResolvedPublic

Description

I installed the CentOS 7 Minimal 2207.02 ISO in a VirtualBox VM. Since we rely on C++17 and the standard compiler that comes with CentOS 7 is too old, a little more effort is necessary to build MITK. Also a few code changes were necessary that are pushed into the branch mentioned below in the comments.

sudo yum install git libXt-devel libtiff-devel freetype-devel libGL-devel
sudo yum group install 'Development Tools'
sudo yum install centos-release-scl
sudo yum install devtoolset-7-gcc-c++ --enablerepo='centos-sclo-rh'

scl enable devtoolset-7 'bash'

curl -L -O https://github.com/Kitware/CMake/releases/download/v3.29.5/cmake-3.29.5-linux-x86_64.tar.gz
tar -xzf cmake-3.29.5-linux-x86_64.tar.gz

git clone --branch=feature/T30469-SupportExperimentalFilesystem https://phabricator.mitk.org/source/mitk.git MITK

cmake-3.29.5-linux-x86_64/bin/cmake -D CMAKE_BUILD_TYPE:STRING=Release -D MITK_BUILD_CONFIGURATION:STRING=CoreCmdApps -S MITK -B MITK-superbuild -G "Unix Makefiles"

cd MITK-superbuild
make -j4 MITK-Configure

cp ep/lib64/libdcm* ep/lib/

cd MITK-build
make -j4 package

Revisions and Commits

rMITK MITK
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision

Related Objects

Event Timeline

kislinsk created this task.
kislinsk added a revision: Restricted Differential Revision.Jun 13 2024, 4:38 PM

Deleted branch from rMITK MITK: feature/T30469-SupportExperimentalFilesystem.