[Debian-med-packaging] Bug#1039528: plastimatch: FTBFS: Could not find a package configuration file provided by "VTK"
Adrian Bunk
bunk at debian.org
Tue Jun 27 00:15:06 BST 2023
Control: reassign -1 libinsighttoolkit5-dev 5.3.0-3
Control: affects -1 src:plastimatch
There are actually tow separate issues, both in libinsighttoolkit5-dev:
https://buildd.debian.org/status/logs.php?pkg=plastimatch&ver=1.9.4%2Bdfsg.1-1%2Bb1&arch=amd64
On Tue, Jun 27, 2023 at 12:09:04AM +0200, Sebastian Ramacher wrote:
> Source: plastimatch
> Version: 1.9.4+dfsg.1-1
>...
> CMake Error at /usr/lib/x86_64-linux-gnu/cmake/ITK-5.3/Modules/ITKVtkGlue.cmake:16 (find_package):
> Could not find a package configuration file provided by "VTK" with any of
> the following names:
>
> VTKConfig.cmake
> vtk-config.cmake
>
> Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
> to a directory containing one of the above files. If "VTK" provides a
> separate development package or SDK, be sure it has been installed.
>...
1. The VTK build dependencies for the recent VTK changes also hae to
become dependencies of libinsighttoolkit5-dev.
In file included from /<<PKGBUILDDIR>>/src/plastimatch/base/dcmtk_config.h:16,
from /<<PKGBUILDDIR>>/src/plastimatch/base/metadata.h:12,
from /<<PKGBUILDDIR>>/src/plastimatch/base/astroid_dose.h:8,
from /<<PKGBUILDDIR>>/src/plastimatch/base/astroid_dose.cxx:7:
/usr/include/dcmtk/config/osconfig.h:1153:2: error: invalid preprocessing directive #errorDCMTK
1153 | #error\
| ^~~~~~
1154 | DCMTK was configured to use C++17 features, but your compiler does not or was not configured to provide them.
| ~~~~~
2. This is caused by libinsighttoolkit5-dev injecting -std=c++14 into
reverse dependencies, the fix is likely something like
https://github.com/InsightSoftwareConsortium/ITK/commit/513507e4c70172d5431563f89dc77c6bae1ad5b1
cu
Adrian
More information about the Debian-med-packaging
mailing list