opencv / opencv

Open Source Computer Vision Library
https://opencv.org
Apache License 2.0
75.69k stars 55.61k forks source link

Cannot compile opencv5 sample on windows #25440

Closed LaurentBerger closed 1 week ago

LaurentBerger commented 2 weeks ago

System Information

opencv 5 last version commit c3fdb97

Detailed description

Problem is in https://github.com/opencv/opencv/blob/c3fdb9769de7e2f585d16090f62fa82507767984/samples/opengl/opengl_testdata_generator.cpp#L227

near and far is already defined in C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\shared\minwindef.h https://github.com/tpn/winsdk-10/blob/master/Include/10.0.16299.0/shared/minwindef.h#L94-L95

Steps to reproduce

Variable name should be changed @savuor

Issue submission checklist