MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0011750 | VTK | (No Category) | public | 2011-01-24 02:33 | 2016-08-12 09:55 |
| Reporter | Gopalakrishna Palem | ||||
| Assigned To | Dave DeMarle | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | Windows | OS | Xp | OS Version | |
| Product Version | |||||
| Target Version | 5.8.1 | Fixed in Version | |||
| Project | TBD | ||||
| Type | incorrect functionality | ||||
| Summary | 0011750: CMake generates wrong VTKConfigure.H while using Python Debuggable | ||||
| Description | For 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 Reproduce | Configure 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) | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://www.vtk.org/Bug/file/8651/CMakeLists.txt | ||||
| 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 | bug_revision_view_page.php?rev_id=390#r390 | ||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||