<div dir="ltr">Hi Gert,<div><br></div><div>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.</div><div><br></div><div>Could you tell me why including all VTK libs and GDCM libs was required?</div><div><br></div><div>Thanks!<br>Paul</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 7:33 AM, Gert Wollny <span dir="ltr"><<a href="mailto:gw.fossdev@gmail.com" target="_blank">gw.fossdev@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Paul,<br>
<br>
in Debian we are currently at ITK 4.6 and VTK 6.1 and AFAICS this is<br>
what will go into Jessie. Hence, if you could get a version released<br>
that can be compiled with these two libraries, we could update it,<br>
Note however, that the freeze for Jessie is only a few weeks away.<br>
<span class=""><br>
<br>
> Here is a table of version compatibility between versions of ITK-SNAP, ITK,<br>
> VTK and Qt.<br>
> <a href="http://www.itksnap.org/pmwiki/pmwiki.php?n=Documentation.BuildingITK-SNAP" target="_blank">http://www.itksnap.org/pmwiki/pmwiki.php?n=Documentation.BuildingITK-SNAP</a>.<br>
<br>
</span>With the latest dev32 branch I get<br>
<br>
 get_property could not find TARGET Qt5::QXcbIntegrationPlugin.<br>
  Perhaps it has not yet been created.<br>
<br>
<br>
CMake Error at CMakeLists.txt:1134 (get_property):<br>
  get_property could not find TARGET Qt5::QGifPlugin.  Perhaps it has<br>
  not yet been created.<br>
<br>
and I just don't know whether this is a problem with itksnap not<br>
properly searching or because the QT5 packages (>5.3) don't include<br>
these plugins for some reason. I  have<br>
  /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqgif.so<br>
and<br>
  /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so<br>
<br>
--<br>
<br>
Well, after some fiddling I got the attached patch that makes it build.<br>
<br>
This patch does the following:<br>
<br>
* revert dd5b67 (this is where above plug-ins are searched for)<br>
* Add a Find_package for gdcm and gdcmCommon to the link_libraries.<br>
* Use all vtk libraries<br>
<br>
With this the software as of commit 32eaf0+patch builds with the warning<br>
about libjpeg.so.62 and libjpeg.so.8 being pulled in at the same time<br>
(The first is  the fault of libtiff  and should go away when a new<br>
libtiff gets build against libjpeg.so.8 )<br>
<br>
The resulting executable segfaults though:<br>
<br>
./ITK-SNAP(_Z24SegmentationFaultHandleri+0x7b)[0x74b25b]<br>
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0)[0x7f60494958d0]<br>
/lib/x86_64-linux-gnu/libc.so.6(strlen+0x2a)[0x7f60272d4a3a]<br>
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN16QCoreApplication9argumentsEv+0xb1)[0x7f6027df4b41]<br>
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so(+0x3260f)[0x7f600caa160f]<br>
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so(+0x32923)[0x7f600caa1923]<br>
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so(+0x40f3c)[0x7f600caaff3c]<br>
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so(+0x32061)[0x7f600caa1061]<br>
/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(_ZN14QWindowPrivate6createEb<br>
+0x66)[0x7f602833a4b6]<br>
/usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5(_ZN10QGLContext13chooseContextEPKS_+0x133)[0x7f6029481423]<br>
/usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5(_ZN10QGLContext6createEPKS_<br>
+0x26)[0x7f6029459c36]<br>
/usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5(_ZN9QGLWidget10setContextEP10QGLContextPKS0_b+0xaf)[0x7f6029480e8f]<br>
/usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5(_ZN16QGLWidgetPrivate11initContextEP10QGLContextPK9QGLWidget+0x7f)[0x7f602945e1cf]<br>
/usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5(_ZN9QGLWidgetC2EP7QWidgetPKS_6QFlagsIN2Qt10WindowTypeEE+0x10a)[0x7f602945df2a]<br>
./ITK-SNAP(_ZN19QtAbstractOpenGLBoxC1EP7QWidget+0xd)[0x7fa46d]<br>
./ITK-SNAP(_ZN16GenericSliceViewC2EP7QWidget+0x12)[0x7f4212]<br>
./ITK-SNAP(_ZN17Ui_SliceViewPanel7setupUiEP7QWidget+0x2154)[0x7ed1f4]<br>
./ITK-SNAP(_ZN14SliceViewPanelC1EP7QWidget+0x55)[0x7e6ad5]<br>
./ITK-SNAP(_ZN18Ui_MainImageWindow7setupUiEP11QMainWindow<br>
+0x250b)[0x781c6b]<br>
./ITK-SNAP(_ZN15MainImageWindowC2EP7QWidget+0x64)[0x772f24]<br>
./ITK-SNAP(main+0x1c0)[0x744f00]<br>
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f6027274b45]<br>
./ITK-SNAP[0x74b0f7]<br>
<br>
<br>
<br>
Best<br>
<span class="HOEnZb"><font color="#888888">Gert<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Paul A. Yushkevich, Ph.D. <br>Associate Professor<br>Penn Image Computing and Science Laboratory<br>Department of Radiology<br>University of Pennsylvania<br></div>
</div>