Compilation error in cpu_avx512.cpp [closed]

asked 2018-09-24 08:52:22 -0600

System information

OpenCV => 3.4

Operating System / Platform => Windows7 64 Bit

Compiler => Visual Studio 2017

Processor=>i5 5200U

Compilation tool=>cmake

Detailed description

My processor doesn't support AVX512. When I configure opencv with opencv contrib modules, there is a compilation error in cpu_avx512.cpp. How to fix it? Please help!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2018-09-25 03:52:32.530208

Comments

please add the cmake output to your question

berak gravatar imageberak ( 2018-09-24 08:54:14 -0600 )edit

you could try to disable avx in the CPU_DISPATCH cmake param

berak gravatar imageberak ( 2018-09-24 09:19:16 -0600 )edit
1

Thank you! I find that the source code's version is different from opencv_contrib's version. After I download the correct version. This problem is solved. Thank you four your comment! And, I have to apologize for my careless behavior which leads to cost of your time.

ChaoQiang Liu gravatar imageChaoQiang Liu ( 2018-09-25 03:33:46 -0600 )edit

no worries, it's a pleasure to (try to) help !

(and probably you want to close this, too ! (if it was your issue !)

berak gravatar imageberak ( 2018-09-25 03:52:13 -0600 )edit