[vtkusers] Building VTK in HP UX
William A. Hoffman
billlist at nycap.rr.com
Fri Jul 25 10:32:29 EDT 2003
Try turning this off:
VTK_USE_ANSI_STDLIB
-Bill
At 09:45 AM 7/25/2003, R K Shyamprakash wrote:
>Hello,
> I am using Cmake 1.6.7. I used the binary provided for HP Ux from Cmake.org
>
>Thanks
>Shyam
>
>-----Original Message-----
>From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of
>William A. Hoffman
>Sent: Friday, July 25, 2003 6:49 PM
>To: R K Shyamprakash
>Cc: vtkusers at vtk.org
>Subject: Re: [vtkusers] Building VTK in HP UX
>
>
>What version of CMake are you using?
>
>-Bill
>
>
>At 01:18 AM 7/25/2003, R K Shyamprakash wrote:
>>William/Users,
>> I tried to build VTK 4.2.0 on HP UX 11.0 with HP
>compiler. I got the
>>following error
>>
>>make.depends is up-to-date
>>/usr/VTK-Binary/Wrapping: building default_target
>>/usr/VTK-Binary/Utilities: building default_target
>>cmake.depends is up-to-date
>>/usr/VTK-Binary/Utilities/zlib: building default_target
>>/usr/VTK-Binary/Utilities/jpeg: building default_target
>>/usr/VTK-Binary/Utilities/png: building default_target
>>/usr/VTK-Binary/Utilities/tiff: building default_target
>>Building dependencies cmake.check_depends...
>>/usr/VTK-Binary/Utilities/expat: building default_target
>>/usr/VTK-Binary/Utilities/Doxygen: building default_target
>>cmake.depends is up-to-date
>>/usr/VTK-Binary/Utilities/freetype: building default_target
>>/usr/VTK-Binary/Utilities/ftgl: building default_target
>>/usr/VTK-Binary/Common: building default_target
>>Building object file vtkAbstractMapper.o...
>>Error 112: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 30 # Include file
>> <iostream> not found.
>> # include <iostream> // Include real ansi istream and ostream.
>> ^^^^^^^^^^
>>Error 112: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 31 # Include file
>> <strstream> not found.
>> # include <strstream> // Include real ansi strstreams.
>> ^^^^^^^^^^^
>>Error 112: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 32 # Include file
>> <fstream> not found.
>> # include <fstream> // Include real ansi ifstream and ofstream.
>> ^^^^^^^^^
>>Error 112: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 33 # Include file
>> <iomanip> not found.
>> # include <iomanip> // Include real ansi io manipulators.
>> ^^^^^^^^^
>>Error 19: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 37 # Unexpected
>'std'.
>> using std::dec;
>> ^^^
>>Error 118: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 28 # Unmatched
>> conditional compilation directive (No '#endif' before end of input).
>> #ifdef VTK_USE_ANSI_STDLIB
>> ^^^^^
>>Error 484: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 37 # Global object
>> '::dec' not found.
>> using std::dec;
>> ^^^
>>Error 19: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 38 # Unexpected
>'std'.
>> using std::hex;
>> ^^^
>>Error 484: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 38 # Global object
>> '::hex' not found.
>> using std::hex;
>> ^^^
>>Error 19: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 39 # Unexpected
>'std'.
>> using std::setw;
>> ^^^
>>Error 484: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 39 # Global object
>> '::setw' not found.
>> using std::setw;
>> ^^^^
>>Error 19: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 40 # Unexpected
>'std'.
>> using std::cerr;
>> ^^^
>>Error 699: "/usr/VTK-4.2.0/Common/vtkIOStream.h", line 40 # Error limit
>> reached; halting compilation.
>> using std::cerr;
>> ^^^
>>gmake[3]: *** [vtkAbstractMapper.o] Error 2
>>gmake[2]: *** [default_target] Error 2
>>gmake[1]: *** [default_target_Common] Error 2
>>gmake: *** [default_target] Error 2
>>
>>
>>
>>I also tried with gnu c3.2 with java wrappers on and got the following
>error
>>
>>Building object file vtkJavaUtil.o...
>>In file included from /usr/local/include/c++/3.2/backward/strstream:51,
>> from /usr/VTK-4.2.0/Common/vtkIOStream.h:31,
>> from /usr/VTK-4.2.0/Common/vtkSystemIncludes.h:49,
>> from /usr/VTK-4.2.0/Common/vtkIndent.h:27,
>> from /usr/VTK-4.2.0/Common/vtkObjectBase.h:46,
>> from /usr/VTK-4.2.0/Common/vtkObject.h:44,
>> from /usr/VTK-4.2.0/Common/vtkJavaUtil.cxx:29:
>>/usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning:
>>#warning T
>>his 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. Examp
>>les include substituting the <X> header for the <X.h> header for C++
>>includes, o
>>r <sstream> instead of the deprecated header <strstream.h>. To disable
>>this warn
>>ing use -Wno-deprecated.
>>/usr/VTK-4.2.0/Common/vtkJavaUtil.cxx:74:20: thread.h: No such file or
>>directory
>>/usr/VTK-4.2.0/Common/vtkJavaUtil.cxx:76: 'mutex_t' is used as a type,
>>but is
>> not defined as a type.
>>/usr/VTK-4.2.0/Common/vtkJavaUtil.cxx: In function `void
>> vtkJavaRegisterCastFunction(JNIEnv*, _jobject*, int, void*)':
>>/usr/VTK-4.2.0/Common/vtkJavaUtil.cxx:234: `vtkGlobalMutex' undeclared
>>(first
>> use this function)
>>/usr/VTK-4.2.0/Common/vtkJavaUtil.cxx:234: (Each undeclared identifier is
>> reported only once for each function it appears in.)
>>/usr/VTK-4.2.0/Common/vtkJavaUtil.cxx:234: `mutex_lock' undeclared
>>(first use
>> this function)
>>/usr/VTK-4.2.0/Common/vtkJavaUtil.cxx:241: `mutex_unlock' undeclared
>>(first use
>> this function)
>>gmake[3]: *** [vtkJavaUtil.o] Error 1
>>gmake[2]: *** [default_target] Error 2
>>gmake[1]: *** [default_target_Common] Error 2
>>gmake: *** [default_target] Error 2
>>
>>
>>Building VTk on HP UX is very critical for the project I am working on. Can
>>you please help in analyzing the error.
>>
>>Thanks
>>Shyam
>>
>>_______________________________________________
>>This is the private VTK discussion list.
>>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>>Follow this link to subscribe/unsubscribe:
>>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list