[vtkusers] Building Paraview on AIX
Rich Cook
rcook at llnl.gov
Mon Nov 10 13:17:33 EST 2008
Hello,
Help! I'm stuck!
In 2006 I was able through a process of blood sweat and tears, with
much help from the kind people at Kitware, to get a build of Paraview
working on our "big iron" AIX machine (IBM PPC AIX 5). I'm taking
another whack at it with a newer version and am hitting a new set of
difficulties.
Building things on AIX is the biggest pain on the planet, and
Paraview is definitely no exception. Even CMake is weird on AIX,
which I find to be ironic considering what CMake is supposed to be
about. :-) Luckily I know some of AIX's evil ways, and I'm on the job.
In the CMake tool, I set all the CFLAGS to -qlanglvl=extended -
qcpluscmt. This makes up for the anal retentiveness of xlC and its
insistence on strict C comments, intentional filtering of modern C
style, etc.
I set the ldflags to -brtl -bnortllib -bautoexp -bM:SRE. I don't
even know why I do this any more, but it seems to be a good thing
with xlC. Check the man pages if you are curious.
Even with this setup, I got a cryptic error about not being able to
find poe_remote_main, so I then edited CMake/ParaViewCommon.cmake
line 247 to basically disable it, changing it from :
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -
binitfini:poe_remote_main")
to
SET(xxCMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -
xxbinitfini:poe_remote_main")
Oh, joy! I actually got a long way into it this way, but alas, make
ultimately fails here:
cd /usr/global/tools/Kitware/Paraview/3.4.0/aix_5_64_fed/VTK/
GUISupport/Qt/Testing/Cxx && /usr/global/tools/Kitware/CMake/2.6.2/
aix_5_64_fed/bin/cmake -E cmake_link_script CMakeFiles/
QVTKCxxTests.dir/link.txt --verbose=1
/usr/local/bin/xlC -qlanglvl=extended -qcpluscmt -qrtti=all -
brtl -bnortllib -bautoexp -bM:SRE -bhalt:5 CMakeFiles/
QVTKCxxTests.dir/QVTKCxxTests.o CMakeFiles/QVTKCxxTests.dir/
TestQtInitialization.o CMakeFiles/QVTKCxxTests.dir/
TestQtSQLDatabase.o CMakeFiles/QVTKCxxTests.dir/
TestQtTableModelAdapter.o CMakeFiles/QVTKCxxTests.dir/
TestQtTreeModelAdapter.o -o ../../../../../bin/QVTKCxxTests -Wl,-
brtl,-bnoipath,-bexpall ../../../../../bin/libQVTK.a /usr/mic/dvsviz/
Trolltech/Qt-4.4.3/aix_5_64_fed/lib/libQtGui.a /lib/libpng.a /lib/
libXi.a /lib/libfreetype.a /lib/libfontconfig.a /lib/libm.a /usr/mic/
dvsviz/Trolltech/Qt-4.4.3/aix_5_64_fed/lib/libQtSql.a /usr/mic/dvsviz/
Trolltech/Qt-4.4.3/aix_5_64_fed/lib/libQtCore.a /lib/libz.a /lib/
librt.a -lpthreads -ldl ../../../../../bin/
libvtkViews.a ../../../../../bin/libvtkInfovis.a ../../../../../bin/
libvtkWidgets.a ../../../../../bin/libvtkHybrid.a ../../../../../bin/
libvtkParallel.a ../../../../../bin/libvtkRendering.a ../../../../../
bin/libvtkGraphics.a ../../../../../bin/
libvtkverdict.a ../../../../../bin/libvtkImaging.a ../../../../../bin/
libvtkftgl.a ../../../../../bin/libvtkfreetype.a /lib/libGL.a /lib/
libXt.a /lib/libSM.a /lib/libICE.a /lib/libXext.a /lib/
libX11.a ../../../../../bin/libvtkIO.a ../../../../../bin/
libvtkFiltering.a ../../../../../bin/libvtkCommon.a -
lm ../../../../../bin/libvtkDICOMParser.a ../../../../../bin/
libvtkmetaio.a ../../../../../bin/libvtksys.a ../../../../../bin/
libvtksqlite.a ../../../../../bin/libvtkpng.a ../../../../../bin/
libvtktiff.a ../../../../../bin/libvtkjpeg.a ../../../../../bin/
libvtkexpat.a ../../../../../bin/libvtkexoIIc.a ../../../../../bin/
libvtkNetCDF.a ../../../../../bin/libvtklibxml2.a ../../../../../bin/
libvtkzlib.a -ldl -lhistory -lreadline -lpthread -lld -lm -Wl,-
blibpath:/usr/lib:/lib
ld: 0711-317 ERROR: Undefined symbol:
vtkRenderWindowInteractor::PrintSelf
(std::basic_ostream<char,std::char_traits<char> >&,vtkIndent)
ld: 0711-317 ERROR: Undefined symbol: vtkObjectBase::PrintHeader
(std::basic_ostream<char,std::char_traits<char> >&,vtkIndent)
ld: 0711-317 ERROR: Undefined symbol: vtkObjectBase::PrintTrailer
(std::basic_ostream<char,std::char_traits<char> >&,vtkIndent)
ld: 0711-317 ERROR: Undefined symbol:
vtkRenderWindowInteractor::CollectRevisions
(std::basic_ostream<char,std::char_traits<char> >&)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: The error code from the last command is 8.
Stop.
make: The error code from the last command is 2.
Stop.
make: The error code from the last command is 2.
Stop.
--
✐Richard Cook
✇ Lawrence Livermore National Laboratory
Bldg-453 Rm-4024, Mail Stop L-557
7000 East Avenue, Livermore, CA, 94550, USA
☎ (office) (925) 423-9605
☎ (fax) (925) 423-6961
---
Information Management & Graphics Grp., Services & Development Div.,
Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)
More information about the vtkusers
mailing list