在Windows上构建opencv 3.1-在哪里指定LAPACK库的位置? [英] Building opencv 3.1 on windows - where do I specify the LAPACK library location?

查看:55
本文介绍了在Windows上构建opencv 3.1-在哪里指定LAPACK库的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于构建opencv 3.1,我在Visual Studio 2013中使用cmake.我下载了依赖项,如下所示:

For building opencv 3.1 I'm using cmake with Visual Studio 2013. I downloaded the dependencies as shown here: http://docs.opencv.org/3.1.0/d3/d52/tutorial_windows_install.html
While configuring cmake, the first thing it shows is:

FP16: Compiler support is available
A library with BLAS API not found. Please specify library location.
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.

问题是,我不知道如何指定位置.对于"Eigen"库,我自己设置了库路径(EIGEN_INCLUDE_PATH,它是预定义的),cmake表示:

The problem is, that I don't know how to specify the location. For the "Eigen" library I set the library path myself (EIGEN_INCLUDE_PATH, which is pre defined) and cmake says:

Other third-party libraries:
    Use IPP:                     NO
    Use IPP Async:               NO
    Use Lapack:                  NO
    Use Eigen:                   YES (ver 3.2.10)
    Use Cuda:                    NO
    Use OpenCL:                  YES
    Use OpenVX:                  NO
    Use custom HAL:              NO

,但没有LAPACK的预定义变量.我还尝试将* .lib和标头文件放在一个子目录中,该子目录是从下载的http://icl.cs.utk.edu/lapack-for-windows/,希望能以某种方式找到该库.

but there is no pre defined variable for LAPACK. I also tried to put the *.lib and header files in a subdirectory, which I downloaded from http://icl.cs.utk.edu/lapack-for-windows/, in the hope if cmake somehow finding the library.

我必须自己构建opencv 3.1,因为在分布式版本中,额外的模块被禁用.它的构建没有LAPACK,但是我的猜测是,我会失去很多性能.

I have to build opencv 3.1 myself, because in the distributed version, the extra modules are disabled. It builds without LAPACK, but my guess is, that I will loose a lot of performance.

非常感谢您的帮助!

推荐答案

对我来说,我使用了 OpenBlas 库:

For me, I used OpenBlas library:

使用CMake Gui配置 opencv

Use CMake Gui to config opencv

  • 选择 Advanced
  • OpenBLAS 组中,为 OpenBLAS
  • 配置include文件夹和库文件.
  • WITH 组中,选择 WITH_LAPACK
  • 现在单击 Configure (配置)按钮,CMake将自动配置Lapack信息.
  • 一切正常,您可以单击CMake Gui上的 Generate 按钮以生成Visual Studio项目文件并开始构建.
  • Select Advanced
  • In the OpenBLAS group, config the include folder and library file for OpenBLAS
  • In the WITH group, select WITH_LAPACK
  • Now click the Configure button, CMake will automatically config Lapack info.
  • After all is ok, you can click on Generate button on CMake Gui to generate visual studio project files and start to build.

这篇关于在Windows上构建opencv 3.1-在哪里指定LAPACK库的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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