I want to setup OpenCV using CMake for Visual Studio 2019. After all these processes while debugging my program I get this error:
Unhandled exception at 0x00007FFCF1FF2382 (opencv_world412d.dll) in yaabolfazl.exe: 0xC000001D: Illegal Instruction. occurred.
I think it is caused by my processor which can not support AVX (Windows 8.1, core i5 M520 2.4GHz). (Am I right?)
I found out I can make a new version of OpenCV using CMake without AVX support by using CPU_DISPATCH
and CPU_BASELINE
option, but when I change their value I get this error:
Error in the configuration process, project file may be invalid.
So how can I build OpenCV using CMake without AVX support(e.g. using SSE support only)?