[vtkusers] vtk-5.10.0 build error : vtkUnicodeCaseFoldData.h incomplete ?

marco atzeri marco.atzeri at gmail.com
Fri Jun 15 04:46:50 EDT 2012


Hi all,
building vtk on cygwin with cmake version 2.8.7

I have a problem with    vtkUnicodeCaseFoldData.h

The build stop here:

---------------------------------------------------------------------
[ 28%] Building CXX object 
Common/CMakeFiles/vtkCommon.dir/vtkUnicodeString.cxx.o
cd /pub/devel/vtk/vtk-5.10.0-1/build/Common && /usr/bin/g++.exe 
-DVTK_IN_VTK -g -O2 -pipe  -Wno-deprecated -O3 -DNDEBUG 
-I/pub/devel/vtk/vtk-5.10.0-1/build 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Common 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities 
-I/pub/devel/vtk/vtk-5.10.0-1/build/VolumeRendering 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Rendering 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Charts 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Chemistry 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/vtkalglib 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Infovis 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Geovis 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Views 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/VolumeRendering 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Hybrid 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Widgets 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Rendering 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Charts 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Chemistry 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Rendering/Testing/Cxx 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/IO 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Imaging 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Graphics 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/GenericFiltering 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Filtering 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Common 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Common/Testing/Cxx 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/vtknetcdf/include 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/vtknetcdf/include 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/vtklibproj4 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/vtklibproj4 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/DICOMParser 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/DICOMParser 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/vtkfreetype/include 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/vtkfreetype/include 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/LSDyna 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/LSDyna 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/MaterialLibrary 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/MaterialLibrary 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/vtkmetaio 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/vtkmetaio 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/verdict 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/verdict 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/vtkhdf5 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/vtkhdf5 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/vtkhdf5/src 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/vtkhdf5/src 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/vtkhdf5/hl/src 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/vtkhdf5/hl/src 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/utf8/source 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/vtkalglib 
-I/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Utilities/ftgl/src 
-I/pub/devel/vtk/vtk-5.10.0-1/build/Utilities/ftgl    -o 
CMakeFiles/vtkCommon.dir/vtkUnicodeString.cxx.o -c 
/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Common/vtkUnicodeString.cxx
/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Common/vtkUnicodeString.cxx: In 
member function ‘vtkUnicodeString vtkUnicodeString::fold_case() const’:
/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Common/vtkUnicodeString.cxx:382:5: 
error: expected primary-expression before ‘for’
/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Common/vtkUnicodeString.cxx:382:5: 
error: expected ‘}’ before ‘for’
/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Common/vtkUnicodeString.cxx:382:5: 
error: expected ‘,’ or ‘;’ before ‘for’
/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Common/vtkUnicodeString.cxx:382:54: 
error: ‘i’ was not declared in this scope
/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Common/vtkUnicodeString.cxx:382:60: 
error: expected ‘;’ before ‘)’ token
/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Common/vtkUnicodeString.cxx:465:1: 
error: expected ‘}’ at end of input
/pub/devel/vtk/vtk-5.10.0-1/src/VTK/Common/vtkUnicodeString.cxx:465:1: 
error: expected ‘}’ at end of input
Common/CMakeFiles/vtkCommon.dir/build.make:3873: recipe for target 
`Common/CMakeFiles/vtkCommon.dir/vtkUnicodeString.cxx.o' failed
make[2]: *** [Common/CMakeFiles/vtkCommon.dir/vtkUnicodeString.cxx.o] 
Error 1
make[2]: Leaving directory `/pub/devel/vtk/vtk-5.10.0-1/build'
--------------------------------------------------------------------------

raw 382 of "vtkUnicodeString.cxx"  is the include

------------------------------------------------
vtkUnicodeString vtkUnicodeString::fold_case() const
{
   typedef std::map<value_type, vtkUnicodeString> map_t;

   static map_t map;
   if(map.empty())
     {
     #include <vtkUnicodeCaseFoldData.h>

     for(value_type* i = &vtkUnicodeCaseFoldData[0]; *i; ++i)
       {
       const value_type code = *i;
       vtkUnicodeString mapping;
       for(++i; *i; ++i)
         {
         mapping.push_back(*i);
         }
       map.insert(std::make_pair(code, mapping));
       }
     }
--------------------------------------------------

But vtkUnicodeCaseFoldData.h seems incomplete:

------------------------------------------------------
// Generated file, do not edit by hand!

static vtkUnicodeString::value_type vtkUnicodeCaseFoldData[] = {
-------------------------------------------------------


How to debug the vtkUnicodeCaseFoldData.h creation from
---------------------------------------------------------------
# Generate data for folding Unicode strings
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/vtkUnicodeString.cmake.in 
${CMAKE_CURRENT_BINARY_DIR}/vtkUnicodeString.cmake @ONLY)

ADD_CUSTOM_COMMAND(
   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/CaseFolding.txt
   DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/vtkUnicodeString.cmake
   COMMAND ${CMAKE_COMMAND} -P 
${CMAKE_CURRENT_BINARY_DIR}/vtkUnicodeString.cmake
   OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/vtkUnicodeCaseFoldData.h
   )
--------------------------------------------------------------

Regards
Marco




More information about the vtkusers mailing list