-
-
Notifications
You must be signed in to change notification settings - Fork 674
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
ITKInternalEigen3_DIR not found for installed ITK5.3.0 #4840
Comments
Thank you for contributing an issue! 🙏 Welcome to the ITK community! 🤗👋☀️ We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. 📜 This is an automatic message. Allow for time for the ITK community to be able to read the issue and comment on it. |
This comment indicates the issue was fixed in 5.4.0. There has been quite a number of changes related to eigen between 5.3 and 5.4: |
hi @dzenanz Thanks for the reply. |
We are not sure if it is an ITK or a CMake issue. We weren't able to reproduce it constantly with a range of versions. People reporting it for 5.3 find it fixed for 5.4.0, but I wonder if this was just good luck. Can you try with the release version of ITK 5.4 (5.4.0) and perform a fresh build and install of ITK? Thanks for the detailed report by the way, really appreciated. |
@phcerdan Hi thanks for the follow up. I did a fresh install of ITK5.4, here's the detailed steps of installation process. Now open the project that uses ITK as 3rd-party library, set the ITK_DIR to D:\Library\ITK5.4_install\lib\cmake\ITK-5.4, and the error occurred.
CMakeLists.txt:39 (find_package)
and as I said before, setting ITK_DIR to D:\Library\ITK5.4\build will fix this error message because on my pc ITKInternalEigen3Config.cmake is located at D:\Library\ITK5.4\build\ITKInternalEigen3-build. I suspect it's something wrong with the installation process, I used everything to search for "ITKInternalEigen3Config.cmake" and it can only be found in build folder, shouldn't it also be in the install folder? |
5.4RC1 is a fair bit older than 5.4 final. Can you repeat the test with this version? The build test itself sounds good. |
Yes please, follow @dzenanz advice and try it with the released version 5.4.0 (the rc are release candidates). And yes, the problem is only in the install, that's why we are suspecting is a CMake issue. |
Hopefully also solves a problem sometimes occuring as per InsightSoftwareConsortium/ITK#4840
Description
I have a project that uses ITK as 3rd-party library. I downloaded the source code for ITK5.3.0, and the build was successful, no errors reported. I then installed the library.
For the project that uses ITK, I have this line
in the CMakeLists.txt.
When I built the project, this line caused build error:
I searched for ITKInternalEigen3Config.cmake and it's not in the installed folder. Rather it's under the build folder: InsightToolkit-5.3.0\build\ITKInternalEigen3-build.
I then searched the github repo to see if similar issues have been reported and found this issue similar to mine. In this comment it mentioned the cmake file is located under {ITK_DIR}/modules, but I did not see ITKInternalEigen3.cmake there.(I'm on WIN10 and the comment is on Linux environment, so maybe that's why it's different?)
If I want to use ITK5.3.0, how can I fix this problem?
Versions
ITK 5.3.0
Environment
Platform: windows10.0.19045-x86_64_v3
Cmake version: 3.30.2
Cmake Generator: Visual Studio 2022 17.11.2
Additional Information
Here's my CMakeCache for cmake build process. Maybe it's something wrong with the build options?
CMakeCache.txt
The text was updated successfully, but these errors were encountered: