OpenCV build from source error

What about the Python interpreter versions and Visual Studio versions.
I think both PCs must have same python interpreter versions, the same Visual Studio editions?

I will give more feedback. But, I think after I set BÙILD_SHARED_LIBS=OFF Visual Studio build errors about opencv_xfeatures2d470.dll and cv2.cp310-win_amd64.pyd disappeared.
Do you tell that even if the errors are disappeared I can not use features2d?