MantisBT - VTK
View Issue Details
0012744VTK(No Category)public2011-11-22 09:012016-08-12 09:55
David Partyka 
David Partyka 
normalminorhave not tried
closedmoved 
5.8.0 
5.8.1 
TBD
incorrect functionality
0012744: VTKTargets installation location issues
Please review the following 4 changes. I think they might be helpful.
* VTK_TARGETS_FILE was defined twice
* adding #include <cstring> was necessary for gcc-4.6

On a Debian system I am installing into /usr/lib/
* VTKTargets.cmake gets installed in the same folder as the libs (in
my case /usr/lib/ but I need them in /usr/lib/vtk-5.8)
* libPath always points to /usr/lib/vtk-5.8 (please don't apply this
patch, it's just to show you that something is wrong)

Thanks
Dominique


--- vtk-5.8.0.orig/vtkGenerateVTKConfig.cmake
+++ vtk-5.8.0/vtkGenerateVTKConfig.cmake
@@ -147,9 +147,6 @@ SET(VTK_TCL_TK_MACROS_MODULE_CONFIG
    "${VTK_CMAKE_DIR}/vtkTclTkMacros.cmake")
 SET(VTK_CMAKE_EXTENSIONS_DIR_CONFIG ${VTK_BINARY_DIR}/CMake)

-# Export Targets file.
-SET(VTK_TARGETS_FILE "${VTK_BINARY_DIR}/${VTK_INSTALL_EXPORT_NAME}.cmake")
-
 # Build configuration information.
 SET(VTK_CONFIGURATION_TYPES_CONFIG ${CMAKE_CONFIGURATION_TYPES})
 SET(VTK_BUILD_TYPE_CONFIG ${CMAKE_BUILD_TYPE})


--- vtk-5.8.0.orig/Utilities/DICOMParser/DICOMParser.cxx
+++ vtk-5.8.0/Utilities/DICOMParser/DICOMParser.cxx
@@ -41,6 +41,7 @@

 #include <string.h>
 #include <string>
+#include <cstring>

 // Define DEBUG_DICOM to get debug messages sent to dicom_stream::cerr
 // #define DEBUG_DICOM


--- vtk-5.8.0.orig/Utilities/LastConfigureStep/CMakeLists.txt
+++ vtk-5.8.0/Utilities/LastConfigureStep/CMakeLists.txt
@@ -11,7 +11,7 @@
 #-----------------------------------------------------------------------------
 GET_PROPERTY(VTK_TARGETS GLOBAL PROPERTY VTK_TARGETS)
 EXPORT(TARGETS ${VTK_TARGETS} FILE
${VTK_BINARY_DIR}/${VTK_INSTALL_EXPORT_NAME}.cmake)
-INSTALL(EXPORT ${VTK_INSTALL_EXPORT_NAME} DESTINATION
${VTK_INSTALL_LIB_DIR_CM24})
+INSTALL(EXPORT ${VTK_INSTALL_EXPORT_NAME} DESTINATION
${VTK_INSTALL_PACKAGE_DIR_CM24})
 GET_PROPERTY(VTK_LIBRARIES GLOBAL PROPERTY VTK_LIBRARIES)
 #-----------------------------------------------------------------------------
 # Create the VTKConfig.cmake file containing the VTK configuration.


--- vtk-5.8.0.orig/Wrapping/Tcl/pkgIndex.tcl.in
+++ vtk-5.8.0/Wrapping/Tcl/pkgIndex.tcl.in
@@ -5,6 +5,7 @@ package ifneeded vtkinit {@VTK_MAJOR_VER
    proc load_library_package {libName libPath {libPrefix
{@VTK_TCL_LIBNAME_PREFIX@}}} {
      set libExt [info sharedlibextension]
      set currentDirectory [pwd]
+ set libPath /usr/@VTK_INSTALL_LIB_DIR@/
      set libFile [file join $libPath "$libPrefix$libName$libExt"]
      if {[catch "cd {$libPath}; load {$libFile}" errorMessage]} {
        puts $errorMessage
No tags attached.
Issue History
2011-11-22 09:01David PartykaNew Issue
2011-11-22 09:01David PartykaStatusbacklog => tabled
2011-11-22 09:01David PartykaAssigned To => David Partyka
2011-11-22 09:01David PartykaProduct Version => 5.8.0
2011-11-22 09:01David PartykaTarget Version => 5.8.1
2013-07-22 20:03Dave DeMarleStatustabled => backlog
2013-07-22 20:03Dave DeMarleNote Added: 0031263
2013-07-22 20:33Dave DeMarleStatusbacklog => expired
2013-07-22 20:33Dave DeMarleNote Added: 0031280
2016-08-12 09:55Kitware RobotNote Added: 0037255
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved

Notes
(0031263)
Dave DeMarle   
2013-07-22 20:03   
moving all "tabled" bugs into "backlog" category since "tabled" is no longer used.
(0031280)
Dave DeMarle   
2013-07-22 20:33   
Dave P no longer works on the project. If these old issues still exist in 6.0.0, reopen them and assign to Dave DeMarle
(0037255)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.