2017-07-02 55 views
1

我想用Visual Studio 2017社區版建立OpenCV 3.2。 我在沒有CUDA的情況下構建,所有其他選項都保留爲默認值。無效的選項,/ FIC

我得到這個錯誤,而建設:

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 

這也是在其他模塊發生。

BTW期間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. 
+0

看起來像一個空間丟失。 – drescherjm

回答

1

我也遇到這個問題也是一樣,找到了解決辦法。 我看到你已經在OpenCV特定問題板上發佈了這個問題。 也有一個在github上的問題板以及:

我假設你已經使用該解決方案張貼在那裏,但是完整性和任何人的緣故看在Stackoverflow上,這裏是解決方案:

快速解決方案是禁用預編譯頭。這將增加編譯時間,但在其他方面正常工作:

1