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

[OpenFOAM.org] Paraview not found when installing OpenFoam to Ubuntu 14.04

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2014, 11:15
Default
  #21
Member
 
AleDR's Avatar
 
Alessandro
Join Date: May 2009
Location: Genova
Posts: 47
Rep Power: 17
AleDR is on a distinguished road
...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
Attached Files
File Type: gz CMakeOutput.log.tar.gz (11.9 KB, 1 views)
File Type: gz CMakeError.log.tar.gz (4.2 KB, 1 views)
AleDR is offline   Reply With Quote

Old   September 28, 2014, 12:09
Default
  #22
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 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
wyldckat is offline   Reply With Quote

Old   September 28, 2014, 12:46
Default
  #23
Member
 
AleDR's Avatar
 
Alessandro
Join Date: May 2009
Location: Genova
Posts: 47
Rep Power: 17
AleDR is on a distinguished road
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?

Thank you!!!

Ale
Attached Files
File Type: gz log.makeParaView4.tar.gz (6.2 KB, 7 views)
AleDR is offline   Reply With Quote

Old   September 28, 2014, 12:54
Default
  #24
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 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
wyldckat is offline   Reply With Quote

Old   September 29, 2014, 05:28
Default Building ParaView 4.1.0 and OF 2.3.x on Linux Mint 17 Cinnamon
  #25
Member
 
AleDR's Avatar
 
Alessandro
Join Date: May 2009
Location: Genova
Posts: 47
Rep Power: 17
AleDR is on a distinguished road
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!

Thanks again & best regards,

Alex
wyldckat likes this.
AleDR is offline   Reply With Quote

Old   October 4, 2014, 13:30
Default
  #26
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 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
__________________
wyldckat is offline   Reply With Quote

Old   October 6, 2014, 04:51
Default
  #27
Member
 
AleDR's Avatar
 
Alessandro
Join Date: May 2009
Location: Genova
Posts: 47
Rep Power: 17
AleDR is on a distinguished road
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
AleDR is offline   Reply With Quote

Old   October 6, 2014, 08:17
Default
  #28
New Member
 
Thomas
Join Date: Aug 2010
Posts: 11
Rep Power: 16
ThomasBE is on a distinguished road
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
Attached Files
File Type: gz log.makePV.tar.gz (58.4 KB, 6 views)
ThomasBE is offline   Reply With Quote

Old   October 7, 2014, 16:27
Default
  #29
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 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
__________________
wyldckat is offline   Reply With Quote

Old   October 8, 2014, 05:08
Default
  #30
New Member
 
Thomas
Join Date: Aug 2010
Posts: 11
Rep Power: 16
ThomasBE is on a distinguished road
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
ThomasBE is offline   Reply With Quote

Old   October 9, 2014, 06:44
Default Problem with paraFoam
  #31
New Member
 
Javad
Join Date: Mar 2014
Posts: 14
Rep Power: 12
javadrasooli is on a distinguished road
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

Last edited by wyldckat; October 11, 2014 at 14:55.
javadrasooli is offline   Reply With Quote

Old   October 11, 2014, 15:43
Default
  #32
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!

@Thomas:
Quote:
Originally Posted by ThomasBE View Post
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 View Post
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
wyldckat is offline   Reply With Quote

Old   October 12, 2014, 04:49
Default
  #33
New Member
 
Thomas
Join Date: Aug 2010
Posts: 11
Rep Power: 16
ThomasBE is on a distinguished road
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
wyldckat likes this.
ThomasBE is offline   Reply With Quote

Old   November 14, 2014, 20:24
Default Error installing openFoam 2.3
  #34
New Member
 
Nat
Join Date: Jul 2013
Posts: 5
Rep Power: 13
Nat9 is on a distinguished road
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!
Attached Files
File Type: gz make.log.tar.gz (6.2 KB, 2 views)
File Type: gz make.log.thirdparties.tar.gz (36.2 KB, 0 views)
Nat9 is offline   Reply With Quote

Old   November 14, 2014, 22:35
Default Problem installing openFoam 2.1.1
  #35
New Member
 
Nat
Join Date: Jul 2013
Posts: 5
Rep Power: 13
Nat9 is on a distinguished road
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!
Attached Files
File Type: gz log.makePV.gz (70.6 KB, 2 views)
Nat9 is offline   Reply With Quote

Old   November 16, 2014, 17:39
Default
  #36
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 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
__________________
wyldckat is offline   Reply With Quote

Old   November 17, 2014, 20:47
Default
  #37
New Member
 
Nat
Join Date: Jul 2013
Posts: 5
Rep Power: 13
Nat9 is on a distinguished road
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. 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!
Attached Files
File Type: gz log.makePV-part1.tar.gz (84.4 KB, 2 views)
File Type: gz log.makePV-part2.tar.gz (32.0 KB, 1 views)

Last edited by Nat9; November 17, 2014 at 22:25. Reason: typo
Nat9 is offline   Reply With Quote

Old   November 18, 2014, 17:51
Default
  #38
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 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
wyldckat is offline   Reply With Quote

Old   November 20, 2014, 23:42
Thumbs up
  #39
New Member
 
Nat
Join Date: Jul 2013
Posts: 5
Rep Power: 13
Nat9 is on a distinguished road
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 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
Nat9 is offline   Reply With Quote

Old   November 21, 2014, 11:18
Default Paraview and Linux Mint 17
  #40
New Member
 
Mike Hersee
Join Date: Nov 2014
Posts: 23
Rep Power: 12
MikeHersee is on a distinguished road
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
Attached Files
File Type: gz log.makePV.tar.gz (6.2 KB, 3 views)
MikeHersee 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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
[OpenFOAM.org] Using OpenFOAM 2.3.0 from Deb pack in Ubuntu 14.04 + ParaView 5 from OpenFOAM 4.1 ad2eb OpenFOAM Installation 12 May 28, 2017 15:30
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
[OpenFOAM.org] (Script)OpenFOAM 2.3.0 and Paraview for Ubuntu 14.04 p0kerus OpenFOAM Installation 2 December 2, 2014 08:54
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 04:01


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