invalid option, /FIC
I am trying to build OpenCV 3.2 using Visual studio 2017 comminuty edition. I am building without CUDA and all other options are kept as default.
I am getting this error while bulding:
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
It is also happens in other modules.
BTW during Cmake stage I got this warnings:
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.
Using vs 2017 for module videostab there is no problem. Try to clean your solution before compiling. If problem is still here uncheck ENABLE_PRECOMPILED_HEADERS in cmake
I had the same problem and your solution worked. Why should we do that ?
Which solution ? 1- clean or 2-ENABLE_PRECOMPILED_HEADERS
The solution was to uncheck ENABLE_PRECOMPILED_HEADERS in CMake. Cleaning won't help, alone at least.
I haven't got to investigate more today But I run cmake and compile opencv using VS2017 without problem
@LBreger, Bulding without precompiled headers solved the problem. However, I could not mange to do it without this option. thank you very much
Can you try using cmake 3.7?
FYI in my case I was using CMake 3.9.0-rc5.
If you want really use vs 2017 use cmake 3.8.2 and wait may be 3.9.0 version (not a rc)