[Insight-developers] add include directory for header test?

Kris Zygmunt krismz at sci.utah.edu
Tue Oct 25 18:20:39 EDT 2011


I am trying to get the new GPU framework to build well on different  
platforms and I am failing to get the ITKGPUCommonHeaderTest1.cxx to  
compile on Linux (for some reason that I don't understand it compiles  
just fine on Snow Leopard, probably something to do with Frameworks).   
The error is

Modules/GPU/Common/include/itkcOclUtil.h:40:23: fatal error CL/ 
opencl.h: No such file or directory

In the GPU/Common/test/CMakeLists.txt file, there is
INCLUDE_DIRECTORIES(${OPENCL_INCLUDE_DIRS} $ 
{CMAKE_CURRENT_BINARY_DIR}/../)
which is how the main test programs successfully compile.

Is there a way to have the automatically generated header test also  
include the OPENCL_INCLUDE_DIRS?  It seems rather tedious and  
undesirable to have to put every single GPU header file into the  
exclusion list in BuildHeaderTest.py (I also wonder if this is the  
reason all of the FFT headers are in BuildHeaderTest.py, is it just  
because they aren't including the external fft include directories?).

If you are interested in trying out the code, I am currently working  
off of the GPU-Beta-R1 branch on https://github.com/krismz/ITK until  
things behave well enough to push to gerrit.

Thanks!
Kris




More information about the Insight-developers mailing list