Hi Gert, I am going to try looking into this problem this week. I have been building on Centos, and there the Qt plugins are being picked up just fine. I suspect the crash is due to the missing plugin, but I am not sure.
Could you tell me why including all VTK libs and GDCM libs was required? Thanks! Paul On Thu, Oct 16, 2014 at 7:33 AM, Gert Wollny <gw.foss...@gmail.com> wrote: > 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 > > -- Paul A. Yushkevich, Ph.D. Associate Professor Penn Image Computing and Science Laboratory Department of Radiology University of Pennsylvania