[Paraview] CVS Build error

Tom Hosiawa th032@rogers.com
28 Jan 2003 23:02:17 -0500


I'm trying to build Paraview from cvs with cmake 1.6. I'm running Red
Hat 8,  2.4.20 kernel on an AMD Tbird 1GHz.

I had to set the backwards_compatibility to 1.4 because I was getting
this error numerous times:
----------
CMake Error: Error in cmake code at

/home/th032/local/src/paraview/ParaViewComplete/ParaView/KWCommon/CMakeLists.txt:3:
SOURCE_FILES The SOURCE_FILES command was deprecated in CMake version
1.4 and will be removed in later versions of CMake. You should modify
your CMakeLists.txt files to use the SET command instead, or set the
cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.2 or less
----------

and this one aswell:
----------
CMake Error: can not find file
/home/th032/local/src/paraview/ParaViewComplete/ParaView/Widgets/vtktcl

 Tried .cxx .cpp .c .M .m .mm .h .txx .in
----------


I still get another error when backward_compatibility to 1.4 numerous
times, should these really be happening???
----------
he SOURCE_FILES command was deprecated in CMake version 1.4 and will be
removed in later versions. You should modify your CMakeLists.txt files
to use the SET command instead, or set the cache value of
CMAKE_BACKWARDS_COMPATIBILITY to 1.2 or less.
----------


Anyways, I configured it and did make; it goes fine until this point:
----------
Building object file vtkKWUNIXRegisteryUtilities.o...
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
                 from
/home/th032/local/src/paraview/ParaViewComplete/VTK/Common/vtkSystemIncludes.h:68,
                 from
/home/th032/local/src/paraview/ParaViewComplete/VTK/Common/vtkIndent.h:27,
                 from
/home/th032/local/src/paraview/ParaViewComplete/VTK/Common/vtkObjectBase.h:46,
                 from
/home/th032/local/src/paraview/ParaViewComplete/VTK/Common/vtkObject.h:44,
                 from
/home/th032/local/src/paraview/ParaViewComplete/ParaView/KWCommon/vtkKWRegisteryUtilities.h:52,
                 from
/home/th032/local/src/paraview/ParaViewComplete/ParaView/KWCommon/vtkKWUNIXRegisteryUtilities.h:51,
                 from
/home/th032/local/src/paraview/ParaViewComplete/ParaView/KWCommon/vtkKWUNIXRegisteryUtilities.cxx:42:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning
This file includes at least one deprecated or antiquated header. Please
consider using one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X> header for the <X.h>
header for C++ includes, or <sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.
/home/th032/local/src/paraview/ParaViewComplete/ParaView/KWCommon/vtkKWUNIXRegisteryUtilities.cxx: In
   member function `virtual int
vtkKWUNIXRegisteryUtilities::OpenInternal(const
   char*, const char*, int)':
/home/th032/local/src/paraview/ParaViewComplete/ParaView/KWCommon/vtkKWUNIXRegisteryUtilities.cxx:100: `
   nocreate' is not a member of type `std::basic_ios<char,
   std::char_traits<char> >'
make[5]: *** [vtkKWUNIXRegisteryUtilities.o] Error 1
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_KWCommon] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_ParaView] Error 2
make: *** [default_target] Error 2
----------

I took a look into that file and found this, its taking the else part
since I see in my CMakeList file its set to OFF. How do I know if I
should be using VKT_USE_ANSI_STDLIB??? 
---------
#ifdef VTK_USE_ANSI_STDLIB
#define VTK_IOS_NOCREATE
#else
#define VTK_IOS_NOCREATE | ios::nocreate
#endif
--------

Hopefully this all made sense, thanks
	Tom