Skip to content

[master]: Opencv not building with cmake version 4.x used in whinlatter release #2400

@LMS-TimoSchuster

Description

@LMS-TimoSchuster

With the new whinlatter release yocto moved the cmake version to 4.x which causes following errors:

|   Compatibility with CMake < 3.5 has been removed from CMake.
| 
|   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
|   to tell CMake that the project requires at least <min> but has been updated
|   to work with policies introduced by <max> or earlier.
| 
|   Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

Adding -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to the recipe is not enough, see:

opencv/opencv#27122

The solution is basically to bump up every cmake_minimum_required < 3.5 to 3.5 via patch file similar to:

opencv/opencv@cb80308#diff-e4ddc642d45c62a456c800502887e68e6c64595da87894090b9f3a0a08817799

Are there plans to move to a newer opencv imx version for whinlatter? If not, I could provide a patch that fixes the build issue for the 4.6.0.imx version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions