-
Notifications
You must be signed in to change notification settings - Fork 69
COMP: Remove "vtk" prefix from VTK COMPONENTS #242
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
COMP: Remove "vtk" prefix from VTK COMPONENTS #242
Conversation
81195e0 to
4efbf33
Compare
|
Windows-2019 error in CI is one of those filepath is too long from Windows... |
|
This brings up the issue of whether or not ITKVtkGlue should be a requirement or not. At the top level CMakeLists.txt, the find_package(VTK) is conditional on ITKVtkGlue being enabled...and ITKVtkGlue requires QuickView.h which is part of ITKVtkGlue. I think we need to add ITKVtkGlue as a dependency in itk-modules so that order of building works. |
Checking this: InsightSoftwareConsortium/ITKSoftwareGuide#150 It looks like it would make more sense to make |
|
@thewtex -- QuickView.h is required by the code in SphinxExamples that are used by the VTK examples. QuickView.h is in ITK/Bridge/VTKGlue. I believe that means that we need to add VTKGlue as a dependency, but perhaps not? |
Good catch. In that case the current setup seems desirable, correct? If we have |
|
I was getting QuickView.h not found, unless I added ITKVtkGlue as a depends in itk-modules.cmake. Perhaps that depends is needed for the path to be specified? |
|
Maybe there are some examples that require a
|
|
I cannot reproduce the QuickView.h not found after switching OFF the module VtkGlue in ITK. |
|
I wonder if building from scratch would have the same result.
…On Wed, Mar 17, 2021 at 1:57 PM Pablo Hernandez-Cerdan < ***@***.***> wrote:
I cannot reproduce the QuickView.h not found after switching OFF the
module VtkGlue in ITK.
The ENABLE_QUICKVIEW turns off in that case, but everything compiles.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#242 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACEJL5BFH5ODEWU7EYMGW3TEDUPJANCNFSM4ZK4ABWQ>
.
--
Stephen R. Aylward, Ph.D.
Senior Director of Strategic Initiatives
---
Kitware: *Delivering innovative, open source, scientific software.*
|
|
Is the module's name "VtkGlue" or "ITKVtkGlue" ?
…On Wed, Mar 17, 2021 at 1:48 PM Pablo Hernandez-Cerdan < ***@***.***> wrote:
Maybe there are some examples that require a if(ENABLE_QUICKVIEW)
conditional.
https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/blob/4efbf33490efbb0f6baafb18511df6585b739e1c/src/Bridge/CMakeLists.txt#L2
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#242 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACEJL5D5RGLF2MFIHNBHJ3TEDTO7ANCNFSM4ZK4ABWQ>
.
--
Stephen R. Aylward, Ph.D.
Senior Director of Strategic Initiatives
---
Kitware: *Delivering innovative, open source, scientific software.*
|
|
There is also https://github.com/InsightSoftwareConsortium/ITKVTKGlue, so there could be some confusion between them. The remote one does not have |
|
To avoid complexity and modernize, I am wondering if we should replace the QuickView usage in the examples with Jupyter notebooks (and eventually vtk.js)? What do you think? |
|
The name is |
|
I think this could be simplified even more, we already do a ITKSphinxExamples/src/CMakeLists.txt Line 18 in 4efbf33
We can set |
|
Then individual examples would not be self-contained. |
4efbf33 to
3172250
Compare
|
Last push re-use Individual examples define their own |
|
Do we need to declare a conditional depends on itkvtkglue in
itk-modules.init?
…---
Sent via phone.
On Wed, Mar 17, 2021, 3:35 PM Pablo Hernandez-Cerdan < ***@***.***> wrote:
Last push re-use _vtk_prefix defined at top level when ITK has ITKVtkGlue
(to reuse the find_package(VTK))
Individual example define their own _vtk_prefix.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#242 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACEJLYJFVOYTZTTSMEHN2DTEEABTANCNFSM4ZK4ABWQ>
.
|
| find_package(ITK REQUIRED) | ||
| include(${ITK_USE_FILE}) | ||
|
|
||
| find_package(VTK REQUIRED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will change stand-alone build behavior of this and other similar examples. They used to work fine with VTK8- and throw a configure warning with VTK9+. Now they will work fine with VTK9+, but fail to work with VTK8-.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming that _vtk_prefix will be undefined (and therefore empty) if being built stand-alone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you think this first find_package will change that? VTK is required anyway in these cases.
That may help when built as a remote module, but would need to be tested. |
|
We may just want to support the latest released version of VTK, i.e. VTK 9, here to keep things simple. |
I am not sure anything related to ITKVtkGlue has changed here, if this is tackled, should be in other PR. |
|
This PR seems long, but is not complex, it defines The standalone examples define their own |
|
@phcerdan could this please be rebased on |
3172250 to
222bd3d
Compare
In modern VTK (> 8.90) the COMPONENT names don't have the "vtk" prefix.
This fix get the VTK version first, and then look for the COMPONENTS
with the right name, prepending ${_vtk_prefix} to the names.
The examples using ITKVtkGlue (`ENABLE_QUICKVIEW` = ON) re-use the variable
`_vtk_prefix` defined in the top CMakeLists.
The examples that depend on `VTK` and `ITK without ITKVTKGlue` set
`_vtk_prefix` by their own.
Fix InsightSoftwareConsortium#241
222bd3d to
9c045a1
Compare
|
Rebased on top of master @thewtex |
thewtex
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phcerdan thanks!
In modern VTK (> 8.90) the COMPONENT names don't have the "vtk" prefix.
This fix get the VTK version first, and then look for the
COMPONENTSwith the right name, prepending ${_vtk_prefix} to the names.
Fix #241