[英]visual studio build application from the source code
我有一個使用代碼源構建的應用程序,但是我有一個問題,因為我不明白它們的含義:
在Windows上,添加
-G "Visual Studio 14 Win64"
。 另外,您可能需要將-C ../4dface/initial_cache.cmake
添加為第一個參數-從initial_cache.cmake.template
復制文件並調整路徑。
這是我無法實現的第三步:3。
生成應用程序:從源目錄外部運行: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
參數-從
initial_cache.cmake.template
復制文件並調整路徑。If you get an error about OpenCV\\_haarcascades\\_DIR, adjust `-DOpenCV_haarcascades_DIR` to point to the directory of
haarcascade_frontalface_alt2.xml
來自OpenCV的。
我在Windows 8上,我有來自此“ https://github.com/patrikhuber/4dface ”的代碼源
這是自述文件的鏈接“ https://github.com/patrikhuber/4dface/blob/master/README.md ”
謝謝。
看來您需要使用CMake。 安裝它。
從Visual Studio“工具”菜單中,選擇“ Visual Studio命令提示符”。
在窗口中,將目錄更改為項目。
現在輸入命令“ CMake -G“ Visual Studio 14 2015 Win64”。
注意:Cmake希望在短語中加上“ 2015”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.