Skip to content

Cannot compile opencv5 sample on windows #25440

@LaurentBerger

Description

@LaurentBerger

System Information

opencv 5 last version commit c3fdb97

Detailed description

Problem is in

ModelData(std::string modelPath, double fov, double near, double far, double scale, Vec3d pos, Vec3d center, Vec3d up)

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

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions