Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIXEL_DIMENSION not defined #72

Open
daviddoria opened this issue Aug 22, 2011 · 1 comment
Open

PIXEL_DIMENSION not defined #72

daviddoria opened this issue Aug 22, 2011 · 1 comment

Comments

@daviddoria
Copy link
Contributor

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

@raboof
Copy link

raboof commented Sep 15, 2016

The interesting thing is PIXEL_DIMENSION is defined (otherwise LfnIcImage.h would use a fallback), but it's defined to an empty string...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants