CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Paraview not found when installing OpenFoam to Ubuntu 14.04 (https://www.cfd-online.com/Forums/openfoam-installation/136504-paraview-not-found-when-installing-openfoam-ubuntu-14-04-a.html)

tabsquare May 30, 2014 00:29

Paraview not found when installing OpenFoam to Ubuntu 14.04
 
Hi, It's now a while that I try to install Openfoam to Ubuntu 14.04 LTS 64bit. I followed precisely the instructions in here: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04


Now everything goes fine until step 9 of the process where the make.log reports the one and only error:
Code:

ERROR: ParaView not found in /home/riccardo/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
If I proceed anyway, when I get to the 10th step of the process and run ./Allwmake , then I get exactly the same error above. In fact there is no ParaView-4.1.0 located in that folder. It is however located at /home/riccardo/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0


Any hint on how to get this resolved? thank you

wyldckat May 31, 2014 14:17

Greetings Riccardo and welcome to the forum!

This is either the 2nd or 3rd time that someone spots that error message during the build of OpenFOAM. I'll have to change the instructions on the wiki to build ParaView before OpenFOAM.

Please run these commands:
Code:

cd $WM_THIRD_PARTY_DIR
./makeParaView4 -qmake $(which qmake-qt4) > log.makePV 2>&1

Then either check the errors that are now logged inside the file "log.makePV" or compress the file and attach in your next post.

I ask this because I haven't been able to reproduce the same error when following those instructions on Ubuntu 14.04 :(


edit: I've updated the instructions on the wiki, so the numbering of the steps is now different! The old #11 is now #9 and the old #9 is now #10 :)


Best regards,
Bruno

tabsquare May 31, 2014 22:49

Thank you! I'll try to follow what you suggested as soon as I can! The best I could do for the moment is to run ParaFoam with the -builtin option and this works acceptably well. I don't know however what the the difference should be...

tabsquare June 1, 2014 22:56

1 Attachment(s)
I tried the new installation workflow but unfortunatly I still end up with the same error when I try running paraFoam, namely:
Code:

riccardo@riccardo-K53SV:~/OpenFOAM/riccardo-2.3.0/run/tutorials/incompressible/icoFoam/cavity$ paraFoam

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
./Allwclean
./Allwmake

I attached the log.makePV file to the discussion. Non an expert but these are the lines that appear the most critical to me(I suggest anyway taking a look at the attachment :)):
Code:

[ 44%] Building CXX object VTK/Rendering/Core/CMakeFiles/vtkRenderingCore.dir/vtkDataSetMapper.cxx.o
Scanning dependencies of target vtkIOXdmf2CS
In file included from /usr/local/cuda/include/cuda_runtime.h:59:0,
                from <command-line>:0:
/usr/local/cuda/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.5 and up are not supported!
 #error -- unsupported GNU version! gcc 4.5 and up are not supported!
  ^
[ 44%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkIOXdmf2CS.dir/vtkSILBuilderClientServer.cxx.o
[ 44%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkFiltersModelingCS.dir/vtkRibbonFilterClientServer.cxx.o
CMake Error at cuda_compile_generated_CUDAConvolutionDriver.cu.o.cmake:206 (message):
  Error generating
  /home/riccardo/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/Plugins/SciberQuestToolKit/SciberQuest/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_CUDAConvolutionDriver.cu.o


make[2]: *** [Plugins/SciberQuestToolKit/SciberQuest/CMakeFiles/cuda_compile.dir/./cuda_compile_generated_CUDAConvolutionDriver.cu.o] Error 1
make[1]: *** [Plugins/SciberQuestToolKit/SciberQuest/CMakeFiles/vtkSciberQuest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Code:

[ 97%] Building NVCC (Device) object Plugins/SciberQuestToolKit/SciberQuest/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_CUDAConvolutionDriver.cu.o
In file included from /usr/local/cuda/include/cuda_runtime.h:59:0,
                from <command-line>:0:
/usr/local/cuda/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.5 and up are not supported!
 #error -- unsupported GNU version! gcc 4.5 and up are not supported!
  ^
CMake Error at cuda_compile_generated_CUDAConvolutionDriver.cu.o.cmake:206 (message):
  Error generating
  /home/riccardo/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/Plugins/SciberQuestToolKit/SciberQuest/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_CUDAConvolutionDriver.cu.o


make[2]: *** [Plugins/SciberQuestToolKit/SciberQuest/CMakeFiles/cuda_compile.dir/./cuda_compile_generated_CUDAConvolutionDriver.cu.o] Error 1
make[1]: *** [Plugins/SciberQuestToolKit/SciberQuest/CMakeFiles/vtkSciberQuest.dir/all] Error 2
make: *** [all] Error 2
    ---
    Installation complete for paraview-4.1.0


Nikolac June 2, 2014 06:45

I had the same problem as tabsquare after I switched to 14.04. I have therefore been using an independent ParaView installation - I would just create an empty document in the case folder named view.foam, and that would allow me to load things in ParaView. However, when doing multiphase examples, the different phases and their interface are not shown in ParaView if I proceed as described above. In an earlier installation where paraFoam worked, this was not the case. Does anyone know why?

wyldckat June 2, 2014 16:35

Greetings to all!

@Riccardo: Many thanks for the log file! Now it's very clear what the problem is... and I have to point the finger at CUDA for being such a pain in the #$"!$$"#%
This issue was detected some time ago and the possible solutions can be found here: http://www.cfd-online.com/Forums/ope...on-driver.html

Assuming you don't need CUDA, please follow these steps:
Code:

cd $WM_THIRD_PARTY_DIR

sed -i -e 's=CUDA_FOUND=OFF=g' ParaView-4.1.0/Plugins/SciberQuestToolKit/SciberQuest/CMakeLists.txt

./makeParaView4 -qmake $(which qmake-qt4) > log.makePV 2>&1

Hopefully everything will build properly this time around. Check the file "log.makePV" when it's done, just in case. Please let me know if it does work as intended.

And if it does, then run:
Code:

cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
wmSET $FOAM_SETTINGS
./Allwclean
./Allwmake

Best regards,
Bruno

tabsquare June 2, 2014 18:00

Hello Bruno! I'm happy ;), this worked great as I don't have to use CUDA :) ParaFoam interface as it is now, appears to have more options than what I could see when using the builtin option (maybe just an impression).

I really appreciate the help, hopefully this will be a valuable info for others too! Thank you very much!

Nikolac June 7, 2014 10:06

1 Attachment(s)
Thanks for the support wyldckat! My own problem, however, seems to be of a different kind than tabsquare's. The following parts from my log file seem noteworthy:

Code:

[  4%] Building CXX object ThirdParty/QtTesting/vtkqttesting/CMakeFiles/QtTesting.dir/moc_pqWidgetEventTranslator.cxx.o
Linking C shared library ../../../../lib/libvtklibxml2-pv4.1.so
[  4%] Built target vtklibxml2
Linking CXX shared library ../../../lib/libQtTesting.so
[  4%] Built target QtTesting
make: *** [all] Error 2
Command exited with non-zero status 2
258.06user 14.59system 0:37.62elapsed 724%CPU (0avgtext+0avgdata 197300maxresident)k
63136inputs+126688outputs (58major+5923131minor)pagefaults 0swaps
    Done make
    Installing ParaView to /home/nc2613/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
[  0%] Built target vtksys
[  0%] Generating vtkUnicodeCaseFoldData.h ...

and at the end of the file it says

Code:

[ 92%] Compiling Qt help project PacMan.qhp
qhelpgenerator: could not exec '/usr/lib/x86_64-linux-gnu/qt5/bin/qhelpgenerator': No such file or directory
make[2]: *** [Plugins/TestPlugin/doc/PacMan.qch] Error 1
make[1]: *** [Plugins/TestPlugin/CMakeFiles/PacMan.dir/all] Error 2
make: *** [all] Error 2
    ---
    Installation complete for paraview-4.1.0
    Set environment variables:

        export ParaView_DIR=/home/nc2613/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1
    ---

Done

I have attached the complete log file. Any ideas what I should do?
Regards,
N

wyldckat June 7, 2014 11:14

Hi Nikolac,

The problem in your case seems to be because the Qt5 installation is getting in the way of the building process. Specifically, this path:
Code:

/usr/lib/x86_64-linux-gnu/qt5/
is getting in the way of the build process.

This is very strange, because if you used this command line:
Code:

./makeParaView4 -qmake $(which qmake-qt4) > log.makePV 2>&1
it should not let Qt5 put itself in the way of the Qt4 installation.

Was there anything that you did specifically for installing and/or using Qt5?

Best regards,
Bruno

Nikolac June 7, 2014 12:06

It baffles me too! I have used precisely this command with $(which qmake-qt4). I did not knowingly install or configure Qt5, I believe it must have come with the upgrade to 14.04. I have all the necessary Qt4 software installed, as described in your guide.

wyldckat June 8, 2014 12:34

Hi Nikolac,

OK, I've figured it out. As of Ubuntu 13.04, most Qt building-related applications now rely on "qtchooser" for selecting the Qt version we want for building our Qt-based applications.

I've updated the wiki page accordingly: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04

The main difference is that we have to run the following command before we build ParaView and the OpenFOAM plugins for ParaView:
Code:

export QT_SELECT=qt4
With this, we don't even have to be specific about which qmake we want to use.

Best regards,
Bruno

Nikolac June 10, 2014 06:47

Dear Bruno,

Thanks a lot, this worked like a charm!

Regards,
N

Jetfire August 21, 2014 02:17

2 Attachment(s)
Hi ,

I tried installing OpenFOAM 2.3.0 on ubuntu 14.04. I was not able to install paraFoam4.1.0 properly. There was a cmake 2.8.8 or higher version requirement and i had cmake 2.8.7, i tried installing and compiling cmake version 2.8.12.1 but was unsuccessful.

This was the error shown when i run paraFoam for the cavity case.

Code:

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
./Allwclean
./Allwmake

I have attached the make.log and log.makePV files. Can someone help me resolve this problem.
Thanks

wyldckat August 30, 2014 11:42

Greetings Jetfire,

Are you 100% certain that you are using Ubuntu 14.04? Because it's Ubuntu 12.04 that comes with CMake 2.8.7!

Instructions for building OpenFOAM 2.3.0 on Ubuntu 12.04 are given here: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04

If you still have problems using the correct CMake version, please check the instructions given here: http://openfoamwiki.net/index.php/FA...7s_going_on.3F

Best regards,
Bruno

Jetfire September 2, 2014 01:26

@wyldckat

Thanks for your reply.

I checked my version it's 12.04!. Installed OF 2.3.0 and paraFoam 4.1.0 successfully and they are running fine.

AleDR September 28, 2014 06:06

build order
 
Hello wyldckat,

and thank you very much for all your great help in building OF and ParaView!
I am following your instructions for a fresh build of OF-2.3.x on Mint 17, but please note that you cannot build ThirdParty folder as first, because you need wmake scripts as a prerequisite.
When I attempted a pretty fresh build of ThirdParty I ended with:
Code:

./Allwmake: 34: ./Allwmake: wmakeCheckPwd: not found
Error: Current directory is not $WM_THIRD_PARTY_DIR
    The environment variables are inconsistent with the installation.
    Check the OpenFOAM entries in your dot-files and source them.

So I think that you should build OF twice...

Alex

wyldckat September 28, 2014 06:40

Greetings Alex,

The reason why I wrote that the ThirdParty folder should be first built is in the description of the respective step:
Quote:

8. Now let's build the ThirdParty folder, because we need the shell environment to be updated afterwards, for CGAL to be properly picked up for building OpenFOAM:
In other words, running Allwmake only from the main "OpenFOAM-2.*" folder will require running this script 3 times instead of only twice.

As for the error message you got, I believe the problem was that you hadn't updated the shell environment properly yet, because wmakeCheckPwd is a shell script and not a binary application like wmkdep.

By the way, Mint 17 is based on which Ubuntu version?

Best regards,
Bruno

AleDR September 28, 2014 09:58

Wow Bruno,

I must confess that I didn't expect such a fast reply! Thanks again. :)
Well, I will detail my situation which is bit involved... I am trying to install 2.3.x in /opt/OpenFOAM/ on Mint 17, that is based on Ubuntu 14.04.
So I tried to manage this by setting FOAM_INST_DIR as in the official instructions page and then by sourcing /etc/bashrc file.
Then I tried step 8 from your wiki guide, ending with the problem above, i.e., Allwmake not finding the script. (Yes -sorry- it is a script!)

So I tried to build OF first and everything in the log file seems good. I gave a try to foamInstallationTest which tells me that the environment variables FOAM_SITE_APPBIN, FOAM_USER_APPBIN, FOAM_SITE_LIBBIN, FOAM_USER_LIBBIN are not valid yet...

I'll wait for your suggestions! :D

Regards,
Alex

wyldckat September 28, 2014 10:08

Hi Alex,

You got really lucky today... I'm skimming through the forum threads while the computer is running some meshing tests... I wouldn't do so if my machine was quicker ;)

Quick answer to your question: http://openfoamwiki.net/index.php/In...with_the_Shell

Not so quick answer:
  1. Step 1: Install first in your normal user account. This way you avoid accidentally nuking your machine ;).
  2. Step 2: Once the build is successful, copy or move to "/opt" as root.
  3. Step 3: This line:
    Code:

    source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI
    changes to this:
    Code:

    export FOAM_INST_DIR=/opt/OpenFOAM
    source $FOAM_INST_DIR/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI

Best regards,
Bruno

AleDR September 28, 2014 10:37

Well Bruno,

if this is my lucky Sunday I will take advantage of this as much as I can! :D
Sorry, but while you were typing your answer I couldn't wait any longer :p ...and I just tried to build again ThirdParty folder and then ParaView 4.1.0 as you suggested. Unfortunately PV build is stuck with some errors complaining about a lacking fortran compiler... which is pretty strange! Do I need it?
I think I will end up with my naive attempt at installing directly in /opt/ and try to follow your advice of local building everything in $HOME and then moving it wherever I like. At least I could experiment a little without much concerns! :cool:
Thanks again!

Alex

By the way: hope testing went well. Usually Sunday-testing is fine. :)

AleDR September 28, 2014 11:15

2 Attachment(s)
...well, not all Sunday tests are not going fine, Bruno!
I moved everything to my local folder, but the error on PV build remained the same... I post here the logfiles for sharing.
Suggestions are still welcome!

Thanks again & again,

Alex

wyldckat September 28, 2014 12:09

Hi Alex,

I've looked a bit into Mint 17 and it seems to be derived from Ubuntu 14.04. The step #9 at http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04 states these commands:
Code:

#First make very certain that the correct Qt version is being used, by running this command:
export QT_SELECT=qt4
 
#this will take a while... somewhere between 30 minutes to 2 hours or more
./makeParaView4 > log.makePV 2>&1

From the files you've attached, I'm getting the feeling you're still not following the instructions on the wiki to the letter. I say this because the file "log.makePV" is the one I'm looking for which should have the more accurate error messages ;)

As for the files you've attached, they are giving the output of the feature discovery procedure, which can be rather misleading as it's looking for every feature the hard way, hence so many errors. But since you didn't provide "log.makePV", I can't make an assessment as to what happened.

Best regards,
Bruno

AleDR September 28, 2014 12:46

1 Attachment(s)
Hi Bruno,

yeah, you're right!! :) I read them carefully, but seems they will soon guide me out of the way.
But here's the logfile you need! Totally novice, but it seems complaining about a missing OpenGL.
Anyway
Code:

glxinfo | grep "OpenGL version"
returned
Code:

OpenGL version string: 3.0 Mesa 10.1.0
So
Code:

echo $OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR
gives
Code:

OPENGL_INCLUDE_DIR
but
Code:

OPENGL_INCLUDE_DIR
returns nothing.

What about? :o

Thank you!!!

Ale

wyldckat September 28, 2014 12:54

Hi Alex,

You need to properly install the graphics card drivers for the graphics card in your machine.
Either that, or install the "mesa-dev" package...

Best regards,
Bruno

AleDR September 29, 2014 05:28

Building ParaView 4.1.0 and OF 2.3.x on Linux Mint 17 Cinnamon
 
Hi Bruno,

and thanks a lot for all your patience and good suggestions! :)
Finally I managed to build everything on Mint 17. And I know that you should deserve something better than this, but in order to thank you for all your support last Sunday I close our discussion with some points that could be useful for others Mint users.

Essentially if you like the polished look of Mint 17 Cinnamon and you want to easily build OF-2.3.x and ParaView 4.1.0 just follows the guide for Ubuntu 14.04 by Bruno but after step 2 remember to add:
Code:

apt-get install libqtwebkit-dev
which will solve problems about some missing headers from Qt (namely # include <QWebPage>).
[Before this key step I also tried to install libgl1-mesa-dev libglew-dev libglm-dev but they did not solve the issue.]
...Sounds like advertising, but I am pretty happy of my nightly build! :D

Thanks again & best regards,

Alex

wyldckat October 4, 2014 13:30

Hi Alex,

Many thanks for sharing your findings! I've added the instruction to also install "libqtwebkit-dev" just in case Ubuntu 14.04 decides to change a bit the dependencies.

Best regards,
Bruno

AleDR October 6, 2014 04:51

Hi Bruno,

that was definitely the least I could do for our community, since in many cases I found out quick solutions following your suggestions!
Glad to know that I was able to give my contribution somehow! :)

Best regards and thanks again,

Alex

ThomasBE October 6, 2014 08:17

1 Attachment(s)
Hey,

I am also having trouble installing ParaView 4.1.0, and they are very similar to AleDR's.

System is Linux Mint 17 (based on Ubuntu 14.04) aswell.

Been following the wiki guide to the letter, but having trouble with OpenGL with the ParaView installation. I did not notice that this installation did not work, so I have installed the remaining software already.

I tried installing the packages suggested by AleDR aswell, but they did not fix the problem. I seem to have a different version of Mesa though.

Quote:

OpenGL version string: 3.0 Mesa 10.4.0-devel
I have attached my log file. Thank you for any help you can offer!

Thomas

wyldckat October 7, 2014 16:27

Greetings Thomas,

Looks like Mesa doesn't have the necessary OpenGL implementations that ParaView needs.

But... have you installed the correct drivers for the graphics cards in your machine? Because the Mesa packages should only be used as a last resort.

Best regards,
Bruno

ThomasBE October 8, 2014 05:08

Hi Bruno,

I am very new to Linux, so bear with me. I have now switched from Nouveau driver back to Nvidia. I originally had Nvidia drivers, but upon discovering that "direct rendering" was not working I switched to Nouveau. Today I installed a new nvidia driver and now direct rendering is functioning.

This then gives, for glxinfo:
Quote:

OpenGL renderer string: GeForce GTX 860M/PCIe/SSE2
OpenGL version string: 4.4.0 NVIDIA 343.22
direct rendering: Yes
But I am still unable to install Paraview, with the same error messages as before.

Thank you for taking the time to assist me!

Thomas

javadrasooli October 9, 2014 06:44

Problem with paraFoam
 
Hello Bruno,
I have the same problem. I installed paraView and used it before. Now it is also workin with command : paraFoam -builtin . But in the output messages, some errors are appeared:

Code:

ERROR: In /home/dell-2014-d/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 8453
 vtkPOpenFOAMReader (0x2e99e40): /home/dell-2014-d/dell-2014-d.foam contains no timestep data.
 

 ERROR: In /home/dell-2014-d/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 754
 vtkPVCompositeDataPipeline (0x2ea2860): Algorithm vtkPOpenFOAMReader(0x2e99e40) returned failure for request: vtkInformation (0x2eb0b40)
  Debug: Off
  Modified Time: 89162
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0

I don't know even how to make log.makePV file. Please guide me.
Best regards,
Javad

wyldckat October 11, 2014 15:43

Greetings to all!

@Thomas:
Quote:

Originally Posted by ThomasBE (Post 513306)
But I am still unable to install Paraview, with the same error messages as before.

Whoops... I should have though about mentioning that you should try to remove the "mesa-dev" package when you install the NVidia drivers. Try using:
Code:

sudo apt-get remove mesa-dev
With luck, things will be back into proper operation.

---------------------

@Javad: If you look at the specific part of the error message:
Quote:

Originally Posted by javadrasooli (Post 513525)
Code:

ERROR: In /home/dell-2014-d/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 8453
 vtkPOpenFOAMReader (0x2e99e40): /home/dell-2014-d/dell-2014-d.foam contains no timestep data.



You'll see that it's referring to the file "/home/dell-2014-d/dell-2014-d.foam". Now, unless you have your case folder at "/home/dell-2014-d/", I would say that you ran the command from within the wrong path to the case folder. Try these commands:
Code:

mkdir -p $FOAM_RUN
cp -r $FOAM_TUTORIALS $FOAM_RUN
cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
blockMesh
icoFoam
paraFoam -builtin

---------------------

Best regards,
Bruno

ThomasBE October 12, 2014 04:49

Hi Bruno,

Removing mesa-common-dev did not work. i did however get it installed.

I googled the error message I got and ended up adding the lines

Quote:

typedef ptrdiff_t GLsizeiptr;
typedef ptrdiff_t GLintptr;
taken from glext.h to glxext.h file in /usr/include/GL/ folder. I have no idea what this does, or why it works, but I got the idea from here.

Anyways, thank you for taking the time to help me!

Cheers,
Thomas

Nat9 November 14, 2014 20:24

Error installing openFoam 2.3
 
2 Attachment(s)
Hi Bruno,

I'm trying to install openFoam 2.3 and 2.1.1 on Ubuntu 14.04 but I run into problems with both. And I think my problems (both concerned with ParaView) are different from the ones in this post.

I start with the problem installing openFoam 2.3 on Ubuntu 14.04:

I followed by word the instructions here: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04

I've got an error in step 8 around here (attached log file):
Code:

make[1]: Leaving directory `/home/natasa/OpenFOAM/ThirdParty-2.3.0/scotch_6.0.0/src/libscotchmetis'
+  make  prefix=/home/natasa/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/scotch_6.0.0  libdir=/home/natasa/OpenFOAM/ThirdParty-2.3.0/platforms/linux64GccDPOpt/lib/openmpi-system  includedir=/home/natasa/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/scotch_6.0.0/include/openmpi-system  install
mkdir /home/natasa/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/scotch_6.0.0/include/openmpi-system
cp -f ../bin/[agm]* /home/natasa/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/scotch_6.0.0/bin
cp: cannot stat ‘../bin/[agm]*’: No such file or directory
make: [install] Error 1 (ignored)

Since this error was ignored I followed the steps.

There was no error in step 9.

In step 10 I've got numerous errors (attached log file). First one is:
Code:

make[3]: `/home/natasa/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/plot3dToFoam' is up to date.
vtkPV4Readers.C:35:35: fatal error: vtkDataArraySelection.h: No such file or directory
 #include "vtkDataArraySelection.h"
                                  ^

After than there are a few other similar error.
If I understand right it does not find certain headers belonging to ParaView which I seemingly installed correctly in step 9.

openFoam works, but when I try to use paraFoam I get the infamous error message which urges me to build PV4Reader.

What should I do to build it properly?

Thanks in advance for any help!

Nat9 November 14, 2014 22:35

Problem installing openFoam 2.1.1
 
1 Attachment(s)
To install 2.1.1 on Ubuntu 14.04 I've followed these instructions: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04
I understand that these instructions are for Ubuntu 12.04, but I did not find any for 14.04 so I tried these (and yes, they did not work).

I've got error in step 9 when I tried to build ParaView and the first error was:
Code:

[ 83%] Building CXX object Plugins/Moments/CMakeFiles/Moments.dir/vtkSMMomentsInstantiator.cxx.o
In file included from /home/natasa/OpenFOAM/ThirdParty-2.1.1/ParaView-3.12.0/Qt/Core/pqAnimationScene.cxx:57:0:
/home/natasa/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
    ClearAndSelect = Clear | Select
                              ^
make[2]: *** [Qt/Core/CMakeFiles/pqCore.dir/pqAnimationScene.cxx.o] Error 1
make[1]: *** [Qt/Core/CMakeFiles/pqCore.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 83%] Building CXX object Plugins/Moments/CMakeFiles/Moments.dir/Moments_Plugin.cxx.o
Linking CXX shared library ../../bin/libMoments.so
[ 83%] Built target Moments
make: *** [all] Error 2

