dlib-to-tf-keras-converter icon indicating copy to clipboard operation
dlib-to-tf-keras-converter copied to clipboard

Encounter error when cMake

Open LuckyOne09 opened this issue 5 years ago • 1 comments

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.

LuckyOne09 avatar Dec 13 '19 02:12 LuckyOne09

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

ksachdeva avatar Dec 13 '19 14:12 ksachdeva