[Paraview] fixes for AIX 5.1
Rich Cook
rcook at llnl.gov
Fri Feb 3 12:21:32 EST 2006
Sorry for the multiple posts. I haven't had my coffee yet.
The first error I see is:
rcook at up041 (aix_5_64_fed): bin/paraview
ErrorMessage
# Error or warning: ERROR: In /usr/global/tools/Kitware/Paraview/
2.4.2/src/aix_5_64_fed/paraview-2.4.2/GUI/Widgets/
vtkKWTkUtilities.cxx, line 217
vtkPVApplication (110185af0):
Script:
vtkTkRenderWidget .paraview.24.33.36.37.40.161.163.165.168.169.174 -
rw Addr=110469150
Returned Error on line 1:
NULL main window
ERROR: In /usr/global/tools/Kitware/Paraview/2.4.2/src/aix_5_64_fed/
paraview-2.4.2/GUI/Widgets/vtkKWTkUtilities.cxx, line 217
vtkPVApplication (110185af0):
Script:
pack .paraview.24.33.36.37.40.161.163.165.168.169.174 -expand yes -
fill both -side top -anchor nw
Returned Error on line 1:
bad window path name ".paraview.24.33.36.37.40.161.163.165.168.169.174"
ERROR: In /usr/global/tools/Kitware/Paraview/2.4.2/src/aix_5_64_fed/
paraview-2.4.2/GUI/Widgets/vtkKWTkUtilities.cxx, line 217
vtkPVApplication (110185af0):
Script:
focus .paraview.24.33.36.37.40.161.163.165.168.169.174
Returned Error on line 1:
bad window path name ".paraview.24.33.36.37.40.161.163.165.168.169.174"
On Feb 3, 2006, at 9:20 AM, Rich Cook wrote:
> So of course now I get the following error after installing
> paraview. It will not draw into the main window, and spits the
> following out onto stderr:
>
> # Error or warning: There was a VTK Error in file: /usr/global/
> tools/Kitware/Paraview/2.4.2/src/aix_5_64_fed/paraview-2.4.2/GUI/
> Widgets/vtkKWTkUtilities.cxx (217)
> vtkPVApplication (110185af0):
> Script:
> focus .paraview.24.33.36.37.40.161.163.165.168.169.174
> Returned Error on line 1:
> bad window path name ".paraview.
> 24.33.36.37.40.161.163.165.168.169.174"
>
>
> On Feb 3, 2006, at 9:08 AM, Rich Cook wrote:
>
>> I am building Paraview on AIX using xlC.
>> I have noticed I needed to make some changes to make it work. I
>> am not sure to whom I should submit this kind of thing. ? Thanks.
>>
>> On AIX I ran into some issues. g++ appears to expect ISO C++, so
>> I get:
>> /usr/X11R6/include/X11/Xutil.h:380: error: ISO C++ forbids
>> declaration of `XClipBox' with no type
>> What flag gets around this? There's no gcc man page on our AIX
>> system, so I try xlc and xlC. Ironically, I found that on AIX,
>> ccmake gets confused easily, so moved away gcc build and source
>> directories first.
>>
>> CC=xlc CXX=xlC LD=xlC /usr/global/tools/Kitware/CMake/latest/
>> $SYS_TYPE/bin/ccmake /usr/global/tools/Kitware/Paraview/2.4.2/src/
>> $SYS_TYPE/paraview-2.4.2
>>
>> I get the following error :
>> "/usr/global/tools/Kitware/Paraview/2.4.2/src/aix_5_64_fed/
>> paraview-2.4.2/VTK/Common/Testing/Cxx/TestSmartPointer.cxx", line 5
>> 2.7: 1540-0219 (S) The call to "operator==" has no best match.
>>
>> Fixed by commenting out lines 52-57 in TestSmartPointer.cxx
>> Keep your fingers crossed! :-) The real fix would be to cast the
>> 0 to a SmartPointer, but perhaps that was the whole point of the
>> test. Oh, well.
>>
>> Then I get another error:
>> "/usr/global/tools/Kitware/Paraview/2.4.2/src/aix_5_64_fed/
>> paraview-2.4.2/GUI/Widgets/vtkKWParameterValueFunctionEditor.h",
>> line 46.7: 1540-0400 (S) "class ostrstream" has a conflicting
>> declaration.
>>
>> Fix: comment out line 55 in vtkKWParameterValueFunctionEditor.h:
>> //BTX
>> //class ostrstream;
>> //ETX
>> and add the following to the top of it:
>> # include <strstream> // Include real ansi strstreams.
>> using std::strstream;
>> virtual void RedrawPoint(int id, ostrstream *tk_cmd = 0);
>>
>> Onward, ho! Next problem:
>> "/usr/global/tools/Kitware/Paraview/2.4.2/src/aix_5_64_fed/
>> paraview-2.4.2/GUI/Widgets/vtkKWSpinBox.h", line 70.16: 1540-2606
>> (W) "restrict" can only qualify a pointer or reference type. The
>> "restrict" keyword is ignored.
>> "/usr/global/tools/Kitware/Paraview/2.4.2/src/aix_5_64_fed/
>> paraview-2.4.2/GUI/Widgets/vtkKWSpinBox.cxx", line 97.6: 1540-2606
>> (W) "restrict" can only qualify a pointer or reference type. The
>> "restrict" keyword is ignored.
>> "/usr/global/tools/Kitware/Paraview/2.4.2/src/aix_5_64_fed/
>> paraview-2.4.2/GUI/Widgets/vtkKWSpinBox.cxx", line 99.15:
>> 1540-0063 (S) The text ")" is unexpected.
>> gmake[2]: *** [GUI/Widgets/CMakeFiles/KWWidgets.dir/
>> vtkKWSpinBox.o] Error 1
>> gmake[1]: *** [GUI/Widgets/CMakeFiles/KWWidgets.dir/all] Error 2
>> gmake: *** [all] Error 2
>>
>> Fix: use irestrict instead of restrict for parameter name to
>> function -- restrict is a C++ keyword, I guess.
>>
>> Then:
>> "/usr/global/tools/Kitware/Paraview/2.4.2/src/aix_5_64_fed/
>> paraview-2.4.2/GUI/Widgets/Utilities/tkcon/
>> vtkKWTkconTclLibrary.h", line 9.3: 1540-0872 (S) A string literal
>> cannot be longer than 32765 characters.
>>
>> Fix: broke the string into 5 parts and made declarations to be:
>> static const unsigned char *file_tkcon_tcl_sections[5] = {
>> file_tkcon_tcl_section_1,
>> file_tkcon_tcl_section_5,
>> file_tkcon_tcl_section_3,
>> file_tkcon_tcl_section_4,
>> file_tkcon_tcl_section_2
>> };
>> and
>> static const unsigned int file_tkcon_tcl_nb_sections = 5;
>>
>> Similarly with this error:
>> "/usr/global/tools/Kitware/Paraview/2.4.2/src/aix_5_64_fed/
>> paraview-2.4.2/GUI/Client/Resources/vtkPVSplashScreen.h", line
>> 12.3: 1540-0872 (S) A string literal cannot be longer than 32765
>> characters.
>> Divide into sections, etc.
>>
>> Build completed and paraview is now installed as of 2/3/06
>>
>> --
>> "There's no time to stop for gas, we're already late"-- Karin Donker
>> --
>> Rich "wealthychef" Cook
>> <http://www.pleasantonplayhouse.com/byebyebirdie/>
>> 925-784-3077
>> --
>>
>>
>>
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
>
> --
> "There's no time to stop for gas, we're already late"-- Karin Donker
> --
> Rich "wealthychef" Cook
> <http://www.pleasantonplayhouse.com/byebyebirdie/>
> 925-784-3077
> --
>
>
>
--
"There's no time to stop for gas, we're already late"-- Karin Donker
--
Rich "wealthychef" Cook
<http://www.pleasantonplayhouse.com/byebyebirdie/>
925-784-3077
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20060203/e5ef0271/attachment-0001.html
More information about the ParaView
mailing list