繁体   English   中英

Visual Studio从源代码构建应用程序

[英]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.

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