[Insight-users] CMake Configuration Error With VC++ 7.0
jlazdotcom-itk at yahoo.com
jlazdotcom-itk at yahoo.com
Wed Aug 17 17:55:33 EDT 2005
I've resolved the issue. The root cause of the CMake configuration errors was an incorrect path for the sourcecode in CMake. I incorrectly configured the source code path to be "InsightToolkit-2.0.1\Code". The correct path for the source code is the top level folder, "InsightToolkit-2.0.1". Hopefully, others who run into the same issue can learn from my mistake :-)
jlazdotcom-itk at yahoo.com wrote:
Greetings,
I get the following errors when attempting to configure ITK 2.0.1 with CMake versions 2.2 (beta) for VC++ 7.0.
"Library ITKBasicFilters is defined using ADD_LIBRARY
after the library is used using TARGET_LINK_LIBRARIES
for the target ITKFEM. This breaks CMake's dependency
handling. Please fix the CMakeLists.txt file. (Press
Cancel to suppress any further messages)."
"Library ITKIO is defined using ADD_LIBRARY after the
library is used using TARGET_LINK_LIBRARIES for the
target ITKFEM. This breaks CMake's dependency handling.
Please fix the CMakeLists.txt file. (Press Cancel to suppress
any further messages)."
CMake manages to produce a Project.sln file despite these errors, but the project will not build because the compiler cannot find any of the header files. In addition, the include paths for all of the projects are empty. Therefore, I suspect that the sln and project files were not fully configured when CMake produced the errors above and configuration process was ended prematurely.
Suspecting that this issue may be related to either the ITK version or CMake version, I tried configuring with CMake 2.0 and ITK 1.8.0 but encountered the same errors.
A few more pieces of data:
1 After unzipping the distribution (InsightToolkit-2.0.1.zip), I did not modify the unzipped files before running CMakeSetup.exe.
2. I created the bin directory under C:\InsightToolkit-2.0.1\itkbin.
3. I was able to successfully build VTK 4.4 with CMake 2.2 using the same compiler installation without any issues.
Any guidance or suggestions for working around these errors would be most appreciated.
Regards,
-Jon Lazarus
_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050817/45f7a5e9/attachment-0001.html
More information about the Insight-users
mailing list