OpenCV构建问题Visual Studio 2013

时间:2015-04-09 03:40:59

标签: opencv visual-studio-2013 cmake

事实证明,我提到的关于OpenCV崩溃的最后一个问题是OpenCV 3.0.0 beta(正式版)中的一个错误。它于2014年发布。因为,有许多提交给主人。无论如何,现在我决定自己从最新的大师那里建立图书馆。这就是我所做的。

我按照随处可见的步骤进行操作。我下载了 Cmake 。然后我打开了 OpenCVGUI 。然后我将路径放到源和构建目标。接下来,我选择了 Visual Studio 2013 本机编译器。我按下了配置。问题出在这里:

我得到了以下内容:

The CXX compiler identification is MSVC 18.0.31101.0
The C compiler identification is MSVC 18.0.31101.0
Check for working CXX compiler using: Visual Studio 12 2013
Check for working CXX compiler using: Visual Studio 12 2013 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Check for working C compiler using: Visual Studio 12 2013
Check for working C compiler using: Visual Studio 12 2013 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Performing Test HAVE_CXX_FSIGNED_CHAR
Performing Test HAVE_CXX_FSIGNED_CHAR - Failed
Performing Test HAVE_C_FSIGNED_CHAR
Performing Test HAVE_C_FSIGNED_CHAR - Failed
Check if the system is big endian
Searching 16 bit integer
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of unsigned short
Check size of unsigned short - done
Using unsigned short
Check if the system is big endian - little endian
Looking for fseeko
Looking for fseeko - not found
Looking for unistd.h
Looking for unistd.h - not found
Check size of off64_t
Check size of off64_t - failed
Looking for assert.h
Looking for assert.h - found
Looking for fcntl.h
Looking for fcntl.h - found
Looking for io.h
Looking for io.h - found
Looking for jbg_newlen
Looking for jbg_newlen - not found
Looking for mmap
Looking for mmap - not found
Looking for search.h
Looking for search.h - found
Looking for string.h
Looking for string.h - found
Looking for unistd.h
Looking for unistd.h - not found
ICV: Downloading ippicv_windows_20141027.zip...

我的问题是:如何处理“未找到”和“失败”语句。我认为他们以后会引起问题。有没有办法包括每个未找到的文件或不必要的文件。

此外,在配置后,我得到了许多 NOT FOUND 值。示例 CUDA_SDK_ROOT_DIR-NOTFOUND 等等。如果它们对于构建至关重要,我将如何得到它们。我没有安装CUDA SDK或MATLAB。我该如何构建它?任何读这篇文章的人都可以成功地为我建造吗?

我是OpenCV的全新手。请帮帮我。

编辑:我甚至尝试使用MinGW的CodeBlocks。还有一些NOT FOUND文件。

1 个答案:

答案 0 :(得分:4)

许多标题是互斥的,因此必须找不到某些标题。它们以后不会引起任何问题,因为如果确实需要它们,CMake会错误地指出标题是必需的。

您如何知道Cuda SDK和Matlab对您的构建至关重要?通常它们是可选功能。如果您依赖这些功能,则需要安装它们。但通常你很好,直到CMake出错。