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

ThirdParty2.1.1 on Ubuntu 12.10 64bit

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2012, 10:28
Talking ThirdParty2.1.1 on Ubuntu 12.10 64bit [solved]
  #1
New Member
 
Davide Cagnoni
Join Date: Jul 2011
Posts: 14
Rep Power: 15
davide_c is on a distinguished road
Hi everybody

I'm trying to install OpenFoam from source in my newly installed (from a formatted system) Ubuntu.

I followed the instructions from http://www.openfoam.org/download/source.php step by step, and the OpenFoam part seems to work ok, while the Paraview compilation seems to finish not successfully. Also, the PV3FoamReader module fails.

Here's an excerpt of how the makeParaview script output terminates:

Quote:
[ 81%] Built target QtTesting
[ 81%] Built target TestingDemo
[ 83%] Built target pqWidgets
[ 83%] Building CXX object Qt/Core/CMakeFiles/pqCore.dir/pqAnimationScene.cxx.o
In file included from /home/davide/OpenFOAM/ThirdParty-2.1.1/ParaView-3.12.0/Qt/Core/pqAnimationScene.cxx:57:0:
/home/davide/OpenFOAM/ThirdParty-2.1.1/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/davide/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc/paraview-3.12.0
export PATH=$ParaView_DIR/bin:$PATH
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.12
---

Done
At first I thought everything was ok as the "Installation complete" line suggested, but then while trying to build the PV3blockMeshReader and the PV3FoamReader plugins, I had the following result:

Quote:
+ [ -d /home/davide/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc/paraview-3.12.0 -a -r /home/davide/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc/paraview-3.12.0 ]
which I honestly cannot interpret.

Again, when I try to run the usual blockmesh-icofoam-parafoam sequence, the first two run smoothly while parafoam gives the following error:

Quote:
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 tried to find out something on other topics but wasn't able to find any solution... can anybody help ?

Thank you a lot in advance,

davide

P.S.
i'm using the following versions of software:
Quote:
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
cmake version 2.8.9
QMake version 2.01a
Using Qt version 4.8.3 in /usr/lib/x86_64-linux-gnu

Last edited by davide_c; October 24, 2012 at 19:45. Reason: solved
davide_c is offline   Reply With Quote

Old   October 24, 2012, 11:16
Default
  #2
Member
 
Join Date: Mar 2012
Location: Munich, Germany
Posts: 67
Rep Power: 14
treima is on a distinguished road
Hello,

why do you build OpenFoam from source and donīt you install the Deb Pack?
treima is offline   Reply With Quote

Old   October 24, 2012, 11:51
Default
  #3
New Member
 
Davide Cagnoni
Join Date: Jul 2011
Posts: 14
Rep Power: 15
davide_c is on a distinguished road
Quote:
Originally Posted by treima View Post
Hello,

why do you build OpenFoam from source and donīt you install the Deb Pack?
there's still no build for quantal... I can try later with the precise .deb (installing other stuff right now )
davide_c is offline   Reply With Quote

Old   October 24, 2012, 15:38
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

I've written instructions for both modes some weeks ago : http://openfoamwiki.net/index.php/In...u#Ubuntu_12.10

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 24, 2012, 18:38
Default
  #5
New Member
 
Davide Cagnoni
Join Date: Jul 2011
Posts: 14
Rep Power: 15
davide_c is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

I've written instructions for both modes some weeks ago : http://openfoamwiki.net/index.php/In...u#Ubuntu_12.10

Best regards,
Bruno
Thanks Bruno, I did not see your post from weeks ago... for the sake of curiosity, is the stuff you change in pqServerManagerSelectionModel.h an error/bug correction or just something which is supposed to be done?

I'll try out asap

P.S.

worked out perfectly thanks a lot !

Last edited by davide_c; October 24, 2012 at 19:47.
davide_c is offline   Reply With Quote

Old   October 25, 2012, 03:45
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Davide,

I'm glad it worked.

For the lack of a better word: it's a hack. The modification is necessary because Gcc 4.7 is a lot more picky about the source code, demanding better coding standards

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing OpenFOAM 2.1.1 and ParaView 3.12.0 on Ubuntu 12.10 wyldckat OpenFOAM Installation 14 February 12, 2013 05:43
Ansys 12.0 on Ubuntu 10.10 64bit Krischan ANSYS 1 April 26, 2011 05:44
Installing OpenFOAM 1.7.0 on Ubuntu Hardy 64bit nuovodna OpenFOAM 2 July 1, 2010 10:24
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
ubuntu 9.10 64bit - wmake missing headers soeren87 OpenFOAM Installation 5 November 11, 2009 11:01


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