如何设置Dlib与Visual Studio 2013没有CMake? [英] How to setup Dlib with Visual Studio 2013 without CMake?

查看:803
本文介绍了如何设置Dlib与Visual Studio 2013没有CMake?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • dlib的官方 文档 是如下所示:

所有您需要做的是创建一个空控制台项目。然后向其中添加 dlib / all / source.cpp ,并将包含 dlib文件夹的文件夹添加到#include搜索路径。

       All you need to do is create an empty console project. Then add dlib/all/source.cpp to it and add the folder containing the dlib folder to the #include search path. Then you can compile any example program by adding it to your project.

再次注意,如果你链接到libjpeg,dlib只能使用jpeg和png文件和libpng。在Visual Studio中,最简单的方法是将dlib / external文件夹中的所有源文件添加到项目中,并定义 DLIB_PNG_SUPPORT DLIB_JPEG_SUPPORT 预处理器伪指令。如果你不知道如何配置Visual Studio,那么你应该使用如上所示的CMake,因为它会自动处理一切。

       Again, note that dlib will only be able to work with jpeg and png files if you link in libjpeg and libpng. In Visual Studio, the easiest way to do this is to add all the source files in the dlib/external folder into your project and also define the DLIB_PNG_SUPPORT and DLIB_JPEG_SUPPORT preprocessor directives. If you don't know how to configure Visual Studio then you should use CMake as shown above since it will take care of everything automatically.


  • 但是,根据这些描述,你会得到更少的帮助。更糟糕的是,这个文档只适用于Visual Studio 2010,但我想在版本2013中设置Dlib。那么,如何设置没有CMake?

推荐答案


  • 我想我在 https://github.com/aleen42/PersonalWiki/blob/master/qa/dlib.md

    • I think I found the answer in https://github.com/aleen42/PersonalWiki/blob/master/qa/dlib.md
    • 这篇关于如何设置Dlib与Visual Studio 2013没有CMake?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