- /软件/linux/spglib-develop
$ mkdir _build
$ cd _build
$ cmake -DCMAKE_INSTALL_PREFIX="" ..
$ make
$ make DESTDIR=/home/xxx/xxx install
- 写入环境变量
LD_LIBRARY_PATH=/home/xxx/spglib/lib64:$LD_LIBRARY_PATH
- 在spglib/include下运行命令
$ mkdir spglib
$ cp spglib.h ./spglib
网友评论