-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
DCMTK
IO
module does not compile on Windows
#2817
Comments
I just tried on macOS and it built. Did you try toggling |
Thanks for giving this a try @seanm. When setting the
which comes from here. I feel like if using a system At the same time, is that really required? Why does I'd say that the issue is not related to |
Sorry if I was unclear, I didn't mean to suggest it would be related, I just noticed there was that toggle, and thought just maybe it would make a difference... |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
This is still relevant stale bot. |
Hi @jhlegarreta, I won't be able to help this week but can take a look in the not-too-far future. I am not very familiar with the DCMTK CMake code in ITK. Given that the failure is only on Windows, maybe there is a path length issue somewhere? |
No worries. It is not urgent, but nice to fix at some point.
Not sure about the underlying causes. |
Also possibly related: #2872. |
@jhlegarreta I was not able to immediately recreate this issue. The Could you please confirm whether you are still seeing this issue when you try building? If so, could you please try upgrading your CMake version and/or changing your build type to see if that helps? Platform: Windows 10 |
Thanks for the effort Tom. I submitted an experimental build to My toolchain is the following: (So "reasonably up-to-date" I'd dare to say) Note that there are additional build errors due to some local, unfinished additions (sorry for the noise they add), but you can see that the
I did not check the
And I was not willing to download and compile ICU in case it resulted in new issues. In fact, I think that is a separate issue, though, as the build errors point rather to issue #2872 |
@jhlegarreta I agree that this is a separate issue. The original error message
does not appear to be present in the build you posted, and as you pointed out the new errors
could indeed be explained by issue #2872. It does not appear that we are able to reproduce this issue, I am in favor of closing it. @jhlegarreta @dzenanz do you agree? |
The error
appears when using a system Thus, there are multiple errors, from different nature, with the module, and thus I think the issue is still applicable and different from #2872. Note that the above error was reproduced by @dzenanz, as commented in the original issue report. Note that this error appeared as I tried to use a system
but even if in the experimental build it does not seem to be present, I should double check with a regular build. So I am not quite in favor of closing the issue. |
Not present either in a regular build. So it somehow looks that that one is gone now (maybe the commit bump in PR #3119 solved it), and it's the compiler flag errors that persist (when using a non-system |
We may want to see what Slicer is doing in their build for Windows. |
I have compiled the module without issues just now (master, default configuration without testing plus DCMTK IO).
Both Debug and Release. |
Didn't fail here too: https://open.cdash.org/build/8268393 |
Thanks for the information @issakomi. I had tried compiling a few days ago without success, and the same error being reported. Now I've tried again this afternoon with a clean build and it looks like things are OK. I need to have a closer look. I will follow up with this as time permits. |
Ditto. Thanks to @jamesobutler who started to work on updating DCMTK in Slicer, we will be working on this. |
I gave this another try with a new, clean target folder and reduced the scope of the error to the test, but did not find a solution. In summary, So I'm closing this issue in favor of #3820, which has a more faithful report of the problem. |
Description
The
DCMTK
IO
module does not compile.Steps to Reproduce
Module_ITKIODCMTK:BOOL=ON
;DCMTK_USE_ICU=OFF
The file, however, does exist in the build tree:
Expected behavior
ITK should build with no errors.
Actual behavior
It does not build.
Reproducibility
100%.
Versions
ITK
master
.Environment
OS: Windows 10
CMake: 3.20.3
Compiler: MSVC 2019 19.29.30133.0
Build: static; debug
Additional Information
Reproduced/confirmed by @dzenanz in #2796 (comment).
The
DCMTK
module compiles fine as stand-alone project for the tag used inITK
, but linking to it as a system module (ITK_USE_SYSTEM_DCMTK
) in CMake results also in another type of errors:The file, however, does exist in the DCMTK build tree:
Related to PR #2796.
The warnings cast when building
DCMTK
were reported in #2798.The module seems to compile fine on
Linux
:https://open.cdash.org/build/7512875/notes
https://open.cdash.org/build/7512875
The text was updated successfully, but these errors were encountered: