ShiqiYu / libfacedetection

An open source library for face detection in images. The face detection speed can reach 1000FPS.
Other
12.27k stars 3.05k forks source link

How to build in Windows 10 with Visual C++ Build Tools 2015? #132

Closed fishfree closed 5 years ago

fishfree commented 5 years ago

I downloaded Visual C++ Build Tools 2015 and installed it. Then cd to src folder, and execute:

C:\Users\zwz\Downloads\libfacedetection-master\src>cmake -denable_int8=on -denable_neon=on -dcmake_build_type=release -dcmake_toochain_file=..\aarch64-toolchain.cmake ..
-- Building for: Visual Studio 14 2015
-- Selecting Windows SDK version 10.0.10240.0 to target Windows 10.0.18362.
-- The C compiler identification is MSVC 19.0.24210.0
-- The CXX compiler identification is MSVC 19.0.24210.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/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: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/zwz/Downloads/libfacedetection-master/src

C:\Users\zwz\Downloads\libfacedetection-master\src>make
'make' is not recognized as an internal or external command,
operable program or batch file.

I don't know what to do next :-(

fishfree commented 5 years ago

Finally, I got it done by run under the Visual C++ 2015 MSBuild Command Prompt: C:\Users\zwz\Downloads\libfacedetection-master\src>msbuild ALL_BUILD.vcxproj And the libfacedetection.dll file was built under the folder src/Debug folder.