Open daviddoria opened 13 years ago
With a fresh clone, I get this error:
image-completer-lib/api/LfnIcImage.h:97:51: error: expected primary-expression before ‘;’ token
That line is:
static const int NUM_CHANNELS = PIXEL_DIMENSION;
The problem is that PIXEL_DIMENSION is not set if USE_ITK=OFF
I suggest moving this line:
set(PIXEL_DIMENSION 3 CACHE STRING "Dimensionality of pixels?") #cmake doesn't have an "INT" variable type, so treat it as a string
outside of the if(USE_ITK) conditional, with a comment like:
The interesting thing is PIXEL_DIMENSION is defined (otherwise LfnIcImage.h would use a fallback), but it's defined to an empty string...
With a fresh clone, I get this error:
image-completer-lib/api/LfnIcImage.h:97:51: error: expected primary-expression before ‘;’ token
That line is:
static const int NUM_CHANNELS = PIXEL_DIMENSION;
The problem is that PIXEL_DIMENSION is not set if USE_ITK=OFF
I suggest moving this line:
set(PIXEL_DIMENSION 3 CACHE STRING "Dimensionality of pixels?") #cmake doesn't have an "INT" variable type, so treat it as a string
outside of the if(USE_ITK) conditional, with a comment like:
ITK can support ND pixels, but even with Wx, this needs to be set to 3