mlpack / ensmallen

A header-only C++ library for numerical optimization --

Home Page:http://ensmallen.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find LAPACK library, but ARMA_USE_LAPACK is set.

shediffer opened this issue · comments

Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
Configuring ensmallen 2.15.1
ARMA_USE_WRAPPER is not defined, so all dependencies of Armadillo must be manually linked.
CMake Error at CMake/FindArmadillo.cmake:195 (message):
Cannot find LAPACK library, but ARMA_USE_LAPACK is set. Try specifying
LAPACK libraries manually by setting the LAPACK_LIBRARY variable.
Call Stack (most recent call first):
CMakeLists.txt:61 (find_package)

How can I solve this problem?thanks a lot!

@shediffer Try directly linking with libopenblas.dll, as given in the Armadillo archive (download from here)

  armadillo-10.2.1/examples/lib_win64/libopenblas.dll
  armadillo-10.2.1/examples/lib_win64/libopenblas.lib

I still have some questions, sorry to ask so much...I use cmake-gui and vs2019 to build ensmallen, here are the results. There's no .dll or .lib. Is this normal?
image
image

ensmallen is a header-only library, so no .lib or .dll will be built. :) When you use ensmallen, you only need to include the directory of header files, and link against Armadillo. 👍

Thanks a lot.👍

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions! 👍