I am encountering the following error when trying to configure a project with CMake using the example code from VTK Cylinder Example:
paar-orin1@ubuntu:~/overlay_cpp/deepstream_app/CylinderExample/build$ cmake ..
-- Configuring done
CMake Error in CMakeLists.txt:
Imported target "VTK::CommonColor" includes non-existent path
"/usr/local/include/vtk-9.4"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not provide.
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
I have installed VTK 9.1 using the package manager on my system:
However, CMake is looking for VTK version 9.4 headers in the path /usr/local/include/vtk-9.4, which doesn’t exist on my system. I’ve confirmed that I have VTK 9.1 installed and I haven’t installed version 9.4 manually.
Could anyone guide me on how to resolve this issue? It seems like CMake is incorrectly pointing to a non-existent version of VTK, or possibly there is a misconfiguration related to the version.
Thank you for your previous assistance; my program is now working successfully. I am currently developing an application that integrates VTK, OpenCV, and DeepStream, and I need help creating a proper Makefile to ensure these libraries are correctly configured and accessible.
I encountered an issue related to rendering the window output when running my code and raised it on the VTK forum. For reference, here is the link to the issue I posted:
Could you please guide me in resolving this issue and in writing a proper Makefile for my application?