[vtk-developers] [VTK 0012744]: VTKTargets installation location issues
Mantis Bug Tracker
mantis at public.kitware.com
Tue Nov 22 09:01:20 EST 2011
The following issue has been SUBMITTED.
======================================================================
http://www.paraview.org/Bug/view.php?id=12744
======================================================================
Reported By: David Partyka
Assigned To: David Partyka
======================================================================
Project: VTK
Issue ID: 12744
Category: (No Category)
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: tabled
Project: TBD
Type: incorrect functionality
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 2011-11-22 09:01 EST
Last Modified: 2011-11-22 09:01 EST
======================================================================
Summary: VTKTargets installation location issues
Description:
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
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-11-22 09:01 David Partyka New Issue
2011-11-22 09:01 David Partyka Status backlog => tabled
2011-11-22 09:01 David Partyka Assigned To => David Partyka
======================================================================
More information about the vtk-developers
mailing list