简体   繁体   中英

visual studio build application from the source code

I have an application to build using the code source but i have a problem with that because i didn't understand what they mean by:

On Windows, add -G "Visual Studio 14 Win64" . Also, you will probably need to add -C ../4dface/initial_cache.cmake as first argument - copy the file from initial_cache.cmake.template and adjust the paths.

Here is the third step which i can't realize it: 3.

Build the app: Run from outside the source directory: 1. mkdir build && cd build

 2. `cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5 -DOpenCV_haarcascades_DIR=/usr/share/opencv/haarcascades/ ../4dface/` On Windows, add `-G "Visual Studio 14 Win64"`. Also, you will probably need to add `-C ../4dface/initial_cache.cmake` as first 

argument - copy the file from initial_cache.cmake.template and adjust the paths.

 If you get an error about OpenCV\\_haarcascades\\_DIR, adjust `-DOpenCV_haarcascades_DIR` to point to the directory of 

haarcascade_frontalface_alt2.xml from OpenCV.

I am on windows 8 and i had the code source from this " https://github.com/patrikhuber/4dface "

and here is the link for the readme " https://github.com/patrikhuber/4dface/blob/master/README.md "

Thank you.

Looks like you need to use CMake. Install it.

From the Visual Studio "Tools" Menu, choose "Visual Studio Command Prompt".

In the window, change directories to the project.

Now enter the command "CMake -G "Visual Studio 14 2015 Win64".

Note: Cmake wants the "2015" in the phrase.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM