CTK build issue with VTK and ITK folder specified
I'm facing issue of building CTK with VTK and ITK build directories specified using command:
sudo ccmake -DCTK_QT_VERSION:STRING=5 -DCMAKE_PREFIX_PATH=/home/simtiaz/Qt/5.11.0/gcc_64/lib/cmake/Qt5/ -DVTK_DIR:PATH=/home/simtiaz/Downloads/vtk/VTK_build1 -DITK_DIR:PATH=/home/simtiaz/Downloads/ITK/ITK_build ../CTK
and during "sudo make" I get this error:
[ 61%] Building CXX object Libs/Visualization/VTK/Core/CMakeFiles/CTKVisualizationVTKCore.dir/ctkVTKConnection.cpp.o In file included from /home/simtiaz/Downloads/ctk/CTK/Libs/Visualization/VTK/Core/ctkVTKConnection.cpp:30: /home/simtiaz/Downloads/ctk/CTK/Libs/Visualization/VTK/Core/ctkVTKConnection_p.h:32:10: fatal error: vtkSmartPointer.h: No such file or directory #include <vtkSmartPointer.h> ^~~~~~~~~~~~~~~~~~~ compilation terminated. make[5]: *** [Libs/Visualization/VTK/Core/CMakeFiles/CTKVisualizationVTKCore.dir/build.make:71: Libs/Visualization/VTK/Core/CMakeFiles/CTKVisualizationVTKCore.dir/ctkVTKConnection.cpp.o] Error 1 make[4]: *** [CMakeFiles/Makefile2:3611: Libs/Visualization/VTK/Core/CMakeFiles/CTKVisualizationVTKCore.dir/all] Error 2 make[3]: *** [Makefile:141: all] Error 2 make[2]: *** [CMakeFiles/CTK.dir/build.make:119: CTK-prefix/src/CTK-stamp/CTK-build] Error 2 make[1]: *** [CMakeFiles/Makefile2:1229: CMakeFiles/CTK.dir/all] Error 2 make: *** [Makefile:141: all] Error 2
So I found this header in /usr/local/include/vtk-9.0 directory so I changed the DIR Paths to this folder by using command:
sudo ccmake -DCTK_QT_VERSION:STRING=5 -DCMAKE_PREFIX_PATH=/home/simtiaz/Qt/5.11.0/gcc_64/lib/cmake/Qt5/ -DVTK_DIR:PATH=/usr/local/include/vtk-9.0 -DITK_DIR:PATH=/usr/local/include/ITK-5.1 ../CTK
But the issue is same, it can not find the header above. I'm not sure what is causing this issue so I thought I open this issue here and hopefully someone can clarify of problem I'm facing.
If I try with GIT_CLONE_PROTOCOL=ON and do not specify VTK and ITK directories, the build stops at ITK cloning and is unable to clone:
`Cloning into 'ITK'...
fatal: unable to connect to itk.org:
itk.org[0: 66.194.253.19]: errno=Connection timed out
Cloning into 'ITK'... fatal: unable to connect to itk.org: itk.org[0: 66.194.253.19]: errno=Connection timed out
Cloning into 'ITK'... fatal: unable to connect to itk.org: itk.org[0: 66.194.253.19]: errno=Connection timed out
-- Had to git clone more than once: 3 times. CMake Error at ITK-cmake/tmp/ITK-gitclone.cmake:66 (message): Failed to clone repository: 'git://itk.org/ITK.git'
make[2]: *** [CMakeFiles/ITK.dir/build.make:90: ITK-cmake/src/ITK-stamp/ITK-download] Error 1 make[1]: *** [CMakeFiles/Makefile2:228: CMakeFiles/ITK.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 ` Only CTK_BUILD_ALL is set to ON, every other variable is set off.
QT_version: 5.11.0
VTK version= 9.0.0
ITK version= 5.1.0
Build System:
BUILT SYSTEM SPECS (Both machines): NAME="CentOS Linux" VERSION="8 (Core)" ID="centos" ID_LIKE="rhel fedora" PRETTY_NAME="CentOS Linux 8 (Core)" CPE_NAME="cpe:/o:centos:centos:8"
I'm not sure if I'm doing something wrong during build, does anyone face similar issue
I have a similar error, building CTK from master, with these cmake settings:

