Skip to content

BridgeOpenCV fails to build with OpenCV 4 #806

Closed

Description

@nocnokneo

Description

For example, when building unit tests:

C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe 
... .../ITK\Modules\Video\BridgeOpenCV\test\itkOpenCVImageBridgeGrayScaleTest.cxx
.../opencv2/imgcodecs/imgcodecs_c.h(1): fatal error C1189: #error:  "This header with legacy C API declarations has been removed from OpenCV. Legacy contants are available from legacy/constants_c.h file." 

Steps to Reproduce

  1. Build ITK against OpenCV4 4.0.1 with -DBUILD_TESTING:BOOL=ON -DModule_ITKVideoBridgeOpenCV:BOOL=ON

Versions

Latest master (b83454e)

Environment

Tested on Windows with MSVC 2015 and 2017 and Ubuntu 18.04 gcc-6

Activity

  1. added
    type:Bug
    on May 1, 2019
  2. nocnokneo commented on May 1, 2019

    @nocnokneo
    ContributorAuthor

    I'm happy to submit a patch for this. Can OpenCV 2.x support be dropped at this point?

  3. dzenanz commented on May 1, 2019

    @dzenanz
    Member

    It can probably be dropped. Let's give a few days to others to possibly raise objections.

  4. nocnokneo commented on May 2, 2019

    @nocnokneo
    ContributorAuthor
  5. thewtex commented on May 7, 2019

    @thewtex
    Member

    +1 for dropping OpenCV 2.x support.

  6. hjmjohnson commented on May 7, 2019

    @hjmjohnson
    Member

    +100 for dropping OpenCV2.x support.

  7. stale commented on Sep 5, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  8. added
    status:Use_Milestone_Backlog
    on Sep 5, 2019
  9. self-assigned this
    on Oct 7, 2019
  10. dzenanz commented on Oct 7, 2019

    @dzenanz
    Member

    I could take a stab at this.

  11. reopened this on Oct 7, 2019
  12. removed
    status:Use_Milestone_Backlog
    on Oct 7, 2019
  13. gentuity-it commented on Oct 7, 2019

    @gentuity-it

    Thanks @dzenanz! Sorry that I haven't had time to get around to this.

  14. stale commented on Feb 4, 2020

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

  15. added
    status:Use_Milestone_Backlog
    on Feb 4, 2020
  16. nocnokneo commented on Feb 4, 2020

    @nocnokneo
    ContributorAuthor

    There is an open PR for this issue awaiting review.

  17. removed
    status:Use_Milestone_Backlog
    on Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type:Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions