[vtkusers] Building VTK 5.6.0 with bcc32 5.9.3 (C++ Builder 2009)

Weinheimer, Oliver mail at oliwe.com
Mon May 17 09:48:52 EDT 2010


Compiling VTK 5.6.0 with  bcc32 5.9.3 (C++ Builder 2009).

[A] Use CMake

I used CMake 2.8.1
Borland Makefiles
Build Type: Release 

[B] Change Source-Code

Changes in VTK 5.6.0 Source-Code
1)
vtkTemporalPathLineFilter.cxx
line 205
trail->Fields.assign(this->Internals->InputFieldArrays.size(), 0);
replaced with
trail->Fields.resize(this->Internals->InputFieldArrays.size());

because assign needs const Ty& val as second argument

2)
exclusion of
vtkYoungsMaterialInterface.cxx
in 
\Kitware\VTK-5.6.0\Graphics\CMakeList.txt

because of problems with definition of size_t: 'size_t' is not member of
'std'

3)
Added
#include <ctype.h>
to
\Kitware\VTK-5.6.0\IO\vtkArrayReader.cxx

because isspace was not found

4)
\Kitware\VTK-5.6.0\Infovis\vtkAppendPoints.cxx
line 122
inputs.push_back(0);
changed to
vtkSmartPointer<vtkPolyData> dummy = vtkSmartPointer<vtkPolyData>::New();
inputs.push_back(dummy);

because 0 is not allowed as argument in push_back

5)
\Kitware\VTK-5.6.0\Common\Testing\Cxx\CMakeLists.txt
ArrayUserTypes.cxx
ArrayVariants.cxx
exluded from testing

because ?

[C] Compile VTK with bcc32 5.9.3

Open cmd.exe in Vtk binaries directory and type in "make"

Last lines of Build-Output:
CodeGear C++ 6.13 f³r Win32 Copyright (c) 1993-2008 CodeGear
Turbo Incremental Link 5.96 Copyright (c) 1997-2009 CodeGear
[100%] Built target ChartsCxxTests

[D] Building vtkBorlandRenderWindowPkg.bpk in C++ Builder IDE

Set system variables VTK_SOURCE and VTK_BIN

Open C++ Builder IDE

Open vtkBorlandRenderWindowPkg.bpk in
D:\Kitware\vtk-5.6.0\Examples\GUI\Win32\vtkBorland\Package\
(leads to automatic creation of vtkBorlandRenderWindowPkg.cbproj)

Add to Include Path in C++ Builder IDE 
$(VTK_SOURCE)\Common
$(VTK_SOURCE)\Rendering
$(VTK_SOURCE)\Filtering
$(VTK_BIN)
$(VTK_BIN)\Rendeing;

Make Project

Component->Install Packages Add vtkBorlandRenderWindowPkg.bpl
-- 
View this message in context: http://old.nabble.com/Building-VTK-5.6.0-with-bcc32-5.9.3-%28C%2B%2B-Builder-2009%29-tp28583564p28583564.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list