Warning LNK4272 library machine type 'x64' conflicts with target machine type 'X86' OpenGL_2 H:\opencv\opencv\build\x64\vc14\lib\opencv_world310.lib 1
Warning LNK4272 library machine type 'x64' conflicts with target machine type 'X86' OpenGL_2 H:\opencv\opencv\build\x64\vc14\lib\opencv_world310d.lib 1
You are linking a 64-bit library to a 32-bit application. You are also linking against the release and the debug version of the same library.
So open your project settings and change the setting where you specified the library.
Use
H:\opencv\opencv\build\x64\vc14\lib\opencv_world310d.lib
for debug builds and
H:\opencv\opencv\build\x64\vc14\lib\opencv_world310.lib
for release builds.
Finally change your CPU type to x64 (or change the above pathes to use the 32-bit versions of the libraries).