Created
July 2, 2019 19:18
-
-
Save langheran/f417a7f136f8889204791ca3c7b4617c to your computer and use it in GitHub Desktop.
DLib release install.
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
cd C:\dlib-19.8 | |
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 .. | |
rd /s /q release_build | |
echo d | xcopy build "C:\dlib-19.8\release_build" /s /e /y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment