CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   ThirdParty2.1.1 on Ubuntu 12.10 64bit (https://www.cfd-online.com/Forums/openfoam-installation/108463-thirdparty2-1-1-ubuntu-12-10-64bit.html)

davide_c October 24, 2012 09:28

ThirdParty2.1.1 on Ubuntu 12.10 64bit [solved]
 
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

treima October 24, 2012 10:16

Hello,

why do you build OpenFoam from source and donīt you install the Deb Pack?

davide_c October 24, 2012 10:51

Quote:

Originally Posted by treima (Post 388308)
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 ;) )

wyldckat October 24, 2012 14:38

Greetings to all!

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

Best regards,
Bruno

davide_c October 24, 2012 17:38

Quote:

Originally Posted by wyldckat (Post 388351)
Greetings to all!

I've written instructions for both modes some weeks ago :cool:: 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 !

wyldckat October 25, 2012 02:45

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 :D

Best regards,
Bruno


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