-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find OpenBLAS #714
Comments
Compile openblas from source. The package of Ubuntu repos do not have lapacke.h |
Small addition to @sziraqui's suggestion (by the way it works for me), to build OpenFace on ARM you will also need to comment section with x86 SIMD options in CMakeLists.txt:
|
An addition to the original question and @sziraqui ' comment Ive been successful with installing based on Ubuntu repros
And then in
and
in the include and lib search paths. As a side note. I got errors with dlib-19.13:
But I was successful with dlib-19.22. And got a working OpenFace installation after removing the arguments for SSE SIMD as suggested by pi-null-meazon |
jetson@tegra-ubuntu:~/OpenFace/build$ make I encountered the following problem when compiling the project, I would like to ask how to solve it ah |
Have a look into "#479", same errors reported when compiling on a Jetson device (no SSE CPU instructions?) |
Response from CopilotThis error indicates that CMake is unable to locate the OpenBLAS library. To resolve this, you need to ensure that OpenBLAS is installed on your system and that CMake can find it. Here is a step-by-step plan to resolve this issue:
Step 1: Install OpenBLASFor macOS, you can use Homebrew to install OpenBLAS: brew install openblas Step 2: Set OpenBLAS Environment VariablesSet the environment variables to point to the OpenBLAS installation. You can add these lines to your shell configuration file (e.g., export OpenBLAS_HOME=$(brew --prefix openblas)
export OpenBLAS_INCLUDE_DIR=$OpenBLAS_HOME/include
export OpenBLAS_LIB_DIR=$OpenBLAS_HOME/lib Step 3: Configure CMakeModify your set(OpenBLAS_INCLUDE_DIR $ENV{OpenBLAS_INCLUDE_DIR})
set(OpenBLAS_LIB_DIR $ENV{OpenBLAS_LIB_DIR})
find_package(OpenBLAS REQUIRED)
include_directories(${OpenBLAS_INCLUDE_DIR})
link_directories(${OpenBLAS_LIB_DIR})
target_link_libraries(your_target_name ${OpenBLAS_LIBRARIES}) Alternatively, you can provide the paths directly when running CMake: cmake -DOpenBLAS_INCLUDE_DIR=$OpenBLAS_INCLUDE_DIR -DOpenBLAS_LIB_DIR=$OpenBLAS_LIB_DIR .. This should help CMake locate the OpenBLAS library and resolve the error. |
Does Jetson Nano run macOS? |
I missed that part. I was experiencing the same issue on macOS and thought this might be helpful. |
It definitly will be helpful for others!! |
I am compiling it on my Jetson Nano. I have openblas installed at:
libopenblas.so.0 (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/libopenblas.so.0
libopenblas.so (libc6,AArch64) => /usr/lib/aarch64-linux-gnu/libopenblas.so
But when I execute the "Cmake -D ..."
I still got error:
-- Could not find OpenBLAS include, defaulting to using OpenFace vended ones
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
CMake Error at cmake/modules/FindOpenBLAS.cmake:103 (MESSAGE):
Could not find OpenBLAS
Call Stack (most recent call first):
CMakeLists.txt:14 (find_package)
Should I link the openblas somehow?
The text was updated successfully, but these errors were encountered: