ArrayFire 缺少 LAPACK - 但我有

ArrayFire is missing LAPACK - but I have it

我刚刚下载了 ArrayFire (3.3.1) 的最新版本,并正在尝试构建它。不过我卡在 cmake . 了。我安装了一堆缺少的库,重新运行它,现在我得到:

-- Could NOT find LAPACK (missing:  LAPACK_LIBRARIES) 
CMake Warning at src/backend/opencl/CMakeLists.txt:38 (MESSAGE):
  LAPACK not found.  Functionality will be disabled

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLEWmxd_LIBRARY
    linked by target "afcpu" in directory /home/joeuser/src/arrayfire-full-3.3.1/src/backend/cpu
    linked by target "afcuda" in directory /home/joeuser/src/arrayfire-full-3.3.1/src/backend/cuda
    linked by target "afopencl" in directory /home/joeuser/src/arrayfire-full-3.3.1/src/backend/opencl

我已经安装了 lapack,它位于 /usr/lib/liblapack.so(这是一个替代符号链接,但没有损坏)。还安装了lapacke。

ArrayFire 需要 LAPACKE 库(在 Ubuntu,liblapacke-dev,图形部分需要 GLEW-MX(在 Ubuntu,libglewmx-dev)。