which seems to complain about qt.

Any thoughts on that? Thanks in advance!

wyldckat November 16, 2014 17:39

Greetings Nat and welcome to posting on the forum!

For the installation of OpenFOAM 2.3.0, something definitely went wrong while building ParaView 4.1.0, because that error message you got clearly states that a relevant file from ParaView's installation is missing. If you run this command:
Code:

ls -l $HOME/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/include/paraview-4.1
it will likely tell you the folder or path does not exist. If it does, check if the file "vtkDataArraySelection.h" exists inside that folder.
Either way, if you could attach the compressed file of "log.makePV", that would make it easier to diagnose.


For the installation of OpenFOAM 2.1.1, see the fix made in the step #8 from this page: http://openfoamwiki.net/index.php/In...dora#Fedora_18 - section "Fedora 18". It's the lines before running "makeParaView" that fix the problem you're seeing on Ubuntu.

Best regards,
Bruno

Nat9 November 17, 2014 20:47

2 Attachment(s)
Hi Bruno,

Thanks for the fast replay and the very kind welcome :)

I wanted to attach the log.makePV (for 2.3.0) but since it was larger than the allowed limit (in compressed format) and I was just lazy, finally I did not do it.:o Please find it attached now in two parts.

As you wrote, there is no such directory as $HOME/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/include/paraview-4.1

About the installation of the 2.1.1: I went to the link, performed the action requested and now it works.:) Thank you!

wyldckat November 18, 2014 17:51

Hi Nat,

Well, this is somewhat odd... There is no indication of a failure during the build process of ParaView 4.1.0 in OpenFOAM 2.3.0. Everything was built and installed without any problems.

The folder mentioned in your log file "log.make" has this path:
Code:

$HOME/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/include/paraview-4.1
when the correct path should be:
Code:

$HOME/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0/include/paraview-4.1
If my guess is correct, try running these commands, which should hopefully ensure that the build is done properly this time around:
Code:

cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
wmSET $FOAM_SETTINGS
./Allwclean
./Allwmake > log.make 2>&1

And then check if this file "log.make" has any error messages.

Best regards,
Bruno

Nat9 November 20, 2014 23:42

First of all thank you for your kind help Bruno!!

Second I have to admit it was all my fault with OF2.3. When I read your last post I remembered something. Some time ago when I installed OF2.3 I did all the steps by word (at least I think) except the one to check for errors. So I did not realized there was an error installing paraView. When I tried to use paraFoam and I got the message about installing PV4Reader, I tried to do so, but I got some error message about not finding paraView at some location. Since I installed paraView long before from the ubuntu software center, I thought that the problem is in the environmental variables, so I started to change them :o and I completely forget that.
When I read your post I remembered, so I downloaded everything again, and went through all the steps. This time checking for errors. There was none. It works perfectly. Now both 2.3 and 2.1.1 too.

Thanks again :) and sorry for wasting your time with something that stupid :o

MikeHersee November 21, 2014 11:18

Paraview and Linux Mint 17
 
1 Attachment(s)
Hi, I'm also struggling with an installation of OpenFOAM 2.3.0 on Linux Mint 17.
I originally had a problem where it couldn't reach an IP address it needed to in order to download all the source. That seemed to fix itself without changing anything when I ran it later. However, I had mistakenly assumed it had created paraview correctly when it didn't specifically throw up an error on the screen and I didn't check the log.makepv file at the time. When I tried to run paraFOAM in the first tutorial it came up with the line, 'FATAL ERROR: ParaView reader module libraries do not exist...(etc)'

I followed those instructions but it didn't work, and I have reviewed the other messages where paraview has not worked and I have tried what seemed to be relevant commands, which have also not worked.

I'm pretty certain I followed the instructions for installing OpenFOAM in Ubuntu 14.04 to the letter, by copying and pasting the commands directly from the instructions, although it's possible I've made a mistake. I'd be grateful for any guidance. I've attached the log.makepv file. It looks to me as though something to do with VTK isn't right, but I've no idea how to fix it, and I don't know if that's the fatal error at the root of it.

Mike


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