-
Notifications
You must be signed in to change notification settings - Fork 119
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
Missing semicolons causing compile issues with some compilers #1224
Comments
Thanks @Wildcarde ! Just to explain the issue, we now use the ITK v5.4.0 tag of May 20, 2024 to build elastix. It appears that ITK has become more strict with respect to semicolons, just after the v5.4.0 tag. Specifically after pull request InsightSoftwareConsortium/ITK#4706 (June 4, 2024). Would it be possible for you to put your fix into a pull request, for https://github.com/SuperElastix/elastix/pulls? |
Aims to resolve issue #1224 "Missing semicolons causing compile issues with some compilers". ITK has become stricter with respect to those semicolons from ITK pull request InsightSoftwareConsortium/ITK#4706 commit InsightSoftwareConsortium/ITK@55e2339 "ENH: Default to allow ITK_MACROEND_NOOP_STATEMENT", Hans Johnson, June 4, 2024. Co-authored-by: Wildcarde <[email protected]>
Aims to resolve issue #1224 "Missing semicolons causing compile issues with some compilers". ITK has become stricter with respect to those semicolons from ITK pull request InsightSoftwareConsortium/ITK#4706 commit InsightSoftwareConsortium/ITK@55e2339 "ENH: Default to allow ITK_MACROEND_NOOP_STATEMENT", Hans Johnson, June 4, 2024. Co-authored-by: Wildcarde <[email protected]>
|
yea sorry I was hammering through this to get something out and tested with some of our researchers before the holiday weekend, so i just grabbed the git diff and kept running. on the ITK note, I did notice one additional thing, you are reliant on a file only available in itk 6.0 which isn't 'officially' on their release list yet with elastix 5.2.0 and the git version of elastix. Specifically this file: https://insightsoftwareconsortium.github.io/ITKDoxygen/itkDeref_8h_source.html Since we were just trying to scramble and get this done for the lab I bumped our ITK build to the github main line version from 8/28/2024 and that has the file in question but older itk versions including 5.4 do not seem to include that header. |
No problem, thanks! "itkDeref.h" is included with ITK tag v5.4.0 (https://github.com/InsightSoftwareConsortium/ITK/blob/v5.4.0/Modules/Core/Common/include/itkDeref.h), which is the ITK tag we were using when releasing elastix 5.2.0. So I believe it's ok for elastix to already use this rather new header file. Although it would have been even nicer if ITK v5.4.0 would have been released officially, already. 🤷 But I believe ITK v5.4.0 will be officially released any day now 😃 |
Aims to resolve issue #1224 "Missing semicolons causing compile issues with some compilers". ITK has become stricter with respect to those semicolons from ITK pull request InsightSoftwareConsortium/ITK#4706 commit InsightSoftwareConsortium/ITK@55e2339 "ENH: Default to allow ITK_MACROEND_NOOP_STATEMENT", Hans Johnson, June 4, 2024. Co-authored-by: Wildcarde <[email protected]>
I noticed the 5.4 tag which isn't posted yet on the actual website for download, but the builds all seem to make the folder actually named itk 6.0 not 5.4. whichever it is, it's not currently available outside of pulling from source directly which is what I wanted to put on your radar incase there's any documentation that needs to be updated to note that. |
I've generated a quick patch of the tweaks i needed to make to get Elastix to build on Rocky 9 with the intel OneAPI 2024.02 compiler and a from source build of ITK's github version:
Nothing major and it looks like it may have been a copy/paste error but I figured you should know. This appears to also be present in the released version 5.2.0 as well so I'm not sure if this is just an issue of compiler strictness or not.
The text was updated successfully, but these errors were encountered: