我正在尝试使用 安装一些东西cmake
。
sudo cmake ~/Repositories/siconos/
-- Checking to see if CXX compiler accepts flag -D__aligned__=ignored
-- Checking to see if CXX compiler accepts flag -D__aligned__=ignored - yes
-- Performing Test C_HAVE_-D__aligned__=ignored
-- Performing Test C_HAVE_-D__aligned__=ignored - Success
-- Performing Test C_HAVE_-std=c99
-- Performing Test C_HAVE_-std=c99 - Success
-- Found Python executable: /usr/bin/python
-- Found Python library: /usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so
-- Python version is : 2.7.12
-- Python include dir is : /usr/include/python2.7
-- Python Site package dir is : /usr/lib/python2.7/dist-packages
-- Compilation with required package BLAS version
-- Lapack libraries have been found : /usr/lib/liblapack.so;/usr/lib/libblas.so. We now turn to headers.
-- Found a library with LAPACK API (generic).
Lapack libraries : /usr/lib/liblapack.so;/usr/lib/libblas.so.
Lapack headers : clapack.h in LAPACK_INCLUDE_DIRS-NOTFOUND.
-- Compilation with required package LAPACK version
CMake Error at cmake/siconos_find_common_dep.cmake:15 (message):
cannot find lapack include directories
Call Stack (most recent call first):
CMakeLists.txt:88 (include)
-- Configuring incomplete, errors occurred!
由于我的 LTS 没有 apt-get 支持CLAPACK
,因此我编译了CLAPACK
以下内容此链接并将结果文件移动到
ls /usr/include/liblapack.a
/usr/include/liblapack.a
并添加了以下内容CMakeLists.txt
:
set(CLAPACK_DIR /usr/include/liblapack.a)
我还必须做什么?