编译和安装

操作步骤

  1. 使用PuTTY工具,以root用户登录服务器。
  2. 执行以下命令,解压安装包。

    tar xvf cistem-1.0.0-beta-source-code.tar.gz

  3. 执行以下命令,进入解压后的目录。

    cd cistem-1.0.0-beta

  4. 执行以下命令,更改源码。

    1. 打开源码。
      vi src/core/matrix.cpp
    2. 按“i”进入编辑模式,修改如下内容。

      第7行的代码:

      #define _AL_SINCOS(x, s, c)  __asm__ ("fsincos" : "=t" (c), "=u" (s) : "0" (x))

      更改为:

      #define _AL_SINCOS(x, s, c)   s = sinf(x);  c = cosf(x);
    3. 按“Esc”键,输入:wq!,按“Enter”保存并退出编辑。

  5. 执行以下命令,更改源码。

    1. 打开源码。
      vi src/gui/AssetPickerComboPanel.h
    2. 按“i”进入编辑模式,修改如下内容。

      第49行的代码:

      bool FillComboBox(long wanted_refinement_package, bool always_select_latest = false) {AssetComboBox->FillWithRefinements(wanted_refinement_package, always_select_latest);}

      更改为:

      bool FillComboBox(long wanted_refinement_package, bool always_select_latest = false) {return AssetComboBox->FillWithRefinements(wanted_refinement_package, always_select_latest);}

      第65行的代码:

      bool FillComboBox(bool include_all_images_group) {AssetComboBox->FillWithImageGroups(include_all_images_group);}

      更改为:

      bool FillComboBox(bool include_all_images_group) {return AssetComboBox->FillWithImageGroups(include_all_images_group);}

      第73行的代码:

      bool FillComboBox(bool include_all_movies_group) {AssetComboBox->FillWithMovieGroups(include_all_movies_group);}

      更改为:

      bool FillComboBox(bool include_all_movies_group) {return AssetComboBox->FillWithMovieGroups(include_all_movies_group);}
    3. 按“Esc”键,输入:wq!,按“Enter”保存并退出编辑。

  6. 执行以下命令,更改源码。

    1. 打开源码。
      vi src/programs/projectx/projectx.cpp
    2. 按“i”进入编辑模式,新增如下内容。

      第297行的代码:

      return true;
    3. 按“Esc”键,输入:wq!,按“Enter”保存并退出编辑。

  7. 执行以下命令,更改源码。

    sed -i 's/\-03/\-00/' configure

  8. 执行以下命令,进行编译安装。

    yum install libtiff xorg-x11-*
    ./configure --prefix=/path/to/CISTEM --with-fftw-dir=/path/to/FFTW
    make -j
    make install