小编Ale*_*dez的帖子

在 64 位版本中使用 MVSC2019 从源 OpenCV 进行编译时出现问题

我正在 2019 64 位版本中使用 MSVC 使用 Qt 编译适用于 Windows 的 openCV。

在启动第一个配置时,我收到一些如下错误列表:

Check size of size_t
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'C:/Users/alejandro/Downloads/opencv/build/CMakeFiles/CheckTypeSize/SIZEOF_SIZE_T.bin'

  Recorded try_compile output location doesn't exist:

    C:/Users/alejandro/Downloads/opencv/build/CMakeFiles/CMakeScratch/TryCompile-jglvcw/Debug/cmTC_e9d0b.exe

Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
  3rdparty/libjpeg-turbo/CMakeLists.txt:25 (check_type_size)
Run Code Online (Sandbox Code Playgroud)

有谁知道我该如何解决这个问题?

编辑1

我发现另一个重要错误是与 OpenMP 相关的错误:

CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/FindOpenMP.cmake:420 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'C:/Users/alejandro/Downloads/opencv/build/CMakeFiles/FindOpenMP/ompver_C.bin'

  Recorded try_compile output location doesn't exist:

    C:/Users/alejandro/Downloads/opencv/build/CMakeFiles/CMakeScratch/TryCompile-q8quzk/Debug/cmTC_e2ecd.exe …
Run Code Online (Sandbox Code Playgroud)

c++ opencv cmake

3
推荐指数
1
解决办法
1229
查看次数

标签 统计

c++ ×1

cmake ×1

opencv ×1