(1)安装依赖包
yum install -y make cmake gcc-c++ boost-devel boost-system boost-filesystem boost-program-options boost-chrono boost-date-time boost-timer boost-test python39-devel qt5-qtbase-devel qt5-qtsvg-devel zlib-devel openssl-devel(2)解压
tar -xjf boost包
cd /usr/lcoal/boost_1_75_0(3)编译
./bootstrap.sh --with-python=/usr/bin/python3.9 \
--with-libraries=filesystem,system,date_time,thread,program_options,regex,timer,chrono,python,test --prefix=/usr/local/boost(4)安装
./b2 --with=all -j$(nproc) cxxflags="-fPIC" link=static,shared install # 使用所有 CPU 核心加速编译
3.编译安装ecflow
(1)解压
tar -xf ecflow包
cd /usr/local/ecflow...
mkdir build && cd build(2)配置 ecFlow 的编译选项,明确指定关键依赖库(Boost、Python、Qt5)的路径
cmake .. -DBOOST_ROOT=/usr/local/boost -DPython3_EXECUTABLE=/usr/bin/python3.9 -DQt5_DIR=/usr/lib64/cmake/Qt5 -DQt5Svg_DIR=/usr/lib64/cmake/Qt5Svg(3)编译源代码
make -j$(nproc)(4)安装
sudo make install