taznux / radiomics-tools

Image processing tools for radiomics analysis
https://qradiomics.wordpress.com/portfolio/radiomics-tools/
MIT License
24 stars 14 forks source link

Make error : ITKLabelGeometryImageFilter.h not found #10

Closed abhijithchunduru closed 7 years ago

abhijithchunduru commented 7 years ago

Hi, When I tried to super-build the project, I get an error "ITKLabelGeometryImageFilter.h not found". I checked online and found that ITKLabelGeometryImageFilter is in review and the flag -DITK_USE_REVIEW=ON should be set during cmake of ITK. Despite doing this, I am not able to build the code. Please help

taznux commented 7 years ago

Sorry for the late reply! Which system did you use? I only tested on ubuntu linux, OSX and windows 7.

abhijithchunduru commented 7 years ago

Hi taznux, I had used Ubuntu 14.04 to build the code

taznux commented 7 years ago

I tested on the same version of Ubuntu and the flag was already set in the code. However, I did not specify ITK_DIR at building my codes at the superbuild script. If you have another ITK build, it makes problem. Please try the attached script. super-build.sh.txt

I specified ITK_DIR as ITK path in the superbuild as like below.

cmake ${PROJECT_DIR} && make
to cmake ${PROJECT_DIR} -DITK_DIR=${ITK_BUILD_DIR} && make

Thanks, Wookjin

taznux commented 7 years ago

I tested Commit 1bab0d1 on Ubuntu 14.04. The environment would be similar to your case. https://travis-ci.org/taznux/radiomics-tools/jobs/187099778

abhijithchunduru commented 7 years ago

I got it working by setting -DModule_itkreview=on and -ditk_use_review=off in the super-build.sh

taznux commented 7 years ago

I found this link. https://itk.org/migrationv4/index.php?action=artikel&cat=3&id=148&artlang=en So, setting -DModule_ITKReview=on without -ditk_use_review is enough.