【问题标题】:opencv_perf_stitching_Release.gch not generated by cmakefilescmakefiles 未生成 opencv_perf_stitching_Release.gch
【发布时间】:2017-01-10 07:09:17
【问题描述】:

我正在尝试使用代码块配置 openCV,但它在 mingw32-make 步骤中卡住了,给了我这个错误:

[ 94%] 生成
perf_precomp.hpp.gch/opencv_perf_stitching_Release.gch
C:/openCV/opencv/build/x86/mingw/modules/stitching/perf_precomp.hpp:1:0:
致命错误:无法创建预编译头文件
C:/opeCV/opencv/build/x86/mingw/modules/stitching/perf_precomp.hpp.gch/opencv_perf_stitching_Release.gch:
没有这样的文件或目录 #ifdef __GNUC__ ^ 编译终止。
modules\stitching\CMakeFiles\pch_Generate_opencv_perf_stitching.dir\build.make:61:
焦油配方
'模块/拼接/perf_precomp.hpp.gch/opencv_perf_stitching_Release.gch'
mingw32-make[2] 失败:***
[模块/拼接/perf_precomp.hpp.gch/opencv_perf_stitching_Release.gch]
错误 1 ​​CMakeFiles\Makefile2:6569:目标配方
'模块/拼接/CMakeFiles/pch_Generate_opencv_pe
rf_stitching.dir/all' mingw32-make[1] 失败:***
[模块/拼接/CMakeFiles/pch_Generate_opencv_perf_stitching.dir/all]
错误 2 Makefile:159: 目标“所有”的配方失败 mingw32-make:
*** [全部] 错误 2

我无法解决它!

我使用的是 Windows 7 32 位

【问题讨论】:

    标签: c++ opencv windows-7 cmake mingw32


    【解决方案1】:

    我遇到了类似的问题,可能是由于 cmd 输入限制引起的。 win7的cmd输入限制在8000左右,大部分情况下就足够了。

    但是在opencv构建中,一个构建的组件(opencv_perf_stitching_Release)可能会由于执行的命令较长而打破这个限制。由于不同用户的文件夹长度不同,执行命令中的切割点位于不固定的位置。他们的错误消息是也完全与众不同。在我的例子中,我收到了一条消息unrecognized command line option '-sse',但我怀疑我们遇到了同样的问题。

    最简单的解决方案是降低您的构建文件夹级别。在您的情况下,您可以将安装路径从C:/opeCV/opencv/ 更改为C:/opencv/,然后重试。

    【讨论】:

      猜你喜欢
      • 2017-11-04
      • 2018-12-07
      • 2022-07-02
      • 1970-01-01
      • 2019-02-23
      • 2016-12-10
      • 2011-08-10
      • 1970-01-01
      • 2014-01-29
      相关资源
      最近更新 更多