Last active
June 21, 2019 18:39
-
-
Save langheran/c9a015a3c6e66bb628bd19ffcd8321db to your computer and use it in GitHub Desktop.
Install DLib on windows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rd /s /q build | |
mkdir build | |
cd build | |
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 | |
cmake -G "Ninja" ^ | |
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON ^ | |
-D "CMAKE_C_COMPILER=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" ^ | |
-D "CMAKE_CXX_COMPILER=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" ^ | |
-DCMAKE_CXX_FLAGS=/FS ^ | |
-DJPEG_INCLUDE_DIR=..\dlib\external\libjpeg ^ | |
-DJPEG_LIBRARY=..\dlib\external\libjpeg ^ | |
-DPNG_PNG_INCLUDE_DIR=..\dlib\external\libpng ^ | |
-DPNG_LIBRARY_RELEASE=..\dlib\external\libpng ^ | |
-DZLIB_INCLUDE_DIR=..\dlib\external\zlib ^ | |
-DZLIB_LIBRARY_RELEASE=..\dlib\external\zlib ^ | |
-DCMAKE_BUILD_TYPE=Release ^ | |
-DCMAKE_INSTALL_PREFIX=install .. | |
cmake --build . --config Release --target all | |
ninja install | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment