[Insight-users] Reading and displaying DICOM series

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Feb 10 11:09:37 EST 2011


I believe the error is here:

ADD_EXECUTABLE(DicomSeriesReadImageWrite DicomSeriesReadImageWrite2.cxx)
TARGET_LINK_LIBRARIES(ITKIO ITKNumerics)

it should read:

ADD_EXECUTABLE(DicomSeriesReadImageWrite DicomSeriesReadImageWrite2.cxx)
TARGET_LINK_LIBRARIES(DicomSeriesReadImageWrite ITKIO ITKNumerics)

HTH

On Thu, Feb 10, 2011 at 5:07 PM, akbarjan bayiz <abayiz at yahoo.com> wrote:
> Hello Satish,
>
> Thank you for your reply!
>
> I have added the path for ITK bin correctly in my CMake configuration, and I can run some itk programs without any problem. But this one continues giving the error message when compiling with CMake as "Cannot specify link libraries for target "ITKIO" which is not built by this project".
>
> Can I have any more suggestions?
>
> Thank you in advance!
>
> --- On Thu, 2/10/11, Satish Kumar B.G <satish at compusol.in> wrote:
>
>> From: Satish Kumar B.G <satish at compusol.in>
>> Subject: RE: [Insight-users] Reading and displaying DICOM series
>> To: "'akbarjan bayiz'" <abayiz at yahoo.com>, insight-users at itk.org
>> Date: Thursday, February 10, 2011, 4:20 AM
>> 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
>>
>>
>
>
>
> _____________________________________
> 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
>



-- 
Mathieu


More information about the Insight-users mailing list