Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meson not detection OpenCV4 installation #299

Open
michaelgruner opened this issue May 30, 2020 · 1 comment
Open

Meson not detection OpenCV4 installation #299

michaelgruner opened this issue May 30, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@michaelgruner
Copy link
Contributor

In my Mac OSX:

meson --version
0.53.0

pkg-config --modversion opencv4
4.3.0

I get the following:

...
Found CMake: /usr/local/bin/cmake (3.17.2)
Run-time dependency opencv found: NO (tried pkgconfig and framework)
Run-time dependency opencv found: NO (tried pkgconfig and framework)
Dependency opencv4 found: NO found 4.3.0 but need: '< 4.3.0' ; matched: '>= 4.0.0'
Run-time dependency opencv4 found: NO (tried pkgconfig, framework and cmake)
Compiler for C supports arguments -Werror: YES
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wredundant-decls: YES
...

gst-libs/gst/opencv/meson.build:28: WARNING: OpenCV was not found in this system. Base overlay utils will not be built.
ext/opencv/meson.build:23: WARNING: OpenCV not found in this system. Overlay plug-ins will not be built.
@michaelgruner michaelgruner added the bug Something isn't working label May 30, 2020
@michaelgruner
Copy link
Contributor Author

michaelgruner commented May 30, 2020

Why are these limits as these? These cannot be like these

opencv_dep = dependency('opencv', version : ['>= 2.3.1', '< 2.4.13'], required : false)
if opencv_dep.found()
  cdata.set('OCV_VERSION_LT_3_2', 1)
endif

if not opencv_dep.found()
  opencv_dep = dependency('opencv', version : ['>= 3.2.0', '< 3.5.0'], required : false)

  if not opencv_dep.found()
    opencv_dep = dependency('opencv4', version : ['>= 4.0.0', '< 4.3.0'], required : false)
    if opencv_dep.found()
        cdata.set('OCV_VERSION_4_0', 1)
    endif
  endif
endif

It doesn't even cover the full range of versions...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant