Skip to content

Contrib modules getting built perfectly fine, even when CMAKE says their dependencies are not available #630

@StevenPuttemans

Description

@StevenPuttemans

Just grabbed latest master from both main and contrib repository and tried to build all the contrib modules also. What baffled me is the following.

The Cmake procedure clearly looks for dependencies and states that for example the following dependencies are not found

Caffe:   NO
Tesseract:   NO

And there comes the catch, it then states, ow lets build the modules depending on it

To be built:                 cudev core cudaarithm flann imgproc ml reg surface_matching video cudabgsegm cudafilters cudaimgproc cudawarping dnn fuzzy imgcodecs photo shape videoio cudacodec highgui objdetect plot ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo datasets rgbd stereo structured_light superres tracking videostab xfeatures2d ximgproc aruco optflow stitching matlab python2
    Disabled:                    world contrib_world
    Disabled by dependency:      -
    Unavailable:                 java python3 viz cvv hdf sfm

Which means in my opinion that the CMake is wrongly configured.

So my suggestions

  • If dependencies are not found on the system, do not build the modules itself. That will force people to install the dependencies first and ensure that they know what they are doing.
  • A small notice is that the Tesseract: NO is being projected twice in the output, so I am guessing it is checked twice also, which is redundant.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions