[Debian-med-packaging] Bug#989296: missing dependencies and wrong path in the .cmake file

Picca Frédéric-Emmanuel picca at debian.org
Mon May 31 12:44:01 BST 2021


Package: libvtkgdcm-dev
Severity: important
X-Debbugs-Cc: picca at debian.org


Hello,

I try to build a package but it end up with this error message

-- The imported target "vtkgdcm" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkgdcm.so.3.0.8"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "vtkgdcmsharpglue" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkgdcmsharpglue.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "vtkgdcmJava" references the file
   "/usr/lib/x86_64-linux-gnu/jni/libvtkgdcmJava.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "vtkgdcmPython" references the file
   "/usr/lib/python/dist-packages/vtkgdcmPython.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "vtkgdcmPythonD" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkgdcmPythonD.so.3.0.8"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmdump" references the file
   "/usr/bin/gdcmdump"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmdiff" references the file
   "/usr/bin/gdcmdiff"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmraw" references the file
   "/usr/bin/gdcmraw"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmscanner" references the file
   "/usr/bin/gdcmscanner"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmanon" references the file
   "/usr/bin/gdcmanon"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmgendir" references the file
   "/usr/bin/gdcmgendir"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmimg" references the file
   "/usr/bin/gdcmimg"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmconv" references the file
   "/usr/bin/gdcmconv"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmtar" references the file
   "/usr/bin/gdcmtar"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcminfo" references the file
   "/usr/bin/gdcminfo"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmscu" references the file
   "/usr/bin/gdcmscu"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmxml" references the file
   "/usr/bin/gdcmxml"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmpap3" references the file
   "/usr/bin/gdcmpap3"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "gdcmpdf" references the file
   "/usr/bin/gdcmpdf"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

CMake Error at CMakeLists.txt:33 (FIND_PACKAGE):
  By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "VTK", but
  CMake did not find one.

  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.


-- Configuring incomplete, errors occurred!


So it seems that the GDCMTargets.cmake reference a bunch of files not installed by the -dev package.
I need to add the cli, java , python bindings and -tools. Here the list

 libgdcm-tools,
 libvtkgdcm-cil,
 libvtkgdcm-dev,
 libvtkgdcm-java,
 python3-vtkgdcm,

But even with all these dependencies, the pythn and cli bindings can not be found, due to
wrong path:

-- The imported target "vtkgdcmsharpglue" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkgdcmsharpglue.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

-- The imported target "vtkgdcmPython" references the file
   "/usr/lib/python/dist-packages/vtkgdcmPython.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
but not all the files it references.

CMake Error at CMakeLists.txt:33 (FIND_PACKAGE):


Indeed the right path ar

cli (wrong path) :    /usr/lib/x86_64-linux-gnu/libvtkgdcmsharpglue.so -> /usr/lib/cli/vtkgdcm-sharp-3.0/libvtkgdcmsharpglue.so
python (wronf name) : /usr/lib/python/dist-packages/vtkgdcmPython.so   -> /usr/lib/python3/dist-packages/vtkgdcmPython.cpython-39-x86_64-linux-gnu.so 


Cheers

Frederic

-- System Information:
Debian Release: 11.0
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-7-amd64 (SMP w/2 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libvtkgdcm-dev depends on:
ii  libgdcm-dev    3.0.8-1
pn  libvtkgdcm3.0  <none>

libvtkgdcm-dev recommends no packages.

libvtkgdcm-dev suggests no packages.



More information about the Debian-med-packaging mailing list