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

MacOSX: repair build with VTK 9.0 #19724

Open
alalek opened this issue Mar 13, 2021 · 3 comments
Open

MacOSX: repair build with VTK 9.0 #19724

alalek opened this issue Mar 13, 2021 · 3 comments

Comments

@alalek
Copy link
Member

alalek commented Mar 13, 2021

3.4:

-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file

4.x:

-- VTK support is disabled. Compilation of the sample code has failed.

Affected build-worker: macosx-1 (macosx-2 still uses VTK 8.x)

@alalek
Copy link
Member Author

alalek commented Apr 1, 2021

Error message of failed try_compile() is:

  Run Build Command(s):/usr/local/bin/ninja cmTC_42f19 && ninja: error:
  'zlib', needed by 'cmTC_42f19', missing and no known rule to make it

Need some way to exclude unnecessary targets from VTK to properly handle that.

@LaurentBerger
Copy link
Contributor

LaurentBerger commented Apr 25, 2023

It seems issue is still here. I installed vtk using
brew install vtk
try to build opencv with vtk 9.2
-- VTK support is disabled. Compilation of the sample code has failed.
on macos monterey darwin 21.6.0
opencv opencv_contrib clone today
cmake 3.26.1
c++ compiler 12.0.5

It does not happen when I build vtk fromm source. Building vtk from source is too long

@LaurentBerger
Copy link
Contributor

#21389 I use this and It works

@asmorkalov asmorkalov removed this from the 3.4.20 milestone May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants