OpenCV 构建问题 Visual Studio 2013
OpenCV build problems Visual Studio 2013
事实证明,我最后问的关于 OpenCV crash 的问题是 OpenCV 3.0.0 beta(正式版)中的一个 bug。它于 2014 年发布。从那以后,有很多提交给 master。无论如何,现在我决定自己从最新的主人那里建立图书馆。这是我做的。
我按照各处描述的步骤进行操作。我下载了Cmake。然后我打开OpenCVGUI。然后我把路径放到源和构建目标。接下来,我选择了 Visual Studio 2013 和 native 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”和“failed”语句我应该怎么办。我认为他们以后会引起问题。有什么方法可以包含每个未找到的文件或不需要的文件。
此外,在配置之后我得到了很多 NOT FOUND 值。例如 CUDA_SDK_ROOT_DIR-NOTFOUND 等等。如果它们对构建至关重要,我将如何获得它们。我没有安装 CUDA SDK 或 MATLAB。我如何构建它?任何人都可以阅读这篇文章并成功地为我构建它吗?
我是 OpenCV 的新手。请帮助我。
编辑:我什至尝试过使用 MinGW 的 CodeBlocks。还有一些 NOT FOUND 文件。
很多headers是互斥的,所以肯定有一些是找不到的。它们以后不会造成任何问题,因为如果确实需要它们,CMake 会出错并指示 headers 是必需的。
您怎么知道 Cuda SDK 和 Matlab 对您的构建至关重要?通常它们是可选功能。如果您依赖这些功能,则需要安装它们。但通常你很好,直到 CMake 出错。
事实证明,我最后问的关于 OpenCV crash 的问题是 OpenCV 3.0.0 beta(正式版)中的一个 bug。它于 2014 年发布。从那以后,有很多提交给 master。无论如何,现在我决定自己从最新的主人那里建立图书馆。这是我做的。
我按照各处描述的步骤进行操作。我下载了Cmake。然后我打开OpenCVGUI。然后我把路径放到源和构建目标。接下来,我选择了 Visual Studio 2013 和 native 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”和“failed”语句我应该怎么办。我认为他们以后会引起问题。有什么方法可以包含每个未找到的文件或不需要的文件。
此外,在配置之后我得到了很多 NOT FOUND 值。例如 CUDA_SDK_ROOT_DIR-NOTFOUND 等等。如果它们对构建至关重要,我将如何获得它们。我没有安装 CUDA SDK 或 MATLAB。我如何构建它?任何人都可以阅读这篇文章并成功地为我构建它吗?
我是 OpenCV 的新手。请帮助我。
编辑:我什至尝试过使用 MinGW 的 CodeBlocks。还有一些 NOT FOUND 文件。
很多headers是互斥的,所以肯定有一些是找不到的。它们以后不会造成任何问题,因为如果确实需要它们,CMake 会出错并指示 headers 是必需的。
您怎么知道 Cuda SDK 和 Matlab 对您的构建至关重要?通常它们是可选功能。如果您依赖这些功能,则需要安装它们。但通常你很好,直到 CMake 出错。