[vtkusers] CMake generates too long commands for Win7X64 RAD Studio XE4

Bo Berglund bo.berglund at gmail.com
Mon Aug 5 08:29:13 EDT 2013


After fiddling with the options in CMake I got my VTK 5.0.2 build to
proceed a lot longer, but now I hit across a roadblock where the
generated command line is too long.....

[ 24%] Building CXX object
Filtering/CMakeFiles/vtkFiltering.dir/vtkFilteringInstantiator.obj
        cd C:\Engineering\VTKBIN5.0.2\Filtering
        C:\Programs\EMBARC~1\RADSTU~1\11.0\bin\bcc32.exe -tR
-DVTK_IN_VTK -DWIN32
-oCMakeFiles\vtkFiltering.dir\vtkFilteringInstantiator.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\VTKBIN5.0.2\Filtering\vtkFilteringInstantiator.cxxEmbarcadero
C++ 6.60 for Win32 Copyright (c) 1993-2013 Embarcadero Technologies,
Inc.
C:\Engineering\VTKBIN5.0.2\Filtering\vtkFilteringInstantiator.cxx:
        cd C:\Engineering\VTKBIN5.0.2
Linking CXX static library ..\bin\vtkFiltering.lib
        cd C:\Engineering\VTKBIN5.0.2\Filtering
        C:\Programs\CMake\bin\cmake.exe -P
CMakeFiles\vtkFiltering.dir\cmake_clean_target.cmake
        cd C:\Engineering\VTKBIN5.0.2
        cd C:\Engineering\VTKBIN5.0.2\Filtering
        tlib /p512 /a "..\bin\vtkFiltering.lib"
"CMakeFiles\vtkFiltering.dir\vtkAbstractMapper.obj"
"CMakeFiles\vtkFiltering.dir\vtkActor2D.obj"
"CMakeFiles\vtkFiltering.dir\vtkActor2DCollection.obj"
"CMakeFiles\vtkFiltering.dir\vtkAlgorithm.obj"
"CMakeFiles\vtkFiltering.dir\vtkAlgorithmOutput.obj"
"CMakeFiles\vtkFiltering.dir\vtkCachedStreamingDemandDrivenPipeline.obj"
"CMakeFiles\vtkFiltering.dir\vtkCardinalSpline.obj"
"CMakeFiles\vtkFiltering.dir\vtkCastToConcrete.o

...... about 80 more lines each length 121 char ......

vtkWedge.obj"  "CMakeFiles\vtkFiltering.dir\vtkViewport.obj"
"CMakeFiles\vtkFiltering.dir\vtkGenericInterpolatedVelocit
yField.obj"
"CMakeFiles\vtkFiltering.dir\vtkFilteringInstantiator.obj"
Fatal: Command arguments too long

I have tried to check the command line length and it is about 10k.

As far as I know there is a limit to the size of the command line in
Windows7 of more than 30k so why did the tlib command above fail?


-- 
Bo Berglund
Developer in Sweden




More information about the vtkusers mailing list