View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011750VTK(No Category)public2011-01-24 02:332016-08-12 09:55
ReporterGopalakrishna Palem 
Assigned ToDave DeMarle 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformWindowsOSXpOS Version
Product Version 
Target Version5.8.1Fixed in Version 
Summary0011750: CMake generates wrong VTKConfigure.H while using Python Debuggable
DescriptionFor a debug build, the pre-processor constant VTK_WINDOWS_PYTHON_DEBUGGABLE is not being defined in the VTKConfigure.h file generated by CMake, even though a correct Python Debuggable library is supplied.

This is because of bug in the CMakeLists: The CONFIGURE_FILE() is placed *before* the Python detection code INCLUDE(vtkWrapPython)

I have moved the CONFIGURE_FILE() code to after the INCLUDE(vtkWrapPython) and now it generates correctly. Attaching the modified CMakeLists file.
Steps To ReproduceConfigure a correct version of Python debuggable library in the CMake and generate the solution for VS2010.

VTKConfigure.h gets generated with VTK_WINDOWS_PYTHON_DEBUGGABLE undefined. This leads to _DEBUG being undefined in vtkPython.h because of a hack at line 35 there.

You will get linker errors because the pYConfig.h specifies a default python27.lib, which conflicts with our supplied python27_d.lib.

# ifdef _DEBUG
# pragma comment(lib,"python27_d.lib")
# else
# pragma comment(lib,"python27.lib")
# endif /* _DEBUG */
Additional Information
The order in CMakeLists is wrong. The correct order should be as below (attached the correctly modified complete file):


#-----------------------------------------------------------------------------
# search Python, Tcl and Java

IF(VTK_WRAP_PYTHON)
  # Tell vtkWrapPython.cmake to set VTK_PYTHON_LIBRARIES for us.
  SET(VTK_WRAP_PYTHON_FIND_LIBS 1)
  INCLUDE(vtkWrapPython)
ENDIF(VTK_WRAP_PYTHON)


#-----------------------------------------------------------------------------
# Configure files with settings for use by the build.
CONFIGURE_FILE(${VTK_SOURCE_DIR}/vtkConfigure.h.in
               ${VTK_BINARY_DIR}/vtkConfigure.h @ONLY IMMEDIATE)
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Filestxt file icon CMakeLists.txt [^] (59,266 bytes) 2011-01-24 02:33 [Show Content]

 Relationships

  Notes
(0031185)
Dave DeMarle (administrator)
2013-07-22 17:28

If the bug is still present in 6.0.0, please reopen this report.
(0037217)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2011-01-24 02:33 Gopalakrishna Palem New Issue
2011-01-24 02:33 Gopalakrishna Palem File Added: CMakeLists.txt
2011-06-16 13:11 Zack Galbreath Category CMake => (No Category)
2011-09-15 11:15 David Partyka Project => TBD
2011-09-15 11:15 David Partyka Type => incorrect functionality
2011-09-15 11:15 David Partyka Target Version => 5.8.1
2011-09-15 11:15 David Partyka Additional Information Updated
2013-07-22 17:28 Dave DeMarle Note Added: 0031185
2013-07-22 17:28 Dave DeMarle Status backlog => expired
2013-07-22 17:28 Dave DeMarle Assigned To => Dave DeMarle
2016-08-12 09:55 Kitware Robot Note Added: 0037217
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved


Copyright © 2000 - 2018 MantisBT Team