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

Fix build error and add qt5 support #10

Merged
merged 4 commits into from
Sep 5, 2017

Conversation

jcfr
Copy link
Collaborator

@jcfr jcfr commented Sep 4, 2017

@fedorov While testing the recent updates associated with Slicer build system, I ended updating your extension

Issue #9 is fixed by 1b42eef. A entry to the migration guide has also been added. The migration guide associated with VTK6, VTK7, VTK8, Qt5 and Slicer are now all linked of https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/MigrationGuide

Please, consider reviewing and testing this set of changes.
Cc: @lassoan @pieper

This commit updates the required version to 3.5
This commit fixes error like the following:

```
In file included from /tmp/LongitudinalPETCT/Quantification/PETSUVImageMaker/PETSUVImageMaker.cxx:41:0:
/tmp/LongitudinalPETCT/Quantification/PETSUVImageMaker/itkDCMTKFileReader.h:26:20: fatal error: dcxfer.h: No such file or directory
```
This commit fixes the following build error by removing code trying to
associate transform with the volume property node.

Following r24891 (ENH: Moved up vtkMRMLStorableNode in the MRML node
hierarchy.), vtkMRMLStorableNode is not a children of vtkMRMLTransformable
node anymore, but directly a children of vtkMRMLNode.

This commit fixes the following error:

```
/tmp/LongitudinalPETCT/MRML/vtkMRMLLongitudinalPETCTStudyNode.cxx: In member function ‘void vtkMRMLLongitudinalPETCTStudyNode::ObserveRegistrationTransform(bool)’:
/tmp/LongitudinalPETCT/MRML/vtkMRMLLongitudinalPETCTStudyNode.cxx:478:28: error: ‘class vtkMRMLVolumePropertyNode’ has no member named ‘GetParentTransformNode’
               && propNode->GetParentTransformNode()
                            ^
/tmp/LongitudinalPETCT/MRML/vtkMRMLLongitudinalPETCTStudyNode.cxx:480:23: error: ‘class vtkMRMLVolumePropertyNode’ has no member named ‘SetAndObserveTransformNodeID’
             propNode->SetAndObserveTransformNodeID(
                       ^
/tmp/LongitudinalPETCT/MRML/vtkMRMLLongitudinalPETCTStudyNode.cxx:503:23: error: ‘class vtkMRMLVolumePropertyNode’ has no member named ‘SetAndObserveTransformNodeID’
             propNode->SetAndObserveTransformNodeID(NULL);
                       ^
```
@fedorov
Copy link
Member

fedorov commented Sep 5, 2017

Thank you JC! This extension was developed as a student project, and I don't have resources to maintain it. I made this fork because the student stopped responding to pull requests.

I will review and test sometime after Sunday (MICCAI).

@jcfr
Copy link
Collaborator Author

jcfr commented Sep 5, 2017

No problem and thanks for the update.

In the mean time, I will most likely update the description file to build off my branch.

@fedorov
Copy link
Member

fedorov commented Sep 5, 2017

I don't have problem merging it, and I think there is no damage, so I will just merge it to avoid further fork chain. Will also add you as collaborator.

@fedorov fedorov merged commit 9747c42 into QIICR:master Sep 5, 2017
@fedorov
Copy link
Member

fedorov commented Sep 5, 2017

In fact, you should have already had access, since you are on the QIICR team

image

@jcfr jcfr deleted the fix-build-error-and-add-qt5-support branch September 5, 2017 14:32
@jcfr
Copy link
Collaborator Author

jcfr commented Sep 5, 2017

In fact, you should have already had access, since you are on the QIICR team

Good point. Just want to be a good citizen and check with you first 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants