Я успешно скомпилировал GDCM 2.4.4 и VTK 5.10.1 на сервере Ubuntu 14.04. Но теперь мне нужно использовать изображения JPEG2000, и моя программа, использующая GDCM и VTK, очень медленная. Итак, я решил перекомпилировать GDCM с библиотекой OPENJPEG 1.5 (alredy compiled), но по какой-то причине она не закончена.Компиляция GDCM с VTK и OPENJPEG
А потом спросить у меня три папки:
OPENJPEG_INCLUDE_DIR = /opt/ipv/3d/utils/openjpeg-1.5.2-Linux-i386/include/openjpeg-1.5
OPENJPEG_LIBRARY = /opt/ipv/3d/utils/openjpeg-1.5.2-Linux-i386/lib/libopenjpeg.so
OpenJPEG_DIR = /opt/ipv/3d/utils/openjpeg-1.5.2-Linux-i386/lib/openjpeg-1.5
Я даю ему правильные папки, а затем у меня есть эта ошибка после выполнения «сделать» для GDCM:
.....
[ 56%] building gdcm.jar
[ 56%] Built target GDCMJavaJar
Linking CXX shared library ../../bin/libgdcmDSED.so
[ 56%] Built target gdcmDSED
Scanning dependencies of target gdcmIOD
[ 57%] [ 57%] [ 57%] [ 57%] [ 57%] Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmMacro.cxx.o
Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmMacros.cxx.o
Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmModule.cxx.o
Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmModules.cxx.o
[ 58%] Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmNestedModuleEntries.cxx.o
[ 58%] Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmIODEntry.cxx.o
Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmTableReader.cxx.o
[ 58%] Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmTable.cxx.o
[ 58%] [ 58%] [ 58%] Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmSeries.cxx.o
Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmDefs.cxx.o
Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmDefinedTerms.cxx.o
[ 59%] [ 59%] Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmEnumeratedValues.cxx.o
Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmStudy.cxx.o
[ 59%] [ 59%] Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmPatient.cxx.o
Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmType.cxx.o
[ 59%] Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmUsage.cxx.o
[ 60%] Building CXX object Source/InformationObjectDefinition/CMakeFiles/gdcmIOD.dir/gdcmIOD.cxx.o
Linking CXX shared library ../../bin/libgdcmIOD.so
[ 60%] Built target gdcmIOD
Scanning dependencies of target gdcmDICT
[ 60%] [ 61%] [ 61%] Building CXX object Source/DataDictionary/CMakeFiles/gdcmDICT.dir/gdcmDictEntry.cxx.o
[ 61%] [ 61%] Building CXX object Source/DataDictionary/CMakeFiles/gdcmDICT.dir/gdcmDicts.cxx.o
[ 61%] [ 62%] [ 62%] Building CXX object Source/DataDictionary/CMakeFiles/gdcmDICT.dir/gdcmDefaultDicts.cxx.o
Building CXX object Source/DataDictionary/CMakeFiles/gdcmDICT.dir/gdcmPrivateDefaultDicts.cxx.o
Building CXX object Source/DataDictionary/CMakeFiles/gdcmDICT.dir/gdcmGlobal.cxx.o
Building CXX object Source/DataDictionary/CMakeFiles/gdcmDICT.dir/gdcmGroupDict.cxx.o
Building CXX object Source/DataDictionary/CMakeFiles/gdcmDICT.dir/gdcmDefaultGroupNames.cxx.o
Building CXX object Source/DataDictionary/CMakeFiles/gdcmDICT.dir/gdcmUIDs.cxx.o
[ 62%] Building CXX object Source/DataDictionary/CMakeFiles/gdcmDICT.dir/gdcmSOPClassUIDToIOD.cxx.o
[ 62%] Building CXX object Source/DataDictionary/CMakeFiles/gdcmDICT.dir/gdcmCSAHeaderDefaultDicts.cxx.o
Linking CXX shared library ../../bin/libgdcmDICT.so
[ 62%] Built target gdcmDICT
Scanning dependencies of target gdcmMSFF
[ 63%] [ 63%] [ 63%] [ 63%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmFileStreamer.cxx.o
[ 63%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmJSON.cxx.o
[ 64%] [ 64%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmAnonymizer.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmFileChangeTransferSyntax.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmFileAnonymizer.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmIconImageFilter.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmIconImageGenerator.cxx.o
[ 64%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmDICOMDIRGenerator.cxx.o
[ 64%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSpacing.cxx.o
[ 64%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmFileExplicitFilter.cxx.o
[ 64%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmFileDerivation.cxx.o
[ 65%] [ 65%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageFragmentSplitter.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmTagPath.cxx.o
[ 65%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSimpleSubjectWatcher.cxx.o
[ 65%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmAnonymizeEvent.cxx.o
[ 65%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmPixmap.cxx.o
[ 66%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmBitmap.cxx.o
[ 66%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmRescaler.cxx.o
[ 66%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageToImageFilter.cxx.o
[ 66%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmBitmapToBitmapFilter.cxx.o
[ 66%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmPixmapToPixmapFilter.cxx.o
[ 67%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageChangeTransferSyntax.cxx.o
[ 67%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageApplyLookupTable.cxx.o
[ 67%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmOrientation.cxx.o
[ 67%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmDataSetHelper.cxx.o
[ 67%] [ 67%] [ 68%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageChangePlanarConfiguration.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageChangePhotometricInterpretation.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmDirectionCosines.cxx.o
[ 68%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSorter.cxx.o
[ 68%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSerieHelper.cxx.o
[ 68%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmIPPSorter.cxx.o
[ 68%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmApplicationEntity.cxx.o
[ 69%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmDICOMDIR.cxx.o
[ 69%] [ 69%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSpectroscopy.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmEncapsulatedDocument.cxx.o
[ 69%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSplitMosaicFilter.cxx.o
[ 69%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmFiducials.cxx.o
[ 70%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmWaveform.cxx.o
[ 70%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmPersonName.cxx.o
[ 70%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmIconImage.cxx.o
[ 70%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmUIDGenerator.cxx.o
[ 70%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmUUIDGenerator.cxx.o
[ 71%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmPrinter.cxx.o
[ 71%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmDictPrinter.cxx.o
[ 71%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmXMLPrinter.cxx.o
[ 71%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmScanner.cxx.o
[ 71%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmPixmapReader.cxx.o
[ 72%] [ 72%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageReader.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmPixmapWriter.cxx.o
[ 72%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageWriter.cxx.o
[ 72%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmStringFilter.cxx.o
[ 72%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageHelper.cxx.o
[ 72%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmValidate.cxx.o
[ 73%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmDumper.cxx.o
[ 73%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImage.cxx.o
[ 73%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageConverter.cxx.o
[ 73%] [ 73%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageCodec.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmJPEG12Codec.cxx.o
[ 74%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmRLECodec.cxx.o
[ 74%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmPDFCodec.cxx.o
[ 74%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmAudioCodec.cxx.o
[ 74%] [ 74%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmJPEG16Codec.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmJPEGLSCodec.cxx.o
[ 75%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmJPEG8Codec.cxx.o
[ 75%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmJPEGCodec.cxx.o
[ 75%] [ 75%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmPVRGCodec.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmKAKADUCodec.cxx.o
[ 75%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmPNMCodec.cxx.o
[ 76%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmPGXCodec.cxx.o
[ 76%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmRAWCodec.cxx.o
[ 76%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmLookupTable.cxx.o
[ 76%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmOverlay.cxx.o
[ 76%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmCurve.cxx.o
[ 77%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmPhotometricInterpretation.cxx.o
[ 77%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmPixelFormat.cxx.o
[ 77%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSegmentedPaletteColorLookupTable.cxx.o
[ 77%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmStreamImageReader.cxx.o
[ 77%] [ 78%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageRegionReader.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmDirectoryHelper.cxx.o
[ 78%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSegment.cxx.o
[ 78%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSurface.cxx.o
[ 78%] [ 78%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmMeshPrimitive.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSegmentWriter.cxx.o
[ 78%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSurfaceWriter.cxx.o
[ 79%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSegmentReader.cxx.o
[ 79%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSurfaceReader.cxx.o
[ 79%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSurfaceHelper.cxx.o
[ 79%] [ 79%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmSegmentHelper.cxx.o
Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmJPEG2000Codec.cxx.o
[ 80%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/__/__/Utilities/gdcmrle/rle.cxx.o
[ 80%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/__/__/Utilities/gdcmrle/info.cxx.o
[ 80%] Building CXX object Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/__/__/Utilities/gdcmrle/io.cxx.o
Linking CXX shared library ../../bin/libgdcmMSFF.so
/opt/ipv/3d/utils/openjpeg-1.5.2-Linux-i386/lib/libopenjpeg.so.1.5.2: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [bin/libgdcmMSFF.so.2.4.4] Error 1
make[1]: *** [Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/all] Error 2
make: *** [all] Error 2
cp: cannot stat ‘/opt/ipv/3d/utils/gdcm-build/bin/vtkgdcm.jar’: No such file or directory
[email protected]:/opt/ipv/3d/utils$
Что может Я делаю? Должен ли я использовать другую библиотеку для быстрого открытия JPEG2000?
Я изменил папки – user4970092