[Insight-users] ITK 4.2 - GPUMeanImageFilter - itkGPUKernelManager
Kristen Zygmunt
krismz at sci.utah.edu
Tue Jun 5 19:43:10 EDT 2012
It looks like the GPUCommon library is not being included.
You should have something like this line in your CMakeLists.txt:
target_link_libraries(YourExecutable ${ITK_LIBRARIES})
Can you provide your CMakeLists.txt ?
-Kris
> Date: Tue, 5 Jun 2012 18:55:55 +0200
> From: Yass Jd <yasso50 at hotmail.com>
> Subject: [Insight-users] ITK 4.2 - GPUMeanImageFilter -
> itkGPUKernelManager
> To: insight-users at itk.org
> Message-ID: <BLU0-SMTP296F767A77A5AD6D75BD509BD0C0 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> Dear all,
>
> I am trying to run the following sample code with ITK 4.2 in order to
> perform a GPU-based mean filter:
>
> typedef itk::GPUMeanImageFilter<ImageType,ImageType> filterType;
> filterType::Pointer blurFilter = filterType::New();
> blurFilter->SetInput(handler.getOutput());
> blurFilter->SetRadius(2);
> blurFilter->Update();
>
>
> And i get the following errors from the linker (compilation is fine):
>
> CMakeFiles/ReadDCMWriteNii.dir/main.cxx.o: In function
> `itk::GPUKernelManager::New()':
> /usr/local/include/ITK-4.2/itkGPUKernelManager.h:60: undefined
> reference to `itk::GPUKernelManager::GPUKernelManager()'
> CMakeFiles/ReadDCMWriteNii.dir/main.cxx.o: In function
> `itk::GPUMeanImageFilter<itk::Image<short, 4u>, itk::Image<short,
> 4u> >::GPUGenerateData()':
> /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:92: undefined
> reference to `itk::OpenCLGetLocalBlockSize(unsigned int)'
> /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:105: undefined
> reference to `itk::GPUKernelManager::SetKernelArgWithImage(int,
> unsigned int, itk::SmartPointer<itk::GPUDataManager>)'
> /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:106: undefined
> reference to `itk::GPUKernelManager::SetKernelArgWithImage(int,
> unsigned int, itk::SmartPointer<itk::GPUDataManager>)'
> /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:110: undefined
> reference to `itk::GPUKernelManager::SetKernelArg(int, unsigned int,
> unsigned long, void const*)'
> /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:115: undefined
> reference to `itk::GPUKernelManager::SetKernelArg(int, unsigned int,
> unsigned long, void const*)'
> /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:119: undefined
> reference to `itk::GPUKernelManager::LaunchKernel(int, int, unsigned
> long*, unsigned long*)
>
> I don't see the error ? Seems like a bad declaration in the header
> itkGPUKernelManager.h but I didn't find it... Everythinh is well
> included in my code though. Anybody got an idea ?
>
> Thank you !
>
> Best regards,
> Yass Jd.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.itk.org/pipermail/insight-users/attachments/20120605/7257158d/attachment-0001.htm>
>
> ------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120605/49aee07e/attachment.htm>
More information about the Insight-users
mailing list