我要评分
获取效率
正确性
完整性
易理解

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the installation package.
    tar xvf cistem-1.0.0-beta-source-code.tar.gz
  3. Go to the directory generated after the decompression.
    cd cistem-1.0.0-beta
  4. Modify the source code.
    1. Open the source code file.
      vi src/core/matrix.cpp
    2. 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);
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Modify the source code.
    1. Open the source code file.
      vi src/gui/AssetPickerComboPanel.h
    2. 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);}
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Modify the source code.
    1. Open the source code file.
      vi src/programs/projectx/projectx.cpp
    2. Press i to enter the insert mode and add the following content:

      Change line 297

      return true;
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  7. Modify the source code.
    sed -i 's/\-03/\-00/' configure
  8. 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