gpt4 book ai didi

c++ - 无效选项,/FIC

转载 作者:太空宇宙 更新时间:2023-11-03 22:47:23 25 4
gpt4 key购买 nike

我正在尝试使用 Visual Studio 2017 社区版构建 OpenCV 3.2。我在没有 CUDA 的情况下进行构建,所有其他选项都保留为默认值。

我在构建时遇到这个错误:

Severity    Code    Description Project File    Line    Suppression State
Error RC1103 invalid option, /FIC:/opencv/modules/videostab/src/precomp.hpp opencv_videostab C:\opencv\_build\modules\videostab\RC 1

它也发生在其他模块中。

顺便说一句,在 Cmake 阶段我收到了这个警告:

CMake Deprecation Warning at CMakeLists.txt:81 (cmake_policy):
The OLD behavior for policy CMP0020 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:85 (cmake_policy):
The OLD behavior for policy CMP0022 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:94 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

最佳答案

我也遇到过这个问题,找到了解决办法。我看到您已将此问题发布到 OpenCV 特定问题板上。github问题板上也有一个:

我假设您已经使用了那里发布的解决方案,但为了完整起见以及任何关注 Stackoverflow 的人,这里是解决方案:

快速的解决方案是禁用预编译 header 。这会增加编译时间,但在其他方面工作正常:

1

关于c++ - 无效选项,/FIC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44875388/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com