TadasBaltrusaitis / OpenFace

OpenFace – a state-of-the art tool intended for facial landmark detection, head pose estimation, facial action unit recognition, and eye-gaze estimation.
Other
6.71k stars 1.82k forks source link

Requesting help with "cmake -D WITH_OPENMP=ON CMAKE_BUILD_TYPE=RELEASE .." #1089

Open jahyki opened 2 weeks ago

jahyki commented 2 weeks ago

Hello. I am hoping to get some help with installation. I think this issue has been raised before and I have gone through previous posts and I still am having some difficulties. I am pretty new to this and I'd appreciate your help very much.

I have MacBook Pro 2023 Apple M3 running on Sonoma 14.3.1

I have followed the installation guide from here - https://github.com/TadasBaltrusaitis/OpenFace/wiki/Mac-Installation and have tried both options. But I get stuck at the same step, and that is during the build, epseciall with "cmake -D WITH_OPENMP=ON CMAKE_BUILD_TYPE=RELEASE .." in Option 1 and with "cmake -D CMAKE_BUILD_TYPE=RELEASE ..
" in Option 2 (I have followed all the steps in both options and have done deleted everything and started over twice).

This is what I get:

CMake Warning: Ignoring extra path from command line:

"/Users/mq20174710/Documents/fea_tool-master/external_libs/openFace/OpenFace/build/CMAKE_BUILD_TYPE=RELEASE"

-- The C compiler identification is AppleClang 15.0.0.15000309 -- The CXX compiler identification is AppleClang 15.0.0.15000309 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- 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:16 (find_package)

-- Configuring incomplete, errors occurred!

So I basically get the same message in both options that it could not find OpenBLAS. I have even cloned the repository from here https://github.com/OpenMathLib/OpenBLAS and added it to my folder. But it still says it "Could not find OpenBLAS".

If you have any insights into what I can do, I would appreciate it very very much. Thank you very much for your time.

brmarkus commented 2 weeks ago

Would you have a chance to use Docker on your machine? You could either use the pre-built Docker container or build it on your own machine (e.g. in case you want to change or add something).

I don't have a Mac (neither Intel-based nore M1/2/3/4).....

From the Wiki "https://github.com/TadasBaltrusaitis/OpenFace/wiki/Mac-Installation", can you run the steps from the script under "Option A" manually (not running the script, but call the commands from the script step by step manually) and show the output of the commands? There is a comment at the top of the script (line 4) of "Option A", saying

run this script while being in the fea_tool directory

And then in line 16 it changes to an existing folder external_libs... Are these two folders fea_tool and external_libs Apple-OS specific, or XCode-IDE specific...? At least it sounds important to run the steps in that specific folder fea_tool...

(or run the steps from "Option B" manually and show the output of the commands)