Installation of OpenFOAM 1.7.0 on SLED10SP2
Hello guys,
I am trying to install OpenFOAM 1.7.0 on SuSE Linux Enterprise Desktop 10SP3. I already managed to completely run Allwmake in OpenFOAM-1.7.0 directory after adding gcc-4.3 to my installation. But now comes the next challenge: compiling Paraview 3.8. As stated in installation instructions you need at least qt4.5 so I decided to compile qt4.6.3 available from Nokia (qt.nokia.com). Now makeParaview can be run but ends up with Linking CXX executable ../../../../bin/GraphicsCxxTests cd /home/OpenFOAM/ThirdParty-1.7.0/platforms/build-linux64Gcc/paraview-3.8.0/VTK/Graphics/Testing/Cxx && /usr/bin/cmake -E cmake_link_script CMakeFiles/GraphicsCxxTests.dir/link.txt --verbose=1 /usr/bin/c++ -Wno-deprecated -Wno-deprecated -O3 -DNDEBUG -fPIC CMakeFiles/GraphicsCxxTests.dir/GraphicsCxxTests.cxx.o CMakeFiles/GraphicsCxxTests.dir/Mace.cxx.o CMakeFiles/GraphicsCxxTests.dir/expCos.cxx.o CMakeFiles/GraphicsCx xTests.dir/BoxClipTriangulate.cxx.o CMakeFiles/GraphicsCxxTests.dir/CellLocator.cxx.o CMakeFiles/GraphicsCxxTests.dir/PointLocator.cxx.o CMakeFiles/GraphicsCxxTests.dir/FrustumClip.cxx.o CMakeFiles/GraphicsCxxTests.dir/RGrid.cxx.o CMak eFiles/GraphicsCxxTests.dir/TestAppendSelection.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestAssignAttribute.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestBSPTree.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestDensifyPolyData.cxx.o CMakeFiles/Grap hicsCxxTests.dir/TestClipHyperOctree.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestConvertSelection.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestDelaunay2D.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestExtraction.cxx.o CMakeFiles/GraphicsCxxTests .dir/TestExtractSelection.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestHyperOctreeContourFilter.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestHyperOctreeCutter.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestHyperOctreeDual.cxx.o CMakeFiles/Graphic sCxxTests.dir/TestHyperOctreeSurfaceFilter.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestHyperOctreeToUniformGrid.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestPolyDataPointSampler.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestSelectEnclosedPoints .cxx.o CMakeFiles/GraphicsCxxTests.dir/TestTessellatedBoxSource.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestTessellator.cxx.o CMakeFiles/GraphicsCxxTests.dir/TestUncertaintyTubeFilter.cxx.o -o ../../../../bin/GraphicsCxxTests -rdynamic ../../../../bin/libvtkRendering.so.pv3.8 ../../../../bin/libvtkIO.so.pv3.8 ../../../../bin/libvtkParallel.so.pv3.8 -lGL ../../../../bin/libvtkRendering.so.pv3.8 ../../../../bin/libvtkGraphics.so.pv3.8 ../../../../bin/libvtkImaging.so.p v3.8 ../../../../bin/libvtkIO.so.pv3.8 ../../../../bin/libvtkFiltering.so.pv3.8 ../../../../bin/libvtkCommon.so.pv3.8 -lm ../../../../bin/libvtksys.so.pv3.8 -ldl -Wl,-rpath-link,/home/OpenFOAM/ThirdParty-1.7.0/platforms/build -linux64Gcc/paraview-3.8.0/bin ../../../../bin/libvtkRendering.so.pv3.8: undefined reference to `QPainter::drawImage(QPointF const&, QImage const&)' ../../../../bin/libvtkRendering.so.pv3.8: undefined reference to `QTextDocument::setDocumentMargin(double)' ../../../../bin/libvtkRendering.so.pv3.8: undefined reference to `QMapData::node_create(QMapData::Node**, int, int)' ../../../../bin/libvtkRendering.so.pv3.8: undefined reference to `QMapData::createData(int)' collect2: ld returned 1 exit status make[2]: *** [bin/GraphicsCxxTests] Error 1 make[2]: Leaving directory `/home/OpenFOAM/ThirdParty-1.7.0/platforms/build-linux64Gcc/paraview-3.8.0' make[1]: *** [VTK/Graphics/Testing/Cxx/CMakeFiles/GraphicsCxxTests.dir/all] Error 2 make[1]: Leaving directory `/home/OpenFOAM/ThirdParty-1.7.0/platforms/build-linux64Gcc/paraview-3.8.0' make: *** [all] Error 2 Any ideas how to continue or what is the problem. Thanks for any help Oliver |
Hi Oliver,
Are you 100% certain that Qt 4.6.3 was properly built? And is it installed in your system or did you install it in the ThirdParty folder? Either way, there should be an error that must have happened a lot sooner when building ParaView. And I think that pertinent error is related to a missing library or headers of X11 stuff. For example, in Ubuntu, we need to install libXt.so and libXt-dev for building ParaView or Qt, I can't be certain right now :( Anyhow, you can take a look at the following post that as a few suggestions on where to get information on how to build ParaView for using OpenFOAM: http://www.cfd-online.com/Forums/ope...tml#post265046 Best regards, Bruno |
Hi Bruno,
thank you for your quick response. Your answer points into the right direction. If I add -Wl,-rpath-link,/usr/local/Trolltech/Qt-4.6.3/lib everything is fine. Perhaps I have to modify LD_LIBRARY_PATH Thanks again Oliver |
All times are GMT -4. The time now is 16:04. |