[Insight-users] Reading and displaying DICOM series

Satish Kumar B.G satish at compusol.in
Thu Feb 10 05:20:01 EST 2011


Make sure you have added the path for the ITK bin folder in your
CMake configuration for the app, and then click Configure and then Generate
(ensure no errors), then open the 
Sln in VS and Build.
Regards
- satish

-----Original Message-----
From: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org]
On Behalf Of akbarjan bayiz
Sent: Thursday, February 10, 2011 3:22 PM
To: insight-users at itk.org
Subject: [Insight-users] Reading and displaying DICOM series

Hello, itk users!

I am a totally fresh, and now trying to open DICOM series with itk. I found
an example in the software guide, in section 7.12.3, but I am trying to run
it using cmake, it gives me this error:
*************************************
 CMake Error at CMakeLists.txt:9 (TARGET_LINK_LIBRARIES):
   Cannot specify link libraries for target "ITKIO" which is not built by
this project.
*************************************

My "CMakeLists.txt" is as follows:

*************************************
cmake_minimum_required(VERSION 2.6)
 
PROJECT(DicomSeriesReadImageWrite)
 
FIND_PACKAGE(ITK REQUIRED)
INCLUDE(${ITK_USE_FILE})
 
ADD_EXECUTABLE(DicomSeriesReadImageWrite DicomSeriesReadImageWrite2.cxx)
TARGET_LINK_LIBRARIES(ITKIO ITKNumerics)

*************************************

I am using cmake 2.8, and cannot find a solution from the internet. Hope to
receive a help from you. I can imagine this should be a very simple and
basic error. 

Besides, after solving this problem, how can I display a series of DICOM
images in a folder with itk? 
Thank you very much in advance. 


      
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list