2017-07-02 4 views
1

Ich versuche, OpenCV 3.2 mit Visual Studio 2017 Community Edition zu erstellen. Ich baue ohne CUDA und alle anderen Optionen werden als Standard beibehalten.Ungültige Option,/FIC

Ich erhalte diesen Fehler während Gebäude:

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 

Es ist passiert, auch in anderen Modulen.

BTW während Cmake Phase bekam ich diese Warnungen:

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

Sieht aus wie ein Raum fehlt. – drescherjm

Antwort

1

ich auch dieses Problem gestoßen sind und eine Lösung gefunden. Ich sehe, Sie haben diese Frage auf der OpenCV-spezifischen Fragetafel veröffentlicht. Es gibt auch eine auf der GitHub Ausgabe Board als auch:

Ich nehme an, Sie bereits die Lösung dort gepostet verwendet haben, aber aus Gründen der Vollständigkeit und alle, auf Stackoverflow, hier ist die Lösung:

Die schnelle Lösung ist, vorkompilierte Header zu deaktivieren. Dies wird Kompilierung erhöhen, aber ansonsten funktioniert:

1

Verwandte Themen