nagyistoce / devide

Automatically exported from code.google.com/p/devide
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

DRE: various VTK cmake config files refer to incorrect paths for python #157

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When using DRE to build custom VTK libraries on Windows, the compiler fails 
to find include files and libraries for the included version of python. 
Investigation shows that several files in \DeVIDE-RE\VTK\lib\vtk-5.4 refer 
to an incorrect location (C:/build/jwd/inst/python). Changing these manually 
to point to the correct path for this machine fixes the problem.

The files in question are:
- VTKConfig.cmake (line 15: python include dir)
- VTKLibraryDepends.cmake (various references to the python library)

Additionally, a reference to the build/jwd path is found at line 61 in 
VTKConfig.cmake. It is unknown if this causes any problems.

Original issue reported on code.google.com by stef.bus...@gmail.com on 23 Oct 2009 at 11:23

GoogleCodeExporter commented 9 years ago
Thank you very much for further investigating this on Windows!

I had previously succeeded doing this on Linux, see docs here: 
http://code.google.com/p/devide/wiki/AddingVTKLibsToBinaryDeVIDE

Do I understand correctly that you have managed to correctly build your own C++ 
VTK 
extension module with Python wrapping?!  If so, would you mind extending the 
documentation mentioned above for Windows also?

In the next DRE release I'll integrate as many of the fixes in the shipped 
build 
files.

Thanks again!!

Original comment by cpbotha on 23 Oct 2009 at 11:29

GoogleCodeExporter commented 9 years ago
Hardcoding the DeVIDE installation path in these files can be avoided by 
replacing 
"C:/build/jwd/inst/" with "${VTK_INSTALL_PREFIX}/../" rather than the full path.

Original comment by stef.bus...@gmail.com on 23 Oct 2009 at 11:36

GoogleCodeExporter commented 9 years ago
The wiki page has now been updated with instructions for building extension 
modules on 
Windows.

Original comment by stef.bus...@gmail.com on 23 Oct 2009 at 12:11

GoogleCodeExporter commented 9 years ago

Original comment by cpbotha on 13 Feb 2011 at 5:08

GoogleCodeExporter commented 9 years ago
Linux fix checken in at r4022, Windows fix to follow.

Original comment by cpbotha on 11 Mar 2011 at 11:10