Я пытаюсь скомпилировать приложение на основе MITK на Ubuntu 18.04.
У меня странная проблема с линкером, касающаяся mitk / itk:
[ 16%] Built target MitkCore
[ 16%] Built target MitkTestingHelper
[ 16%] Built target MitkCommandLine
[ 17%] Built target MitkAppUtil
[ 17%] Linking CXX shared library ../../lib/libMitkLegacyIO.so
CMakeFiles/MitkLegacyIO.dir/mitkDataNodeFactory.cpp.o:(.data.rel+0x0): undefined reference to `itk::NiftiImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkDataNodeFactory.cpp.o:(.data.rel+0x8): undefined reference to `itk::NrrdImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkDataNodeFactory.cpp.o:(.data.rel+0x10): undefined reference to `itk::GiplImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkDataNodeFactory.cpp.o:(.data.rel+0x20): undefined reference to `itk::JPEGImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkDataNodeFactory.cpp.o:(.data.rel+0x30): undefined reference to `itk::BMPImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkDataNodeFactory.cpp.o:(.data.rel+0x40): undefined reference to `itk::PNGImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkDataNodeFactory.cpp.o:(.data.rel+0x48): undefined reference to `itk::TIFFImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkDataNodeFactory.cpp.o:(.data.rel+0x50): undefined reference to `itk::VTKImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkDataNodeFactory.cpp.o:(.data.rel+0x68): undefined reference to `itk::MetaImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkFileSeriesReader.cpp.o:(.data.rel+0x0): undefined reference to `itk::NiftiImageIOFactoryRegister__Private()'
(.data.rel+0x40): undefined reference to `itk::PNGImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkFileSeriesReader.cpp.o:(.data.rel+0x48): undefined reference to `itk::TIFFImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkFileSeriesReader.cpp.o:(.data.rel+0x50): undefined reference to `itk::VTKImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkFileSeriesReader.cpp.o:(.data.rel+0x68): undefined reference to `itk::MetaImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkImageFileReader.cpp.o:(.data.rel+0x0): undefined reference to `itk::NiftiImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkImageFileReader.cpp.o:(.data.rel+0x8): undefined reference to `itk::NrrdImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkImageFileReader.cpp.o:(.data.rel+0x10): undefined reference to `itk::GiplImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkImageFileReader.cpp.o:(.data.rel+0x20): undefined reference to `itk::JPEGImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkImageFileReader.cpp.o:(.data.rel+0x30): undefined reference to `itk::BMPImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkImageFileReader.cpp.o:(.data.rel+0x40): undefined reference to `itk::PNGImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkImageFileReader.cpp.o:(.data.rel+0x48): undefined reference to `itk::TIFFImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkImageFileReader.cpp.o:(.data.rel+0x50): undefined reference to `itk::VTKImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkImageFileReader.cpp.o:(.data.rel+0x68): undefined reference to `itk::MetaImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkPictureWrite.cpp.o:(.data.rel+0x0): undefined reference to `itk::NiftiImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkPictureWrite.cpp.o:(.data.rel+0x8): undefined reference to `itk::NrrdImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkPictureWrite.cpp.o:(.data.rel+0x10): undefined reference to `itk::GiplImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkPictureWrite.cpp.o:(.data.rel+0x20): undefined reference to `itk::JPEGImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkPictureWrite.cpp.o:(.data.rel+0x30): undefined reference to `itk::BMPImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkPictureWrite.cpp.o:(.data.rel+0x40): undefined reference to `itk::PNGImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkPictureWrite.cpp.o:(.data.rel+0x48): undefined reference to `itk::TIFFImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkPictureWrite.cpp.o:(.data.rel+0x50): undefined reference to `itk::VTKImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkItkPictureWrite.cpp.o:(.data.rel+0x68): undefined reference to `itk::MetaImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkRawImageFileReader.cpp.o:(.data.rel+0x0): undefined reference to `itk::NiftiImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkRawImageFileReader.cpp.o:(.data.rel+0x8): undefined reference to `itk::NrrdImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkRawImageFileReader.cpp.o:(.data.rel+0x10): undefined reference to `itk::GiplImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkRawImageFileReader.cpp.o:(.data.rel+0x20): undefined reference to `itk::JPEGImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkRawImageFileReader.cpp.o:(.data.rel+0x30): undefined reference to `itk::BMPImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkRawImageFileReader.cpp.o:(.data.rel+0x40): undefined reference to `itk::PNGImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkRawImageFileReader.cpp.o:(.data.rel+0x48): undefined reference to `itk::TIFFImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkRawImageFileReader.cpp.o:(.data.rel+0x50): undefined reference to `itk::VTKImageIOFactoryRegister__Private()'
CMakeFiles/MitkLegacyIO.dir/mitkRawImageFileReader.cpp.o:(.data.rel+0x68): undefined reference to `itk::MetaImageIOFactoryRegister__Private()'
collect2: error: ld returned 1 exit status
Modules/LegacyIO/CMakeFiles/MitkLegacyIO.dir/build.make:809: recipe for target 'lib/libMitkLegacyIO.so' failed
make[5]: *** [lib/libMitkLegacyIO.so] Error 1
CMakeFiles/Makefile2:1515: recipe for target 'Modules/LegacyIO/CMakeFiles/MitkLegacyIO.dir/all' failed
make[4]: *** [Modules/LegacyIO/CMakeFiles/MitkLegacyIO.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/MITK-build.dir/build.make:57: recipe for target 'CMakeFiles/MITK-build' failed
make[2]: *** [CMakeFiles/MITK-build] Error 2
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/MITK-build.dir/all' failed
make[1]: *** [CMakeFiles/MITK-build.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Это остановится здесь. У меня нет установленных пакетов itk из Ubuntu.
Буду признателен за любую помощь. Что я должен сделать, чтобы исправить эти проблемы?