OpenFOAM 2.0.1-foamInstallationTest Failed on Fedora 15 x64
Hi!
I'm a newcomer to OpenFOAM, and when I tried to compile OpenFOAM 2.0.1, everything seemed to be fine except... WARNING: Conflicting installations: OpenFOAM settings : /home/mirage/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/bin/icoFoam current path : CRITICAL ERROR Summary ------------------------------------------------------------------------------- Base configuration ok. The foam installation contains 1 critical error(s). Can somebody tell me what am I doing wrong? Thank you. |
Greetings Winston and welcome to the forum!
You can check this post: Fedora 15 install help post #4 - it's a bit old, since those instructions were for OpenFOAM 1.7.x, but they are easily adaptable to 2.0.1 and/or 2.0.x. But what you probably need to know from that post is this:
Bruno |
Quote:
Thank you!Dealing with my headache and had no access to cfd-online. Sorry for absent>< I compiled OpenFOAM successfully but when I run paraFoam, it seemed there are some problems... FATAL ERROR: ParaView reader module libraries do not exist Please build the reader module before continuing: cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers ./Allwclean ./Allwmake I did as the instruction above and it still didn't work! Then I tried to compile the paraView module by ./makeParaView, and [ 7%] Building CXX object VTK/Utilities/vtkmetaio/CMakeFiles/vtkmetaio.dir/metaUtils.cxx.o /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx: In function 'bool vtkmetaio::MET_StringToWordArray(const char*, int*, char***)': /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:804:3: error: 'ptrdiff_t' was not declared in this scope /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:804:3: note: suggested alternatives: /usr/lib/gcc/x86_64-redhat-linux/4.6.0/../../../../include/c++/4.6.0/x86_64-redhat-linux/bits/c++config.h:1737:28: note: 'std::ptrdiff_t' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/../../../../include/c++/4.6.0/x86_64-redhat-linux/bits/c++config.h:1737:28: note: 'std::ptrdiff_t' /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:804:13: error: expected ';' before 'l' /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:806:13: error: expected ';' before 'p' /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:807:9: error: 'p' was not declared in this scope /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:807:11: error: 'l' was not declared in this scope /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:813:13: error: expected ';' before 'pp' /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:815:9: error: 'pp' was not declared in this scope /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:815:12: error: 'l' was not declared in this scope /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:828:3: error: 'pp' was not declared in this scope /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:828:6: error: 'l' was not declared in this scope /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:844:13: error: expected ';' before 'i' /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:845:7: error: 'i' was not declared in this scope /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:847:8: error: 'p' was not declared in this scope /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:853:11: error: 'p' was not declared in this scope /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:857:5: error: 'j' was not declared in this scope /home/caonima/OpenFOAM/ThirdParty-2.0.x/ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx:858:11: error: 'p' was not declared in this scope make[2]: *** [VTK/Utilities/vtkmetaio/CMakeFiles/vtkmetaio.dir/metaUtils.cxx.o] Error 1 make[1]: *** [VTK/Utilities/vtkmetaio/CMakeFiles/vtkmetaio.dir/all] Error 2 make: *** [all] Error 2 --- it didn't work >< Then I followed the post Fedora 15 install help post to install paraView from fedora Repository and set the environment. It didn't work either. Winston Wu |
Hi Winston Wu,
Quote:
Code:
paraFoam -builtin _______________ edit: stupid Fedora... they changed the name for qmake to qmake-qt4... you'll have to run makeParaView like this: Code:
./makeParaView -qmake `which qmake-qt4` Code:
sed -i -e 's=ptrdiff_t=std::ptrdiff_t=' ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx _______________ edit 2: well, in case someone who is reading this wants to use Fedora's OpenMPI version, here's a few more steps to be made before building OpenFOAM:
Best regards, Bruno |
Quote:
|
Hi Laurence,
Well, for future reference, this has already been fixed for ParaView 3.12: http://paraview.org/Bug/view.php?id=12157 - but I don't have a clue when will it come out... Best regards, Bruno |
All times are GMT -4. The time now is 14:09. |