CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

OpenFOAM-2.1.x on OpenSUSE 12.2 failed installation

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 8, 2012, 06:54
Default OpenFOAM-2.1.x on OpenSUSE 12.2 failed installation
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 271
Rep Power: 9
phsieh2005 is on a distinguished road
Dear OpenFOAMers,

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

Pei-Ying
----------------------------------------------

[ 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
---
phsieh2005 is offline   Reply With Quote

Old   September 8, 2012, 14:08
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: http://openfoamwiki.net/index.php/In...M-2.1.1/Fedora - 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,
Bruno
wyldckat is offline   Reply With Quote

Old   September 8, 2012, 18:24
Default
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 271
Rep Power: 9
phsieh2005 is on a distinguished road
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
---------------
./makeParaView -qmake $(which qmake-qt4) did not work

Pei-Ying
phsieh2005 is offline   Reply With Quote

Old   September 9, 2012, 02:04
Default
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Yes, that patch is correct. I used it too :-)

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

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   September 9, 2012, 03:56
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

Quote:
Originally Posted by phsieh2005 View Post
./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,
Bruno
wyldckat is offline   Reply With Quote

Old   September 27, 2012, 07:42
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi,

I forgot to mention that I have already written instructions for installing OpenFOAM 2.1.1 + ParaView 3.12 on openSUSE 12.2 here: http://openfoamwiki.net/index.php/In...#openSUSE_12.2

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

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.7 installation on Redhat linux maxims OpenFOAM Installation 2 November 30, 2012 05:29
openfoam 1.71 Installation freemankofi OpenFOAM 7 May 19, 2011 01:08
OpenFOAM 1.7.0 on OpenSUSE 11.1 Bufacchi OpenFOAM Installation 8 August 6, 2010 09:57
Installation how-to's - OpenFOAM 1.7 - openSUSE 11.2 and 11.3 alberto OpenFOAM Installation 24 August 4, 2010 00:48
Openfoam installation on OpenSuse 11.1 Bufacchi OpenFOAM Installation 1 June 15, 2010 19:55


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