[vtkusers] Can VTK be used with Codegear XE4 compilers???

Bo Berglund bo.berglund at gmail.com
Tue Aug 6 00:48:56 EDT 2013


On Mon, 05 Aug 2013 11:21:31 +0200, Bo Berglund
<bo.berglund at gmail.com> wrote:

>On Fri, 2 Aug 2013 14:26:57 -0600, David Gobbi <david.gobbi at gmail.com>
>wrote:
>
>>If that allows you to build VTK, then you can share the fix with the
>>CMake developers.
>>
>
>I have struggled alone in the absence of any advice from the VTK
>community and the finding so far is this:
>In order to get CMAke to run without generating errors on the test
>phase I had to modify the two cfg files in the RAD Studio XE4 bin
>directory:
>
>bcc32.cfg and ilink32.cfg
>
>I cleared the files from thedfaults by Embaradero and added commands
>to point to the actual include dirs for compile and link after
>searching for the files reported as missing.
>
>Then I got through to the CMake generate step but when I then tried
>make in the VTKBIN dir errors started popping up again, complaining
>aaaaaaout missing files. I searched for them and added the respective
>directories to the two files above.
>
>The current situation is that my cfg files now look as follows
>(beware of newsreader line wrapping, there are two lines in bcc32.cfg)
>
>bcc32.cfg:
>-I"C:\Programs\Embarcadero\RAD
>Studio\11.0\include\windows\sdk";"C:\Programs\Embarcadero\RAD
>Studio\11.0\include\windows\crtl";"C:\Programs\Embarcadero\RAD
>Studio\11.0\include\dinkumware"
>-L"C:\Programs\Embarcadero\RAD Studio\11.0\lib\win32\release"
>
>ilink32.cfg:
>-L"C:\Programs\Embarcadero\RAD Studio\11.0\lib\win32\release"
>
>With this in place make proceeds through a small number of files
>before throwing the following error:
>
>[  0%] Building CXX object
>Utilities/kwsys/CMakeFiles/vtksys.dir/Directory.obj
>	cd C:\Engineering\VTKBIN5.0.2\Utilities\kwsys
>	C:\Programs\EMBARC~1\RADSTU~1\11.0\bin\bcc32.exe -tR
>-DKWSYS_NAMESPACE=vtksys -DVTK_IN_VTK -DWIN32
>-oCMakeFiles\vtksys.dir\Directory.obj -tM -O2 -DNDEBUG
>-IC:\Engineering\VTKBIN5.0.2 -IC:\Engineering\VTKBIN5.0.2\Utilities
>-IC:\Engineering\VTKBIN5.0.2\VolumeRendering
>-IC:\Engineering\VTKBIN5.0.2\Rendering
>-IC:\Engineering\VTK5.0.2\VolumeRendering
>-IC:\Engineering\VTK5.0.2\Hybrid -IC:\Engineering\VTK5.0.2\Widgets
>-IC:\Engineering\VTK5.0.2\Rendering
>-IC:\Engineering\VTK5.0.2\Rendering\Testing\Cxx
>-IC:\Engineering\VTK5.0.2\IO -IC:\Engineering\VTK5.0.2\Imaging
>-IC:\Engineering\VTK5.0.2\Graphics
>-IC:\Engineering\VTK5.0.2\GenericFiltering
>-IC:\Engineering\VTK5.0.2\Filtering -IC:\Engineering\VTK5.0.2\Common
>-IC:\Engineering\VTK5.0.2\Utilities
>-IC:\Engineering\VTK5.0.2\Common\Testing\Cxx
>-IC:\Engineering\VTKBIN5.0.2\Utilities\DICOMParser
>-IC:\Engineering\VTK5.0.2\Utilities\DICOMParser
>-IC:\Engineering\VTKBIN5.0.2\Utilities\vtkfreetype\include
>-IC:\Engineering\VTK5.0.2\Utilities\vtkfreetype\include
>-IC:\Engineering\VTKBIN5.0.2\Utilities\vtknetcdf
>-IC:\Engineering\VTK5.0.2\Utilities\vtknetcdf
>-IC:\Engineering\VTKBIN5.0.2\Utilities\vtkexodus2\include
>-IC:\Engineering\VTK5.0.2\Utilities\vtkexodus2\include
>-IC:\Engineering\VTKBIN5.0.2\Utilities\vtkfreetype
>-IC:\Engineering\VTK5.0.2\Utilities\ftgl\src
>-IC:\Engineering\VTKBIN5.0.2\Utilities\ftgl -P -c
>C:\Engineering\VTK5.0.2\Utilities\kwsys\Directory.cxx
>Embarcadero C++ 6.60 for Win32 Copyright (c) 1993-2013 Embarcadero
>Technologies, Inc.
>C:\Engineering\VTK5.0.2\Utilities\kwsys\Directory.cxx:
>Error E2316 C:\Engineering\VTKBIN5.0.2\Utilities\vtksys/stl/string.hxx
>46: 'eatwhite' is not a member of 'istream' in function >>(istream
>&,string &)
>*** 1 errors in Compile ***
>
>Now I seem to be out of the compiler realm and back in the VTK sources
>complaining about "eatwhite", whatever that may be.....
>
>Any ideas now that I am down into VTK files (release 5.0.2)???

Just to clarify:
I use 5.0.2 because the final result must go into a C++ application
thta was last built using VTK 5.0.2 and BDS2006 C++Builder. Trying to
port it to RAD Studio XE4 without any other changes.

