OpenCV 构建问题 Visual Studio 2013

标签 opencv visual-studio-2013 cmake

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

我遵循了各处描述的步骤。我下载了 Cmake。然后我打开了OpenCVGUI。然后我把路径放到源和构建目标。接下来,我选择了 Visual Studio 2013native compiler。我按配置。问题出在这里:

我得到了以下信息:

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 文件。

最佳答案

很多headers是互斥的,所以肯定有一些找不到。它们以后不会造成任何问题,因为如果确实需要它们,CMake 会出错并指示需要 header 。

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

关于OpenCV 构建问题 Visual Studio 2013,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29529344/

相关文章:

azure - 内部版本 : Cannot use JSX unless the '--jsx' flag is provided

c++ - 将 Gcov 与 CMake 和 Catch 结合使用

c++ - 如何解决 gRPC 生成文件中的编译错误?

c++ - 函数修复 "was not declare in this scope"

python - Python OpenCV中calcOpticalFlowFarneback函数中输出值的范围

Python OpenCV 活体人脸检测裁剪保存

cmake_minimum_required 和子项目

python - 在 Python 中使用 OpenCV 的 matchTemplate 方法进行二维互相关的奇怪结果

c++ - Wchar_t 为空,除非使用 "wcout"

javascript - VS 2013 中针对 javascript AMD 模块的 Intellisense