I have only these errors at the end:
7> CTKScriptingPythonWidgetsPlugins.vcxproj -> D:\...\externals\CTK\build\CTK-build\bin\designer\Debug\CTKScriptingPythonWidgetsPlugins.dll
7> ctkVTKConnection.cpp
7>d:\...\externals\ctk\libs\visualization\vtk\core\ctkVTKConnection_p.h(32): fatal error C1083: Non è possibile aprire il file inclusione: 'vtkSmartPointer.h': No such file or directory [D:\...\externals\CTK\build\CTK-build\Libs\Visualization\VTK\Core\CTKVisualizationVTKCore.vcxproj]
7> ctkVTKErrorLogMessageHandler.cpp
7>D:\...\externals\CTK\Libs\Visualization\VTK\Core\ctkVTKErrorLogMessageHandler.cpp(30): fatal error C1083: Non è possibile aprire il file inclusione: 'vtkObjectFactory.h': No such file or directory [D:\...\externals\CTK\build\CTK-build\Libs\Visualization\VTK\Core\CTKVisualizationVTKCore.vcxproj]
7> ctkVTKObjectEventsObserver.cpp
7>d:\...\externals\ctk\libs\visualization\vtk\core\ctkVTKObjectEventsObserver.h(36): fatal error C1083: Non è possibile aprire il file inclusione: 'vtkCommand.h': No such file or directory [D:\...\externals\CTK\build\CTK-build\Libs\Visualization\VTK\Core\CTKVisualizationVTKCore.vcxproj]
7> ctkVTKScalarsToColorsUtils.cpp
7>D:\...\externals\CTK\Libs\Visualization\VTK\Core\ctkVTKScalarsToColorsUtils.cpp(25): fatal error C1083: Non è possibile aprire il file inclusione: 'vtkDiscretizableColorTransferFunction.h': No such file or directory [D:\...\externals\CTK\build\CTK-build\Libs\Visualization\VTK\Core\CTKVisualizationVTKCore.vcxproj]
7> vtkLightBoxRendererManager.cpp
7>d:\...\externals\ctk\libs\visualization\vtk\core\vtkLightBoxRendererManager.h(24): fatal error C1083: Non è possibile aprire il file inclusione: 'vtkObject.h': No such file or directory [D:\...\externals\CTK\build\CTK-build\Libs\Visualization\VTK\Core\CTKVisualizationVTKCore.vcxproj]
7> moc_ctkVTKObjectEventsObserver.cpp
7>D:\...\externals\CTK\Libs\Visualization\VTK\Core\ctkVTKObjectEventsObserver.h(36): fatal error C1083: Non è possibile aprire il file inclusione: 'vtkCommand.h': No such file or directory [D:\...\externals\CTK\build\CTK-build\Libs\Visualization\VTK\Core\CTKVisualizationVTKCore.vcxproj]
7> Generazione del codice in corso...
7> CTKWidgetsPlugins.vcxproj -> D:\...\externals\CTK\build\CTK-build\bin\designer\Debug\CTKWidgetsPlugins.dll
7>Compilazione progetto "CTK.vcxproj" NON COMPLETATA.
(It's in italian but it's quite clear that's unable to find include files)
Please provide a solution to this when possible
@salmanimtiaz It looks like you are trying to use VTK-9. VTK-9 has a completely new build system and I don't think CTK is compatible with it yet. If you are a CMake and VTK expert then you could help with updating CTK. If not, then you can wait for someone else to do this work and in the meantime keep using VTK-8.2.
@ScrappyCocco Which VTK version are you trying to use? What is your CTK source and binary directory paths? (if they are too long then may cause the error you saw)
It looks like you are trying to use VTK-9. VTK-9 has a completely new build system and I don't think CTK is compatible with it yet.
Yes i'm using VTK-9 too
@lassoan Thanks for your reply. So after your reply, it makes a bit sense now why it is giving me trouble. So here is my complete take of the issues I've been facing. As CTK has own built in option to clone ITK and VTK and build and use it, I removed the the include command for VTK and ITK built directory. But it is unable to clone into ITK and VTK, this is the output: `Cloning into 'ITK'... fatal: unable to connect to itk.org: itk.org[0: 66.194.253.19]: errno=Connection timed out
Cloning into 'ITK'... fatal: unable to connect to itk.org: itk.org[0: 66.194.253.19]: errno=Connection timed out
Cloning into 'ITK'... fatal: unable to connect to itk.org: itk.org[0: 66.194.253.19]: errno=Connection timed out
-- Had to git clone more than once: 3 times. CMake Error at ITK-cmake/tmp/ITK-gitclone.cmake:66 (message): Failed to clone repository: 'git://itk.org/ITK.git'
make[2]: *** [CMakeFiles/ITK.dir/build.make:90: ITK-cmake/src/ITK-stamp/ITK-download] Error 1 make[1]: *** [CMakeFiles/Makefile2:228: CMakeFiles/ITK.dir/all] Error 2 make: *** [Makefile:141: all] Error 2`
So I went in to look into ITK.cmake and VTK.cmake and made following changes to line: ITK.cmake (line 28): Replace set(revision_tag "v3.20.1") with set(revision_tag "v5.0.0") ITK.cmake (line 40): Replace set(location_args GIT_REPOSITORY "${EP_GIT_PROTOCOL}://itk.org/ITK.git" With set(location_args GIT_REPOSITORY "${EP_GIT_PROTOCOL}://github.com/InsightSoftwareConsortium/ITK.git"
VTK.cmake (line 28): Replace set(revision_tag f3f70ec0912cf836a3d5954a95cb04f0237fbdc4) with set(revision_tag "v8.2.0") VTK.cmake (line 40): Replace set(location_args GIT_REPOSITORY "${EP_GIT_PROTOCOL}://itk.org/ITK.git" With set(location_args GIT_REPOSITORY "${EP_GIT_PROTOCOL}://github.com/Kitware/VTK.git"
Now this resolve the issue of getting ITK and VTK, but it stumbles upon another error:
[ 99%] Built target GeovisCore [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkParallelCoordinatesHistogramRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkParallelCoordinatesRepresentation.cxx.o /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx: In member function \u2018virtual vtkVector2i vtkQtStringToImage::GetBounds(vtkTextProperty*, const vtkUnicodeString&, int)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx:105:16: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx: In member function \u2018virtual void vtkQtLabelRenderStrategy::ComputeLabelBounds(vtkTextProperty*, vtkUnicodeString, double*)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx:226:18: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx: In member function \u2018virtual vtkVector2i vtkQtStringToImage::GetBounds(vtkTextProperty*, const vtkStdString&, int)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx:136:16: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx: In member function \u2018virtual int vtkQtStringToImage::RenderString(vtkTextProperty*, const vtkUnicodeString&, int, vtkImageData*, int*)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx:181:16: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx: In member function \u2018virtual void vtkQtLabelRenderStrategy::RenderLabel(int*, vtkTextProperty*, vtkUnicodeString, int)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx:329:16: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx: In member function \u2018virtual void vtkQtLabelRenderStrategy::RenderLabel(int*, vtkTextProperty*, vtkUnicodeString)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx:441:18: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ make[2]: *** [Rendering/Qt/CMakeFiles/RenderingQt.dir/build.make:122: Rendering/Qt/CMakeFiles/RenderingQt.dir/vtkQtStringToImage.cxx.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkParallelCoordinatesView.cxx.o make[2]: *** [Rendering/Qt/CMakeFiles/RenderingQt.dir/build.make:109: Rendering/Qt/CMakeFiles/RenderingQt.dir/vtkQtLabelRenderStrategy.cxx.o] Error 1 [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedGraphRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedHierarchyRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedSurfaceRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedTreeAreaRepresentation.cxx.o make[1]: *** [CMakeFiles/Makefile2:8886: Rendering/Qt/CMakeFiles/RenderingQt.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderView.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkSCurveSpline.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTanglegramItem.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTreeAreaView.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTreeHeatmapItem.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTreeMapView.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTreeRingView.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkViewUpdater.cxx.o [ 99%] Linking CXX shared library ../../lib64/libvtkViewsInfovis-9.0.so [ 99%] Built target ViewsInfovis make: *** [Makefile:161: all] Error 2
This Issue I know is with missing #include <QPainterPath> (so QT-5.15.0 throw the error-> has incomplete type and cannot be defined QPainterPath path;) in the scripts mentioned in error "vtkStringToImage.cxx" and "vtkQtLabelRenderStrategy.cxx" and this is fixed in VTK master. So I changed VTK.cmake tag to "master" from "v8.2.0". But now it gives me this error, it is unable to find "vtkSmartPointer.h"

So I'm trying to debug this issue, I can find this file in VTK->Common->Core that CTK cloned through git. but I'm not sure why it is giving this error. My options currently are:
1- Build VTK version 8.2.0 with include QPainterPath in scripts "vtkStringToImage.cxx" and "vtkQtLabelRenderStrategy.cxx" as I'm using QT-5.15.0 and then give path to that VTk directory to CTK. 2- Try to debug vtkSmartPointer.h issue above. 3- Downgrade Qt from 5.15.0 to any older version to remove the error QPainterPath
In Slicer, we use CTK with Qt-5.15.0 and
- github.com/slicer/VTK.git - tag: e1be324636d835558ff220326d16a721b852f17f (slicer-v8.2.0-2018-10-02-74d9488523)
- github.com/InsightSoftwareConsortium/ITK tag 35704a458d1ad9a4a2f2634d38032216ab280823 (v5.1rc03 with ITK PR#1727 fixing -Wstrict-overflow warning)
If you plan to use CTK for medical imaging applications, I would recommend to go one step further and use 3D Slicer or MITK as a basis and not just CTK. It will save you enormous amount of time.
By the way, I've just tried a clean build of CTK (using -DCTK_QT_VERSION:STRING=5 -DQt5_DIR:FILEPATH=C:/Qt/5.15.0/msvc2019_64/lib/cmake/Qt5) and it built without any issues. Make sure you delete your entire build folder after you make significant changes to build options (e.g., changing ITK, VTK, or Qt version).
Hi @lassoan Thanks for checking, so just for my clarification, you followed following steps: 1- Cloned the master CTK repo and configure with cmake using above options (QT_version and Qt5_DIR:PATH) in CTK-build (empty directory) 2- Then "make -j4" and it built fine?
I'm confused how it got through the clone ITK and VTK part. It always give me error that can't reach itk.org and exits. And yes, I always clear the build directory and start build from start if make change to any option or file
I think if you build CTK with default options then ITK and VTK are not needed. I have now started a build adding -DCTK_BUILD_ALL:BOOL=ON.
Yes, just tried on windows with msvc2019, it built fine with CTK_BUILD_ALL=OFF. I'll turn it on and try also
My build fail with error
Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol __imp_PyUnicode_FromString [C:\Users\simtiaz\Desktop\CTK\CTK\CTK-build\PythonQt-build\PythonQt.vcxproj] PythonQt C:\Users\simtiaz\Desktop\CTK\CTK\CTK-build\com_trolltech_qt_gui_builtin0.obj 1
and lots of errors with similar Error code description and with CTK_BUILD_ALL=ON
@lassoan Thanks for your reply. So after your reply, it makes a bit sense now why it is giving me trouble. So here is my complete take of the issues I've been facing. As CTK has own built in option to clone ITK and VTK and build and use it, I removed the the include command for VTK and ITK built directory. But it is unable to clone into ITK and VTK, this is the output: `Cloning into 'ITK'... fatal: unable to connect to itk.org: itk.org[0: 66.194.253.19]: errno=Connection timed out
Cloning into 'ITK'... fatal: unable to connect to itk.org: itk.org[0: 66.194.253.19]: errno=Connection timed out
Cloning into 'ITK'... fatal: unable to connect to itk.org: itk.org[0: 66.194.253.19]: errno=Connection timed out
-- Had to git clone more than once: 3 times. CMake Error at ITK-cmake/tmp/ITK-gitclone.cmake:66 (message): Failed to clone repository: 'git://itk.org/ITK.git'
make[2]: *** [CMakeFiles/ITK.dir/build.make:90: ITK-cmake/src/ITK-stamp/ITK-download] Error 1 make[1]: *** [CMakeFiles/Makefile2:228: CMakeFiles/ITK.dir/all] Error 2 make: *** [Makefile:141: all] Error 2`
So I went in to look into ITK.cmake and VTK.cmake and made following changes to line: ITK.cmake (line 28): Replace set(revision_tag "v3.20.1") with set(revision_tag "v5.0.0") ITK.cmake (line 40): Replace set(location_args GIT_REPOSITORY "${EP_GIT_PROTOCOL}://itk.org/ITK.git" With set(location_args GIT_REPOSITORY "${EP_GIT_PROTOCOL}://github.com/InsightSoftwareConsortium/ITK.git"
VTK.cmake (line 28): Replace set(revision_tag f3f70ec0912cf836a3d5954a95cb04f0237fbdc4) with set(revision_tag "v8.2.0") VTK.cmake (line 40): Replace set(location_args GIT_REPOSITORY "${EP_GIT_PROTOCOL}://itk.org/ITK.git" With set(location_args GIT_REPOSITORY "${EP_GIT_PROTOCOL}://github.com/Kitware/VTK.git"
Now this resolve the issue of getting ITK and VTK, but it stumbles upon another error:
[ 99%] Built target GeovisCore [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkParallelCoordinatesHistogramRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkParallelCoordinatesRepresentation.cxx.o /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx: In member function \u2018virtual vtkVector2i vtkQtStringToImage::GetBounds(vtkTextProperty*, const vtkUnicodeString&, int)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx:105:16: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx: In member function \u2018virtual void vtkQtLabelRenderStrategy::ComputeLabelBounds(vtkTextProperty*, vtkUnicodeString, double*)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx:226:18: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx: In member function \u2018virtual vtkVector2i vtkQtStringToImage::GetBounds(vtkTextProperty*, const vtkStdString&, int)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx:136:16: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx: In member function \u2018virtual int vtkQtStringToImage::RenderString(vtkTextProperty*, const vtkUnicodeString&, int, vtkImageData*, int*)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtStringToImage.cxx:181:16: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx: In member function \u2018virtual void vtkQtLabelRenderStrategy::RenderLabel(int*, vtkTextProperty*, vtkUnicodeString, int)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx:329:16: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx: In member function \u2018virtual void vtkQtLabelRenderStrategy::RenderLabel(int*, vtkTextProperty*, vtkUnicodeString)\u2019: /usr/local/vtk/VTK-9.0.0/Rendering/Qt/vtkQtLabelRenderStrategy.cxx:441:18: error: aggregate \u2018QPainterPath path\u2019 has incomplete type and cannot be defined QPainterPath path; ^~~~ make[2]: *** [Rendering/Qt/CMakeFiles/RenderingQt.dir/build.make:122: Rendering/Qt/CMakeFiles/RenderingQt.dir/vtkQtStringToImage.cxx.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkParallelCoordinatesView.cxx.o make[2]: *** [Rendering/Qt/CMakeFiles/RenderingQt.dir/build.make:109: Rendering/Qt/CMakeFiles/RenderingQt.dir/vtkQtLabelRenderStrategy.cxx.o] Error 1 [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedGraphRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedHierarchyRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedSurfaceRepresentation.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderedTreeAreaRepresentation.cxx.o make[1]: *** [CMakeFiles/Makefile2:8886: Rendering/Qt/CMakeFiles/RenderingQt.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkRenderView.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkSCurveSpline.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTanglegramItem.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTreeAreaView.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTreeHeatmapItem.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTreeMapView.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkTreeRingView.cxx.o [ 99%] Building CXX object Views/Infovis/CMakeFiles/ViewsInfovis.dir/vtkViewUpdater.cxx.o [ 99%] Linking CXX shared library ../../lib64/libvtkViewsInfovis-9.0.so [ 99%] Built target ViewsInfovis make: *** [Makefile:161: all] Error 2This Issue I know is with missing #include (so QT-5.15.0 throw the error-> has incomplete type and cannot be defined QPainterPath path;) in the scripts mentioned in error "vtkStringToImage.cxx" and "vtkQtLabelRenderStrategy.cxx" and this is fixed in VTK master. So I changed VTK.cmake tag to "master" from "v8.2.0". But now it gives me this error, it is unable to find "vtkSmartPointer.h"
So I'm trying to debug this issue, I can find this file in VTK->Common->Core that CTK cloned through git. but I'm not sure why it is giving this error. My options currently are:
1- Build VTK version 8.2.0 with include QPainterPath in scripts "vtkStringToImage.cxx" and "vtkQtLabelRenderStrategy.cxx" as I'm using QT-5.15.0 and then give path to that VTk directory to CTK. 2- Try to debug vtkSmartPointer.h issue above. 3- Downgrade Qt from 5.15.0 to any older version to remove the error QPainterPath
Hi @salmanimtiaz I encountered the same issue of building CTK with VTK as you, how did you finally solve it?