But in order to see if a later version would be "better" build-wise I
have also used release 5.10.1 (latest on the 5 level) and this does
not choke on "eatwhite", in fact it continues for some time before it
also hits a roadblock on Undefined structure '_stati64' :

  [  3%] Building C object
Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5FDcore.c.obj
  cd C:\Engineering\VTKBIN5.10.1\Utilities\vtkhdf5\src
  C:\Programs\EMBARC~1\RADSTU~1\11.0\bin\bcc32.exe -tR
-DBIND_TO_CURRENT_VCLIBS_VERSION=1 -DNDEBUG -DVTK_IN_VTK
-D_CRT_SECURE_NO_WARNINGS -DWIN32
-oCMakeFiles\vtkhdf5.dir\H5FDcore.c.obj -tM -w- -O2 -DNDEBUG
-IC:\Engineering\VTKBIN5.10.1 -IC:\Engineering\VTKBIN5.10.1\Common
-IC:\Engineering\VTKBIN5.10.1\Utilities
-IC:\Engineering\VTKBIN5.10.1\VolumeRendering
-IC:\Engineering\VTKBIN5.10.1\Rendering
-IC:\Engineering\VTKBIN5.10.1\Charts
-IC:\Engineering\VTKBIN5.10.1\Chemistry
-IC:\Engineering\VTKBIN5.10.1\Utilities\vtkalglib
-IC:\Engineering\VTK5.10.1\Infovis -IC:\Engineering\VTK5.10.1\Geovis
-IC:\Engineering\VTK5.10.1\Views
-IC:\Engineering\VTK5.10.1\VolumeRendering
-IC:\Engineering\VTK5.10.1\Hybrid -IC:\Engineering\VTK5.10.1\Widgets
-IC:\Engineering\VTK5.10.1\Rendering -IC:\Engineering\VTK5.10.1\Charts
-IC:\Engineering\VTK5.10.1\Chemistry
-IC:\Engineering\VTK5.10.1\Rendering\Testing\Cxx
-IC:\Engineering\VTK5.10.1\IO -IC:\Engineering\VTK5.10.1\Imaging
-IC:\Engineering\VTK5.10.1\Graphics
-IC:\Engineering\VTK5.10.1\GenericFiltering
-IC:\Engineering\VTK5.10.1\Filtering -IC:\Engineering\VTK5.10.1\Common
-IC:\Engineering\VTK5.10.1\Utilities
-IC:\Engineering\VTK5.10.1\Common\Testing\Cxx
-IC:\Engineering\VTKBIN5.10.1\Utilities\vtknetcdf
-IC:\Engineering\VTK5.10.1\Utilities\vtknetcdf
-IC:\Engineering\VTK5.10.1\Utilities\vtknetcdf\include
-IC:\Engineering\VTKBIN5.10.1\Utilities\vtklibproj4
-IC:\Engineering\VTK5.10.1\Utilities\vtklibproj4
-IC:\Engineering\VTKBIN5.10.1\Utilities\DICOMParser
-IC:\Engineering\VTK5.10.1\Utilities\DICOMParser
-IC:\Engineering\VTKBIN5.10.1\Utilities\vtkfreetype\include
-IC:\Engineering\VTK5.10.1\Utilities\vtkfreetype\include
-IC:\Engineering\VTKBIN5.10.1\Utilities\LSDyna
-IC:\Engineering\VTK5.10.1\Utilities\LSDyna
-IC:\Engineering\VTKBIN5.10.1\Utilities\MaterialLibrary
-IC:\Engineering\VTK5.10.1\Utilities\MaterialLibrary
-IC:\Engineering\VTKBIN5.10.1\Utilities\vtkmetaio
-IC:\Engineering\VTK5.10.1\Utilities\vtkmetaio
-IC:\Engineering\VTKBIN5.10.1\Utilities\verdict
-IC:\Engineering\VTK5.10.1\Utilities\verdict
-IC:\Engineering\VTKBIN5.10.1\Utilities\vtkhdf5
-IC:\Engineering\VTK5.10.1\Utilities\vtkhdf5
-IC:\Engineering\VTKBIN5.10.1\Utilities\vtkhdf5\src
-IC:\Engineering\VTK5.10.1\Utilities\vtkhdf5\src
-IC:\Engineering\VTKBIN5.10.1\Utilities\vtkhdf5\hl\src
-IC:\Engineering\VTK5.10.1\Utilities\vtkhdf5\hl\src
-IC:\Engineering\VTK5.10.1\Utilities\utf8\source
-IC:\Engineering\VTK5.10.1\Utilities\vtkalglib
-IC:\Engineering\VTK5.10.1\Utilities\ftgl\src
-IC:\Engineering\VTKBIN5.10.1\Utilities\ftgl -UH5_DEBUG_API -c
C:\Engineering\VTK5.10.1\Utilities\vtkhdf5\src\H5FDcore.c
  Embarcadero C++ 6.60 for Win32 Copyright (c) 1993-2013 Embarcadero
Technologies, Inc.
  C:\Engineering\VTK5.10.1\Utilities\vtkhdf5\src\H5FDcore.c:
  Error E2450
C:\Engineering\VTK5.10.1\Utilities\vtkhdf5\src\H5FDcore.c 420:
Undefined structure '_stati64' in function H5FD_core_open
  Error E2449
C:\Engineering\VTK5.10.1\Utilities\vtkhdf5\src\H5FDcore.c 420: Size of
'sb' is unknown or zero in function H5FD_core_open
  Error E2451
C:\Engineering\VTK5.10.1\Utilities\vtkhdf5\src\H5FDcore.c 496:
Undefined symbol 'st_size' in function H5FD_core_open
  *** 3 errors in Compile ***

-- 
Bo Berglund
Developer in Sweden




More information about the vtkusers mailing list