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
ITK failed to build due to error C2169: 'lrintf': intrinsic function, cannot be defined with MSVC on windows #1967
Comments
This looks like a problem in OpenJPEG, and it should be updated [1][2]. @malaterre it looks like you wrote OpenJPEG's CMake buildsystem. Do you have time to update it in ITK? |
@dzenanz , Thanks for your info. This issue can still reproduced on ITK latest reversion. @malaterre could you please look at this issue? Thanks, |
What do you exactly expect from me ? I am not touching OpenJPEG release from ~2007: |
BTW |
We need to update the version of OpenJPEG which is bundled with ITK. As third party libraries are not overly related to ITK, even people not proficient with ITK should be able to update them. @spacelg could you give it a try? |
@dzenanz Thanks for your info and help. I tried to apply a patch for ../Modules/ThirdParty/OpenJPEG/src/openjpeg/opj_includes.h as below. It can build pass. Thank you very much. diff --git a/Modules/ThirdParty/OpenJPEG/src/openjpeg/opj_includes.h b/Modules/ThirdParty/OpenJPEG/src/openjpeg/opj_includes.h /* MSVC 64bits doesn't support _asm */ _asm{ |
Could you turn that into a PR? |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
ITK fixed a critical build error when compiling OpenJPEG as reported here: InsightSoftwareConsortium/ITK#1967 Update ITK to the current latest version, which includes this fix.
ITK fixed a critical build error when compiling OpenJPEG as reported here, by spacelg: "ITK failed to build due to error C2169: 'lrintf': intrinsic function, cannot be defined with MSVC on windows" issue InsightSoftwareConsortium/ITK#1967 Update ITK to version 5.2.0 (whose release is about to be announced), which includes this fix. Following pull request SuperElastix/SimpleElastix#425 by David Young (yoda-vid)
ITK fixed a critical build error when compiling OpenJPEG as reported here: InsightSoftwareConsortium/ITK#1967 Update ITK to the current latest version, which includes this fix.
@spacelg @dzenanz @malaterre Is there a specific reason why it was decided not to upgrade OpenJPEG? The |
Yes. The specific reason is: that is expected to take non-trivial effort. Of course, anyone can volunteer to do it. Skill required is mostly CMake-related, not really ITK-related. |
ITK fixed a critical build error when compiling OpenJPEG as reported here, by spacelg: "ITK failed to build due to error C2169: 'lrintf': intrinsic function, cannot be defined with MSVC on windows" issue InsightSoftwareConsortium/ITK#1967 Update ITK to version 5.2.0 (whose release is about to be announced), which includes this fix. Following pull request SuperElastix/SimpleElastix#425 by David Young (yoda-vid)
Hi All,
ITK failed to build due to error C2169: 'lrintf': intrinsic function, cannot be defined with MSVC on windows. It can be reproduced on master branch latest commit 26079ef. Could you please help look at this? Thanks a lot!
Repro Steps:
Build_log:
build.log
itk_bug623130.patch:
itk_bug623130.zip
ErrorMessage:
188>F:\gitP\InsightSoftwareConsortium\ITK\Modules\ThirdParty\OpenJPEG\src\openjpeg\opj_includes.h(106,35): error C2169: 'lrintf': intrinsic function, cannot be defined [F:\gitP\InsightSoftwareConsortium\ITK\build_amd64\Modules\ThirdParty\OpenJPEG\src\openjpeg\itkopenjpeg.vcxproj]
The text was updated successfully, but these errors were encountered: