[IGSTK-Users] compiling IGSTK-5.0 bugfix.

Tim Hanson sideskate at gmail.com
Fri Feb 8 00:20:57 EST 2013


Hey All,

I'm having a problem compiling IGSTK 5.0 against ITKLatestRelease and
VTK5.10.1:

[  2%] Building CXX object
Source/CMakeFiles/IGSTK.dir/igstkMR3DImageToUS3DImageRegistration.cxx.o
/home/tlh24/igstk/IGSTK-5.0/Source/igstkMR3DImageToUS3DImageRegistration.cxx:
In member function ‘void
igstk::MR3DImageToUS3DImageRegistration::CalculateRegistrationProcessing()’:
/home/tlh24/igstk/IGSTK-5.0/Source/igstkMR3DImageToUS3DImageRegistration.cxx:413:19:
error: ‘itk::SmartPointer<itk::ImageRegistrationMethod<itk::Image<unsigned
char, 3u>, itk::Image<short unsigned int, 3u> > >::ObjectType’ has no
member named ‘StartRegistration’
make[2]: *** [Source/CMakeFiles/IGSTK.dir/igstkMR3DImageToUS3DImageRegistration.cxx.o]
Error 1
make[1]: *** [Source/CMakeFiles/IGSTK.dir/all] Error 2
make: *** [all] Error 2

Now,
grep -r StartRegistration * | grep ImageRegistrationMethod

Suggests:
Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.h:
 void StartRegistration(void) { this->Update(); }

hence I changed on line 413 of igstkMR3DImageToUS3DImageRegistration.cxx
to 'Update' instead of 'StartRegistration'.

FYI ... seems to fix it.

Now we have the error:

/home/tlh24/igstk/IGSTK-5.0/Source/igstkPolarisClassicTracker.cxx:189:5:
error: ‘os’ was not declared in this scope

Am I doing something wrong?  Should it build out of the box?

Tim



More information about the IGSTK-Users mailing list