Hello, the error actually stems from the handling of the QT5 includes an libraries. The attached patch corrects this problem.
Note that you will also have to build depend on libvtk6-qt-dev (instead of only libvtk6-dev). (There is an open issue with libvtk6-qt-dev that I didn't report in the BTS, but only confirmed with the VTK6 maintainers, the package pulls in some qt4 packages. This is an annoyance, but nifti2dicom still builds properly.) Many thanks, Gert
Description: Correct the includes and libraries for QT5 Author: Gert Wollny <gw.foss...@gmail.com> Forwarded: no Last-Update: 2016-01-10 --- nifti2dicom-0.4.9.orig/src/gui/CMakeLists.txt +++ nifti2dicom-0.4.9/src/gui/CMakeLists.txt @@ -50,6 +50,10 @@ endif() if(Nifti2Dicom_QT_VERSION EQUAL 5) qt5_wrap_cpp(qnifti2dicom_MOC_SRCS ${qnifti2dicom_MOC_HDR}) qt5_add_resources(qnifti2dicom_QRC_SRCS ${qnifti2dicom_QRC_RCC}) + set(QT_QTCORE_INCLUDE_DIR ${Qt5Core_INCLUDE_DIR}) + set(QT_QTCOREGUI_INCLUDE_DIR ${Qt5Gui_INCLUDE_DIR}) + set(QT_QTCORE_LIBRARY ${Qt5Core_LIBRARIES}) + set(QT_QTGUI_LIBRARY ${Qt5Gui_LIBRARIES}) else() qt4_wrap_cpp(qnifti2dicom_MOC_SRCS ${qnifti2dicom_MOC_HDR}) qt4_add_resources(qnifti2dicom_QRC_SRCS ${qnifti2dicom_QRC_RCC})