Hello Paul, 

in Debian we are currently at ITK 4.6 and VTK 6.1 and AFAICS this is
what will go into Jessie. Hence, if you could get a version released
that can be compiled with these two libraries, we could update it, 
Note however, that the freeze for Jessie is only a few weeks away.


> Here is a table of version compatibility between versions of ITK-SNAP, ITK,
> VTK and Qt.
> http://www.itksnap.org/pmwiki/pmwiki.php?n=Documentation.BuildingITK-SNAP.

With the latest dev32 branch I get 

 get_property could not find TARGET Qt5::QXcbIntegrationPlugin.  
  Perhaps it has not yet been created.


CMake Error at CMakeLists.txt:1134 (get_property):
  get_property could not find TARGET Qt5::QGifPlugin.  Perhaps it has
  not yet been created.

and I just don't know whether this is a problem with itksnap not
properly searching or because the QT5 packages (>5.3) don't include
these plugins for some reason. I  have   
  /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqgif.so
and 
  /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so

-- 

Well, after some fiddling I got the attached patch that makes it build. 

This patch does the following: 

* revert dd5b67 (this is where above plug-ins are searched for) 
* Add a Find_package for gdcm and gdcmCommon to the link_libraries. 
* Use all vtk libraries 

With this the software as of commit 32eaf0+patch builds with the warning
about libjpeg.so.62 and libjpeg.so.8 being pulled in at the same time
(The first is  the fault of libtiff  and should go away when a new
libtiff gets build against libjpeg.so.8 )

The resulting executable segfaults though: 

./ITK-SNAP(_Z24SegmentationFaultHandleri+0x7b)[0x74b25b]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0)[0x7f60494958d0]
/lib/x86_64-linux-gnu/libc.so.6(strlen+0x2a)[0x7f60272d4a3a]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN16QCoreApplication9argumentsEv+0xb1)[0x7f6027df4b41]
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so(+0x3260f)[0x7f600caa160f]
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so(+0x32923)[0x7f600caa1923]
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so(+0x40f3c)[0x7f600caaff3c]
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so(+0x32061)[0x7f600caa1061]
/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(_ZN14QWindowPrivate6createEb
+0x66)[0x7f602833a4b6]
/usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5(_ZN10QGLContext13chooseContextEPKS_+0x133)[0x7f6029481423]
/usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5(_ZN10QGLContext6createEPKS_
+0x26)[0x7f6029459c36]
/usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5(_ZN9QGLWidget10setContextEP10QGLContextPKS0_b+0xaf)[0x7f6029480e8f]
/usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5(_ZN16QGLWidgetPrivate11initContextEP10QGLContextPK9QGLWidget+0x7f)[0x7f602945e1cf]
/usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5(_ZN9QGLWidgetC2EP7QWidgetPKS_6QFlagsIN2Qt10WindowTypeEE+0x10a)[0x7f602945df2a]
./ITK-SNAP(_ZN19QtAbstractOpenGLBoxC1EP7QWidget+0xd)[0x7fa46d]
./ITK-SNAP(_ZN16GenericSliceViewC2EP7QWidget+0x12)[0x7f4212]
./ITK-SNAP(_ZN17Ui_SliceViewPanel7setupUiEP7QWidget+0x2154)[0x7ed1f4]
./ITK-SNAP(_ZN14SliceViewPanelC1EP7QWidget+0x55)[0x7e6ad5]
./ITK-SNAP(_ZN18Ui_MainImageWindow7setupUiEP11QMainWindow
+0x250b)[0x781c6b]
./ITK-SNAP(_ZN15MainImageWindowC2EP7QWidget+0x64)[0x772f24]
./ITK-SNAP(main+0x1c0)[0x744f00]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f6027274b45]
./ITK-SNAP[0x74b0f7]



Best 
Gert 

diff --git a/CMake/standalone.cmake b/CMake/standalone.cmake
index de4162d..4b9c898 100644
--- a/CMake/standalone.cmake
+++ b/CMake/standalone.cmake
@@ -10,6 +10,9 @@ INCLUDE(${ITK_USE_FILE})
 FIND_PACKAGE(VTK REQUIRED)
 INCLUDE (${VTK_USE_FILE})
 
+FIND_PACKAGE(GDCM REQUIRED)
+INCLUDE (${GDCM_USE_FILE})
+
 #############################################
 # REQUIRE QT                                #
 #############################################
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 77e5ff1..d9d6cc7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -824,23 +824,8 @@ ENDIF( CMAKE_GENERATOR MATCHES "^NMake" OR CMAKE_GENERATOR MATCHES "^Visual Stud
 SET(SNAP_ITK_LIBS ${ITK_LIBRARIES})
 
 # Core VTK libraries
-SET(SNAP_VTK_LIBS
-  vtkChartsCore
-  vtkCommonCore
-  vtkRenderingCore
-  vtkRenderingFreeType
-  vtkRenderingFreeTypeOpenGL
-  vtkRenderingOpenGL
-  vtkRenderingVolume
-  vtkRenderingVolumeOpenGL
-  vtkFiltersCore
-  vtkImagingCore
-  vtkViewsCore
-  vtkViewsContext2D
-  vtkIOCore
-  vtkIOExport
-  vtkIOGeometry
-  vtkIOLegacy
+SET(SNAP_VTK_LIBS ${VTK_LIBRARIES}
+
 )
 
 # System libraries
@@ -855,6 +840,7 @@ SET(SNAP_EXTERNAL_LIBS
   ${SNAP_ITK_LIBS} 
   ${SNAP_VTK_LIBS} 
   ${SNAP_SYSTEM_LIBS}
+  gdcmCommon
 )
 
 #--------------------------------------------------------------------------------
@@ -1126,15 +1112,8 @@ ELSE()
   SET(CPACK_PACKAGE_EXECUTABLES "itksnap" "ITK-SNAP")
   INSTALL(TARGETS ${SNAP_BUNDLE_NAME} RUNTIME DESTINATION ${SNAP_MAIN_INSTALL_DIR})
 
-  # Include the qt4 dependent libraries
   include(DeployQt5)
-
-  # Get the necessary plugins
-  get_property(QT_XCB_PLUGIN TARGET Qt5::QXcbIntegrationPlugin PROPERTY LOCATION_RELEASE)
-  get_property(QT_GIF_PLUGIN TARGET Qt5::QGifPlugin PROPERTY LOCATION_RELEASE)
-
-  # Install the plugin
-  install_qt5_executable(${SNAP_MAIN_INSTALL_DIR}/${SNAP_EXE} "${QT_XCB_PLUGIN};${QT_GIF_PLUGIN}")
+  install_qt5_executable(${SNAP_MAIN_INSTALL_DIR}/${SNAP_EXE} "qgif;qpng")
 
 ENDIF()
 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to