cmake-basis / legacy

Legacy CMake BASIS project for versions 3.2 and older. For newer versions, go to
https://github.com/cmake-basis/BASIS
Other
13 stars 11 forks source link

itksys_ios undefined error when building ITK test helper #549

Closed kayhan-batmanghelich closed 8 years ago

kayhan-batmanghelich commented 8 years ago

Hi Andreas,

I keep getting this error. I turned the ITK OFF and it worked. Please fix it:

 97%] Built target doxyfilter-perl
Scanning dependencies of target testdriver
[ 98%] Building CXX object src/tools/CMakeFiles/testdriver.dir/testdriver.cxx.o
In file included from /PHShome/nb663/softwares/cmake-basis/include/basis/testdriver.hxx:33,
                 from /PHShome/nb663/softwares/cmake-basis/include/basis/testdriver.h:403,
                 from /PHShome/nb663/softwares/cmake-basis/src/tools/testdriver.cxx:17:
/PHShome/nb663/softwares/cmake-basis/include/basis/testdriver-itk.hxx: In function ‘int RegressionTestImage(const char*, const char*, int, double, unsigned int, unsigned int, bool)’:
/PHShome/nb663/softwares/cmake-basis/include/basis/testdriver-itk.hxx:333: error: ‘itksys_ios’ has not been declared
/PHShome/nb663/softwares/cmake-basis/include/basis/testdriver-itk.hxx:333: error: expected ‘;’ before ‘diffName’
/PHShome/nb663/softwares/cmake-basis/include/basis/testdriver-itk.hxx:334: error: ‘diffName’ was not declared in this scope
/PHShome/nb663/softwares/cmake-basis/include/basis/testdriver-itk.hxx:365: error: ‘itksys_ios’ has not been declared
/PHShome/nb663/softwares/cmake-basis/include/basis/testdriver-itk.hxx:365: error: expected ‘;’ before ‘baseName’
/PHShome/nb663/softwares/cmake-basis/include/basis/testdriver-itk.hxx:366: error: ‘baseName’ was not declared in this scope
/PHShome/nb663/softwares/cmake-basis/include/basis/testdriver-itk.hxx:400: error: ‘itksys_ios’ has not been declared
/PHShome/nb663/softwares/cmake-basis/include/basis/testdriver-itk.hxx:400: error: expected ‘;’ before ‘testName’
/PHShome/nb663/softwares/cmake-basis/include/basis/testdriver-itk.hxx:401: error: ‘testName’ was not declared in this scope
make[2]: *** [src/tools/CMakeFiles/testdriver.dir/testdriver.cxx.o] Error 1
make[1]: *** [src/tools/CMakeFiles/testdriver.dir/all] Error 2
make: *** [all] Error 2
[nb663@eris1n2 build]$ ccmake .
schuhschuh commented 8 years ago

Hi @kayhan-batmanghelich, I'll have a look. When reporting such issue it would also be good to note which version of ITK you were using that caused these compilation errors. I'll just use the latest to reproduce it.

schuhschuh commented 8 years ago

Fixed in the develop branch.