哪里是在目前OpenCV的lib文件夹(或其替代)? [英] Where is the lib folder (or its replacement) in the current OpenCV?

查看:884
本文介绍了哪里是在目前OpenCV的lib文件夹(或其替代)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在下面的一本书旧版本的OpenCV的书面(2 OpenCV的计算机视觉,由PACT),它告诉我,包括我在Visual Studio中创建一个新的属性表2013时,物业经理lib文件夹。

I'm following a book written for the older version of OpenCV (OpenCV 2 Computer Vision, by PACT) and it tells me to include the lib folder in my Visual Studio 2013 Property Manager when creating a new property sheet.

我没有看到一个叫LIB在当前版本GitHub的目录(OpenCV的主,这是OpenCV的3.1.X)。已在此文件夹被换成别的东西吗?

I don't see a directory called lib in the current GitHub version (opencv-master, which is OpenCV 3.1.x). Has this folder been replaced by something else?

我建的OpenCV与cmake的。我发现了一个 4岁的悬而未决的问题,其中的人也在找这个文件夹。他们试图从不再存在另一个目录构建库,但没有为他们反正工作...

I built OpenCV with cmake. I found a 4 year old unanswered question wherein someone was also looking for this folder. They tried building the library from another directory that no longer exists, but that didn't work for them anyway...

另一个OpenCV的用户只需告诉我,GitHub的不包括库,所以你必须在本地CMake的他们。我还没有在哪里/我怎么能CMake的他们不清楚。

Another OpenCV user just told me that GitHub doesn't include the libraries, so you have to cmake them locally. I'm still not clear on where / how I can cmake them.

我意识到pre-生成的二进制文件有这个,但我回避他们,因为我需要opencv_contrib的SURF功能,所以我需要从源代码建立它。

I realize the pre-built binaries have this, but I'm avoiding them because I need the SURF functions in opencv_contrib, so I needed to build it from source.

推荐答案

在pre-生成的二进制文件将在相应的路径中的库文件夹

The pre-built binaries will have a library folder in the corresponding path

   Local System Path(Opencv Folder)-> build->x64/x86->vc10/vc11/vc12->lib.

至于你提到你不想使用它,那么唯一的选择留给你是在本地是一个更好的选择,如果你计划使用不同的功能和项目库opencv的建设,因为它解决了许多版本错误,你以后可能面对的问题。

As you mentioned that you don't wish to use it then the only option left for you is to build it locally which is a much better option if you plan to use Opencv libraries for varied functions and projects as it resolves many build errors that you might face later.

我用CMake的图形用户界面来构建OpenCV的,下面是我跟着成功地建立在我的系统库的步骤。

I used the Cmake Graphical user interface to build opencv, following are the steps I followed to successfully build the libraries on my system .


  1. 所以,你需要创建一个新的文件夹将包含所有
        Makefile文件生成的。

  2. 请参考本图,更清楚地了解:

  3. 在GUI定义源目录路径,其中OpenCVConfig.cmake为present,根据你的形象它的
        当前文件夹中的图像OpenCV的主。

  4. 同样,定义到所有的编译文件将被存储您所创建的新目录的路径。

  5. 确保取消选中Build_Examples避免配置错误。

  6. 然后单击配置在在配置完成底部。(你可能需要配置两次)

  7. 点击后相邻的标签配置,生成以创建解决方案file.It会问你的编译器的名字
    选择
        安装在系统从选项列表中的编译器。后
        代做。

  8. 转到这条路Build_New_Directory(您创建的目录),你会发现OpenCV.sln打造这个项目,这将取决于处理器需要大约10-15分钟,耐心等待。如果你在这一点上不要得到一个生成错误T投资你的时间在Visual Studio中调试回去CMake的图形用户界面和重新配置它,这个时候给的路径系统上的依赖库,它找不到.Repeat现在应当建立成功的过程。

  9. 后,将其成功打造你现在可以找到所有的OpenCV库,你的系统上建立如下的路径。
        Build_New_Directory(您创建的目录) - >
        请在安装> x64-> VC10(编译器我用) - > LIB

这篇关于哪里是在目前OpenCV的lib文件夹(或其替代)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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