John,<br><br>Are you building your own app, or is the ITK build itself failing?<br><br>Looking at the cmake failure, it should only be defining vtkmetaio if VTK_SOURCE_DIR is defined. But building of ITK does not set VTK_SOURCE_DIR.<br>
<br>Bill<br><br><div class="gmail_quote">On Thu, Oct 27, 2011 at 3:54 PM, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I am testing itk-3.20.1 with system gdcm-2.0.18 for both itk and vtk.<br>
I got vtk to build and GDCM to build but when I go to configure itk I<br>
am getting the following error (which I thought was fixed in git):<br>
<br>
x:\64bitGDCMTest\Libraries\ITK-3.20.1>cmake<br>
x:/CMakeBased/Libraries/InsightToolkit-3.20.1<br>
CMake Error at Utilities/MetaIO/CMakeLists.txt:35 (ADD_LIBRARY):<br>
add_library cannot create target "vtkmetaio" because an imported target<br>
with the same name already exists.<br>
<br>
<br>
CMake Error at Utilities/MetaIO/CMakeLists.txt:81 (TARGET_LINK_LIBRARIES):<br>
Cannot specify link libraries for target "vtkmetaio" which is not built by<br>
this project.<br>
<br>
<br>
-- Configuring incomplete, errors occurred!<br>
<br>
This is under VS2010 x64 under windows 7 and cmake-2.8.6.<br>
<br>
John<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>