ksachdeva / dlib-to-tf-keras-converter

A set of scripts to convert dlib's face recognition network to tensorflow, keras, onnx etc
Apache License 2.0
37 stars 10 forks source link

Encounter error when cMake #8

Open LuckyOne09 opened 4 years ago

LuckyOne09 commented 4 years ago

When I followed the instructions in readme.md, I came across some unexpected error. After I entered "cmake -DCMAKE_BUILD_TYPE=Release .." There was the error:

CMake Error at D:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find BLAS (missing: BLAS_LIBRARIES) Call Stack (most recent call first): D:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) D:/Program Files/CMake/share/cmake-3.16/Modules/FindBLAS.cmake:806 (find_package_handle_standard_args) cmake/FindDlib.cmake:11 (find_package) CMakeLists.txt:21 (find_package)

The full output was: -- Building for: Visual Studio 15 2017 -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.17134. -- The C compiler identification is MSVC 19.16.27034.0 -- The CXX compiler identification is MSVC 19.16.27034.0 -- Check for working C compiler: D:/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- Check for working C compiler: D:/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: D:/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- Check for working CXX compiler: D:/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for sgemm -- Looking for sgemm - not found -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE CMake Error at D:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find BLAS (missing: BLAS_LIBRARIES) Call Stack (most recent call first): D:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) D:/Program Files/CMake/share/cmake-3.16/Modules/FindBLAS.cmake:806 (find_package_handle_standard_args) cmake/FindDlib.cmake:11 (find_package) CMakeLists.txt:21 (find_package)

Thank you for your kindness to read.

ksachdeva commented 4 years ago

Hi @LuckyOne09

sudo apt install libatlas-base-dev  libopenblas-dev liblapack-dev 

on linux (ubuntu) should help resolve this.

For windows, you would have manually install OpenBlas. Majority of open source are not friendly to work with on windows so there will be some pain to install it. I prefer to use either osx or linux for all the development but have successfully compiled on dlib on windows many times in past.

My humble suggestion would be to start taking help from https://github.com/Microsoft/vcpkg (as this what I use). They have a good documentation on how to get started and do support dlib. Using Microsoft/vcpkg issues like this will go away.

Regards Kapil