Skip to content
Florian Kleemiß edited this page Mar 4, 2026 · 2 revisions

The minimalistic build to suit Olex2:

mkdir cctbx&&mkdir cctbx/modules&&cd cctbx/modules

git clone --recursive https://github.com/cctbx/annlib.git annlib
git clone --recursive https://github.com/cctbx/annlib_adaptbx.git annlib_adaptbx
git clone --recursive https://github.com/cctbx/ccp4io.git ccp4io
git clone --recursive https://github.com/cctbx/ccp4io_adaptbx.git ccp4io_adaptbx
git clone --recursive -b 3.4.0 https://gitlab.com/libeigen/eigen.git eigen
git clone https://github.com/pcxod/cctbx_project.git

wget http://prdownloads.sourceforge.net/scons/scons-4.10.1.tar.gz
tar xfz SCons-4.10.1.tar.gz
mv scons-4.10.1/ SCons

wget https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.bz2
tar xfj boost_1_86_0.tar.bz2
mv boost_1_86_0 boost
 
cd ..
mkdir build
cd build
export CXXFLAGS=-std=c++20
python3 ../modules/cctbx_project/libtbx/configure.py iotbx smtbx fast_linalg --enable_openmp_if_possible=true --use_environment_flags
source setpaths.sh
libtbx.scons -j8

Python 3 (<=3.12) needs scipy, numpy==1.26.4, six, future, setuptools, h5py

Clone this wiki locally