Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the installation package.
tar xvf cistem-1.0.0-beta-source-code.tar.gz
- Go to the directory generated after the decompression.
cd cistem-1.0.0-beta
- Modify the source code.
- Open the source code file.
vi src/core/matrix.cpp
- Press i to enter the insert mode and modify the file as follows:
Change line 7
#define _AL_SINCOS(x, s, c) __asm__ ("fsincos" : "=t" (c), "=u" (s) : "0" (x))to:
#define _AL_SINCOS(x, s, c) s = sinf(x); c = cosf(x);
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the source code file.
- Modify the source code.
- Open the source code file.
vi src/gui/AssetPickerComboPanel.h
- Press i to enter the insert mode and modify the file as follows:
Change line 49
bool FillComboBox(long wanted_refinement_package, bool always_select_latest = false) {AssetComboBox->FillWithRefinements(wanted_refinement_package, always_select_latest);}to:
bool FillComboBox(long wanted_refinement_package, bool always_select_latest = false) {return AssetComboBox->FillWithRefinements(wanted_refinement_package, always_select_latest);}Change line 65
bool FillComboBox(bool include_all_images_group) {AssetComboBox->FillWithImageGroups(include_all_images_group);}to:
bool FillComboBox(bool include_all_images_group) {return AssetComboBox->FillWithImageGroups(include_all_images_group);}Change line 73
bool FillComboBox(bool include_all_movies_group) {AssetComboBox->FillWithMovieGroups(include_all_movies_group);}to:
bool FillComboBox(bool include_all_movies_group) {return AssetComboBox->FillWithMovieGroups(include_all_movies_group);} - Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the source code file.
- Modify the source code.
- Open the source code file.
vi src/programs/projectx/projectx.cpp
- Press i to enter the insert mode and add the following content:
Change line 297
return true;
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the source code file.
- Modify the source code.
sed -i 's/\-03/\-00/' configure
- Perform the compilation and installation.
yum install libtiff xorg-x11-* ./configure --prefix=/path/to/CISTEM --with-fftw-dir=/path/to/FFTW make -j make install
Parent topic: cisTEM 1.0 Porting Guide (CentOS 7.6)