-
Notifications
You must be signed in to change notification settings - Fork 103
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
PlusBuild fails with OpenCV set to ON and PLUSBUILD_BUILD_SHARED_LIBS set to OFF #1030
Comments
@Sunderlandkyl Is there a static build run type that is on the perkdata cdashboard? I'm wondering if this was caught there or if any other option types fail for static builds. |
There is, although it doesn't have OpenCV enabled. |
I was able to make a manual static build with OpenCV by setting the zlib build OFF and using ITK's zlib build. I can incorporate this into the CMake, but I'm not sure if it's ITK and OpenCV version specific. I'll keep thinking about it. |
VTK zlib and ITK zlib co-exist nicely because VTK namespaces its zlib as |
@Sunderlandkyl @lassoan Is it reasonable to disable OpenCV build of zlib when doing a static build, and pass in the ITK include/lib values to OpenCV? It might break if people manually choose older versions of either ITK or OpenCV? |
ITK builds a target named ITKZLIB, with a library filename like |
ITK is exporting a zlib target: From ITKTargets.cmake::19 foreach(_expectedTarget itkdouble-conversion itksys itkvcl itkv3p_netlib ... zlib ... ITKVideoCore ITKVideoIO) |
As of PlusToolkit/PlusBuild@b481ec8 when the OpenCV version was updated from 3.4.7 to 4.5.5 (cc: @Sunderlandkyl), PlusBuild fails when
PLUSBUILD_USE_OpenCV
is turned on andPLUSBUILD_BUILD_SHARED_LIBS
is turned off. The OpenCV build project is successful, but ultimately it is the PlusLib project that fails followed by the PlusApp project.Expand to see failed build output here:
The text was updated successfully, but these errors were encountered: