have you’ve solved the issue? I have something similar I think. Everything builds ok expcept when it tries to build the highgui module, for some reason it tries to use stubs_32.h
but both my machines build and target are 64bit so I don’t need 32bit files.