You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile a python library that uses Armadillo on Ubuntu, but when I do "pip install -e .", I get error:
CMake Error at CMakeLists.txt:17 (find_package):
By not providing "Findarmadillo.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"armadillo", but CMake did not find one.
Could not find a package configuration file provided by "armadillo" with
any of the following names:
armadilloConfig.cmake
armadillo-config.cmake
Add the installation prefix of "armadillo" to CMAKE_PREFIX_PATH or set
"armadillo_DIR" to a directory containing one of the above files. If
"armadillo" provides a separate development package or SDK, be sure it has
been installed.
Armadillo is installed in /usr/lib, and the only option for me to make cmake see it, is to manually include the path in CMakeLists.txt. This is not good, because if I was to compile it on a different system the path would not be valid. But even when I tell it the path, it somehow compiles without LAPACK (I have it installed as well), and the code doesn't work. I have a feeling that this is because scikit-build installs its own cmake which is oblivious of what is installed on my OS, but I am not sure what I can do about that. Do you have any suggestions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to compile a python library that uses Armadillo on Ubuntu, but when I do "pip install -e .", I get error:
Armadillo is installed in /usr/lib, and the only option for me to make cmake see it, is to manually include the path in CMakeLists.txt. This is not good, because if I was to compile it on a different system the path would not be valid. But even when I tell it the path, it somehow compiles without LAPACK (I have it installed as well), and the code doesn't work. I have a feeling that this is because scikit-build installs its own cmake which is oblivious of what is installed on my OS, but I am not sure what I can do about that. Do you have any suggestions?
Just in case, here is the CMakeLists.txt file: https://github.com/config-i1/smooth/blob/Python/python/CMakeLists.txt Also, just FYI, I work on Ubuntu 22.04.3 LTS.
Beta Was this translation helpful? Give feedback.
All reactions