cmake 命令安装 eigen3 库安装教程

(1)下载所需安装包,并将其上传到目录 /public/home/user/sourcecode 下。

(2)进入目录,解压源文件:

cd sourcecode
tar zxvf eigen-3.4.0.tar.gz

(3)进入解压后的文件夹,并创建新文件夹 build:

cd eigen-3.4.0
mkdir build
cd build

(4)使用 cmake 命令安装 eigen3 库:

module load compiler/cmake/3.15.6
cmake ..

(5)成功后,编译:

make

results matching ""

    No results matching ""