Ask Your Question
0

C:\Users\m\AppData\Local\Temp\ccS5IfdC.s|20393|Error: invalid register for .seh_savexmm|

asked 2018-07-08 05:38:23 -0600

rezaee gravatar image

I am trying to use OpenCV 3.4.1 on Windows 10 with CodeBlocks. So I downloaded mingw64(x86_64-8.1.0-release-posix-seh-rt_v6-rev0), and used CMake to configure and generate opencv.cbp successfully. But when I opened it on CodeBlocks and tried to build it, I got these error message:

C:\Users\m\AppData\Local\Temp\ccS5IfdC.s|20393|Error: invalid register for .seh_savexmm| C:\Users\m\AppData\Local\Temp\ccS5IfdC.s|20395|Error: invalid register for .seh_savexmm| C:\Users\m\AppData\Local\Temp\ccS5IfdC.s|20397|Error: invalid register for .seh_savexmm|
.

.
.

[modules\dnn\CMakeFiles\opencv_dnn.dir\build.make|1016|modules/dnn/CMakeFiles/opencv_dnn.dir/layers/layers_common.avx512_skx.cpp.obj] Error 1|

[CMakeFiles\Makefile2|4086|modules/dnn/CMakeFiles/opencv_dnn.dir/all] Error 2| [ C:\opencv\build\Makefile|162|all] Error 2| ||=== Build failed: 18 error(s), 1642 warning(s) (28 minute(s), 36 second(s)) ===

|

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-07-08 05:44:45 -0600

berak gravatar image

updated 2018-07-08 05:46:05 -0600

known issue. you have to disable the CPU_DISPATCH options for mingw, like:

cmake -DCPU_DISPATCH=

(leave it empty)

also:

-DENABLE_PRECOMPILED_HEADERS=OFF
-DWITH_IPP=OFF
-DWITH_MSMF=OFF

(updating mingw to 8.1.0 was a good idea already !)

edit flag offensive delete link more

Comments

Where should I do these changes?

rezaee gravatar imagerezaee ( 2018-07-08 06:05:14 -0600 )edit

with cmake, either on the cmdline, or in the gui (cmake-gui)

berak gravatar imageberak ( 2018-07-08 06:23:39 -0600 )edit

I checked them in CMake gui, all of them are like you wrote above by default!

rezaee gravatar imagerezaee ( 2018-07-08 07:42:54 -0600 )edit

I tried to disable build_opencv_python in cmake gui and i think it worked.

rezaee gravatar imagerezaee ( 2018-07-08 08:52:18 -0600 )edit

happy to hear that !

berak gravatar imageberak ( 2018-07-08 09:41:25 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-07-08 05:38:23 -0600

Seen: 1,518 times

Last updated: Jul 08 '18