Skip to content

Build failed with -DBUILD_EXAMPLES=ON  #23329

@beew

Description

@beew

System Information

Opencv version 4.7.0-dev

OS Ubuntu 22.04

compiler gcc9.3.0

python 3.10.9

Detailed description

Building opencv failed if the flag -DBUILD_EXAMPLES is ON

it was successful if the flag is not set.

The error was

72%] Building CXX object modules/ovis/CMakeFiles/example_ovis_ovis_demo.dir/samples/ovis_demo.cpp.o
/home/bernard/opt/opencv/opencv_contrib/modules/ovis/samples/aruco_ar_demo.cpp:6:10: fatal error: opencv2/aruco_detector.hpp: No such file or directory
    6 | #include <opencv2/aruco_detector.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [modules/ovis/CMakeFiles/example_ovis_aruco_ar_demo.dir/build.make:76: modules/ovis/CMakeFiles/example_ovis_aruco_ar_demo.dir/samples/aruco_ar_demo.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:10655: modules/ovis/CMakeFiles/example_ovis_aruco_ar_demo.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Steps to reproduce

See above

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions