CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   OpenFOAM-2.1.x on OpenSUSE 12.2 failed installation (

phsieh2005 September 8, 2012 06:54

OpenFOAM-2.1.x on OpenSUSE 12.2 failed installation
Dear OpenFOAMers,

paraview failed compilation on OpenSUSE 12.2. I am wondering if anyone here has a solution for this. Thanks!


[ 83%] Building CXX object Qt/Core/CMakeFiles/pqCore.dir/pqAnimationScene.cxx.o
In file included from /home/hsieh/OpenFOAM/ThirdParty-2.1.x/ParaView-3.12.0/Qt/Core/pqAnimationScene.cxx:57:0:
/home/hsieh/OpenFOAM/ThirdParty-2.1.x/ParaView-3.12.0/Qt/Core/pqServerManagerSelectionModel.h:75:30: error: calls to overloaded operators cannot appear in a constant-expression
make[2]: *** [Qt/Core/CMakeFiles/pqCore.dir/pqAnimationScene.cxx.o] Error 1
make[1]: *** [Qt/Core/CMakeFiles/pqCore.dir/all] Error 2
make: *** [all] Error 2
Installation complete for paraview-3.12.0
Set environment variables:

export ParaView_DIR=/home/hsieh/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc46/paraview-3.12.0
export PATH=$ParaView_DIR/bin:$PATH
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.12

wyldckat September 8, 2012 14:08

Greetings Pei-Ying,

openSUSE 12.2 is using Gcc 4.7, for which ParaView requires a minor tweaking in the source code. You can find a quick fix near the end of this page: - namely in step #6 "Now, in order to build ParaView 3.12.0 that comes with OpenFOAM".

Disclaimer: I haven't confirmed this myself yet, but the error message and characteristics in openSUSE 12.2 seem to fit the same profile as Fedora 17!

Best regards,

phsieh2005 September 8, 2012 18:24

Thanks a lot Bruno!

I had to use:

cd $WM_THIRD_PARTY_DIR sed -i -e 's/ClearAndSelect = Clear | Select/ClearAndSelect = static_cast<int>(Clear) | static_cast<int>(Select)/' \ ParaView-3.12.0/Qt/Core/pqServerManagerSelectionModel.h
./makeParaView -qmake $(which qmake-qt4) did not work


alberto September 9, 2012 02:04

Yes, that patch is correct. I used it too :-)

P.S. GeekoCFD based on openSUSE 12.2 is already available :-)

wyldckat September 9, 2012 03:56

Greetings to all!


Originally Posted by phsieh2005 (Post 380899)
./makeParaView -qmake $(which qmake-qt4) did not work

That's because it's specific for Fedora ;) For some reason, they decided/concluded that there might be more than one version of qmake, such as qmake-qt3 or a custom build of Qt...

Best regards,

wyldckat September 27, 2012 07:42


I forgot to mention that I have already written instructions for installing OpenFOAM 2.1.1 + ParaView 3.12 on openSUSE 12.2 here:

I did the test on a virtual machine, so there might be missing some instructions related to graphics cards :(

Best regards,

All times are GMT -4. The time now is 12:31.