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   November 23, 2014, 13:29
Default
  #41
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 Mike,

As mentioned on this very same thread - if you start reading from post #29 or #28 - the error message is implying what the problem is:
Quote:
Code:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindOpenGL.cmake:161 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  VTK/Rendering/OpenGL/CMakeLists.txt:143 (find_package)
The problem essentially is that the drivers for the graphics card are not installed or at least the development packages have not been installed.
What graphics card do you have and which drivers did you install for it?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 24, 2014, 21:37
Default
  #42
New Member
 
Mike Hersee
Join Date: Nov 2014
Posts: 23
Rep Power: 11
MikeHersee is on a distinguished road
Thanks Wyldckat,

I've got the AMD SEMPRON 3850 with integral Radeon HD 8280. Originally when I looked at the driver manager in Linux Mint it said, "This device is using the recommended driver" (or words to that effect), which is the xserver-xorg-video-ati version 1:7.3.0-1ubuntu3.1 one apparently. That didn't work, so I tried using the fglrx-updates driver instead, and that hasn't made any difference.

Mike
MikeHersee is offline   Reply With Quote

Old   November 25, 2014, 16:54
Default
  #43
New Member
 
Mike Hersee
Join Date: Nov 2014
Posts: 23
Rep Power: 11
MikeHersee is on a distinguished road
I've just found that there is an openCL2 driver for Ubuntu 14.04 that I'm going to have a go at installing - that might be what is needed.
MikeHersee is offline   Reply With Quote

Old   November 28, 2014, 20:38
Default
  #44
New Member
 
Mike Hersee
Join Date: Nov 2014
Posts: 23
Rep Power: 11
MikeHersee is on a distinguished road
Ok, I've now downloaded and installed the OpenGL driver provided on the AMD support website (after a bit of a struggle, because the installation instructions didn't work as described), and I've downloaded and played the TORCS game - the open source car racing simulation that relies on openGL, and that works. When I look at the device drivers it acknowledges that I'm now using a user-installed driver rather than one provided by the operating system. But I got exactly the same error in the makePV log file -

CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find OpenGL (missing: OPENGL_INCLUDE_DIR)

Has something gone wrong with the OpenGL installation, or is openfoam incorrectly presuming it will be in a particular directory or something? Where do I check next?

Mike
Attached Files
File Type: gz log.makePV.tar.gz (6.3 KB, 5 views)
MikeHersee is offline   Reply With Quote

Old   December 5, 2014, 14:15
Default
  #45
Member
 
Kumar
Join Date: Jun 2013
Posts: 47
Rep Power: 12
kishpishar is on a distinguished road
Dear Bruno,

First of all, many many thanks for your detailed instructions on compiling OF on ubuntu. I tried to compile the sources for OpenFOAM-2.3.0 on ubuntu 14.04 exactly as you mentioned in the wiki page and met with the same problem regarding ParaView installation. The initial make process went fine and the OpenFOAM too got installed flawlessly. The problem seems to be with the OpenGL library.

I installed ubuntu 14.04 on a laptop side by side with windows 7 using wubi installer. My graphics card (intel HD) is working okay.

There is only one error in make.log for OpenFOAM (Ln 339, 340):
WARN: PV3 readers not building: ParaView_VERSION=4.1.0
ERROR: ParaView not found in /home/kumar/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0

The error description of the log.makePV says:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)

Attached are the relevant files. What can I do now? Thanks so much.

-kumar
Attached Files
File Type: gz make.log.tar.gz (35.6 KB, 2 views)
File Type: gz log.makePV.tar.gz (6.2 KB, 2 views)
kishpishar is offline   Reply With Quote

Old   December 30, 2014, 06:44
Default
  #46
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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!

@Mike:
Quote:
Originally Posted by MikeHersee View Post
Has something gone wrong with the OpenGL installation, or is openfoam incorrectly presuming it will be in a particular directory or something? Where do I check next?
Sorry about taking so long to answer back, but only today did I manage to finally look into this. I'm currently downloading Linux Mint 17 MATE edition and will install it in a virtual machine, to try and reproduce this problem.


@Kumar:
Quote:
Originally Posted by kishpishar View Post
The problem seems to be with the OpenGL library.

I installed ubuntu 14.04 on a laptop side by side with windows 7 using wubi installer. My graphics card (intel HD) is working okay.
[...]
Attached are the relevant files. What can I do now? Thanks so much.
Hopefully I can figure it out, by testing the instructions in Linux Mint 17. There's something that I might have forgotten to write in the wiki instructions, so I'll have to test it all over again.

With any luck, I'll have an answer in about 2-3 hours from now.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 30, 2014, 08:11
Default
  #47
New Member
 
Mike Hersee
Join Date: Nov 2014
Posts: 23
Rep Power: 11
MikeHersee is on a distinguished road
Thanks - really looking forward to that. and really appreciate you going to that effort as well.

Mike
MikeHersee is offline   Reply With Quote

Old   December 30, 2014, 08:38
Default
  #48
Member
 
Kumar
Join Date: Jun 2013
Posts: 47
Rep Power: 12
kishpishar is on a distinguished road
Thanks Bruno! I think the problem in my case was that the OpenGL library header was not installed. It is resolved now and I've been able to compile it perfectly from your instructions.

I don't remember the sequence of operations I did to manage the opengl but was something like this: Installed mesa-utils, then found the graphics details using glxinfo. I also installed the following packages: mesa-common-dev, libpng-dev, libjpeg-dev, libxi-dev libxrandr-dev. Perhaps I installed mesa-utils-extra and libgl1-mesa-dev but I am not quite sure. In the end it worked perfect.

Thanks once again for all your efforts. Wish you Happy Holidays and Happy New Year!

-Kumar
wyldckat likes this.
kishpishar is offline   Reply With Quote

Old   December 30, 2014, 09:08
Default
  #49
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
I'm back with some good news! And thanks Kumar for giving some feedback on this, because it lead me to what seems to be the right solution!

I reproduced the same problem and looks like the package that can bring this confusion to a close is "libglu1-mesa-dev", because this package depends on all others, including drivers and files are installed for several graphics card drivers:
Code:
apt-get install libglu1-mesa-dev
The weird thing is that this package use to be needed when OpenFOAM 1.6.x was the latest version...

Anyway, the instructions on the wiki have been updated accordingly. Which reminds me that instructions for OpenFOAM 2.3.1 are up as well for a couple of days already: http://openfoamwiki.net/index.php/In...M-2.3.1/Ubuntu

@Mike: I hope this solves the problem! My build is still ongoing, but it seems to be going well so far.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 31, 2014, 12:47
Default
  #50
New Member
 
Mike Hersee
Join Date: Nov 2014
Posts: 23
Rep Power: 11
MikeHersee is on a distinguished road
Paraview seems to have compiled properly! Thank you very much for that. IcoFoam -help seems to work too. However.... A problem seems to have occurred with creating CGAL. As this is specifically a Paraview thread, I'll post a fresh one for that.
MikeHersee is offline   Reply With Quote

Old   January 20, 2015, 20:22
Default Another problem with ParaView and Ubuntu 14.04
  #51
New Member
 
Francisco Angel
Join Date: Dec 2012
Posts: 26
Rep Power: 13
francisco.angel is on a distinguished road
Hello everyone, I'm not very experienced with OpenFoam, I tried the installation steps for OpenFoam and ParaView at http://www.openfoam.org/archive/2.3....oad/source.php but only testing the first tutorial, when typing
Code:
paraFoam
I got the same error that other users in the thread,
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
the installation of openFoam seems okay (after cheking icoFoam -help), so I only tried to repair the ParaView installation following steps 9 and and 10 from here http://www.openfoamwiki.net/index.ph...u#Ubuntu_14.04
The attached log file shows that there is a problem with QT, that I'm unable to solve for myself, can someone help me? Thanks to you all.
Attached Files
File Type: txt log.makePV.txt (39.1 KB, 5 views)
francisco.angel is offline   Reply With Quote

Old   January 24, 2015, 13:02
Default
  #52
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 Francisco,

Please follow steps #1, #2 and #3 from that same guide, namely: http://www.openfoamwiki.net/index.ph...u#Ubuntu_14.04 - because the error message you're getting is because you're missing some packages in your Ubuntu installation.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 24, 2015, 15:02
Default
  #53
New Member
 
Francisco Angel
Join Date: Dec 2012
Posts: 26
Rep Power: 13
francisco.angel is on a distinguished road
Dear Bruno,
First of all, thanks for your answer, I forgot to mention in my previous post that I had taken the prevision of doing steps 1-3 in the tutorial, I executed them again just to be sure, the output for
Code:
apt-get install build-essential cmake flex bison zlib1g-dev qt4-dev-tools libqt4-dev libqtwebkit-dev gnuplot \ libreadline-dev libncurses-dev libxt-dev libopenmpi-dev openmpi-bin libboost-system-dev libboost-thread-dev libgmp-dev \ libmpfr-dev
is at step3.txt (attached) and the output for
Code:
apt-get install libglu1-mesa-dev libqt4-opengl-dev
is at step3note.txt (attached), in both cases seems that everything is already installed, but the problem with the installation of paraFoam persist, as you can see in the log file log.makePV2.txt (attached), what do you think the problem can be?
By the way do you think that trying an older version of paraFoam will give better results?, I don't think I need the most up to date version to start learning.
Best regards.
Attached Files
File Type: txt log.makePV2.txt (39.1 KB, 3 views)
File Type: txt step3.txt (1.3 KB, 2 views)
File Type: txt step3note.txt (559 Bytes, 1 views)
francisco.angel is offline   Reply With Quote

Old   January 25, 2015, 10:53
Default
  #54
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 Francisco,

Quote:
Originally Posted by francisco.angel View Post
as you can see in the log file log.makePV2.txt (attached), what do you think the problem can be?
The problem is that the applications moc, rcc and uic are not being found due to some weird/strange reason .
Are you correctly executing these two commands?
Code:
export QT_SELECT=qt4
 
./makeParaView4 > log.makePV 2>&1
Because the first one is critical for a proper operation of Qt's build system.

For example, what do you get when you run these commands?
Code:
export QT_SELECT=qt4
rcc -version
qmake -version
uic -version
rcc -version

which rcc
which qmake
which uic
which rcc
Quote:
Originally Posted by francisco.angel View Post
By the way do you think that trying an older version of paraFoam will give better results?, I don't think I need the most up to date version to start learning.
If you're having trouble building this version of ParaView, an older version will be even harder to build.


Beyond this: are you 100% certain you're using Ubuntu 14.04?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 25, 2015, 19:29
Default
  #55
New Member
 
Francisco Angel
Join Date: Dec 2012
Posts: 26
Rep Power: 13
francisco.angel is on a distinguished road
Dear Bruno, thanks for continue supporting me, regarding your questions, here are the outputs of every command,
Code:
rcc -version
Code:
Qt Resource Compiler version 4.8.5
Code:
qmake -version
Code:
QMake version 2.01a
Using Qt version 4.8.5 in /opt/anaconda1anaconda2anaconda3/lib
Code:
uic -version
Code:
Qt User Interface Compiler version 4.8.5
Code:
which rcc
Code:
/usr/local/anaconda/bin/rcc
Code:
 which qmake
Code:
/usr/local/anaconda/bin/qmake
Code:
which uic
Code:
/usr/local/anaconda/bin/uic
Regarding the ubuntu version, I reconfirmed it

Code:
francisco@francisco:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:    14.04
Codename:    trusty
I hope this helps
francisco.angel is offline   Reply With Quote

Old   January 26, 2015, 15:08
Default
  #56
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 Francisco,

Well, that definitely isolates the problem! The installation of Qt you have at "/usr/local/anaconda/" is apparently damaged or at the very least is interfering with the build process for building ParaView.

Let's see... how can we remove the contamination path... OK, fortunately OpenFOAM has a neat script that can help us here. Run the following commands:
Code:
export PATH=$(foamCleanPath "$PATH" "/usr/local/anaconda")
export LD_LIBRARY_PATH=$(foamCleanPath "$LD_LIBRARY_PATH" "/usr/local/anaconda")
Now try running the other commands once again:
Code:
export QT_SELECT=qt4
rcc -version
qmake -version
uic -version
rcc -version

which rcc
which qmake
which uic
which rcc
If it says that it's using the ones from Ubuntu and not the ones from "anaconda", then you're good to go!

In addition, you'll need those two lines at the top of this post to be called whenever the OpenFOAM shell environment is loaded. You can do this by creating the file "etc/prefs.sh" inside the main "OpenFOAM-2.3.*" folder and placing inside the file the 2 command lines.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 27, 2015, 20:29
Default
  #57
New Member
 
Francisco Angel
Join Date: Dec 2012
Posts: 26
Rep Power: 13
francisco.angel is on a distinguished road
Dear Bruno:
I followed your suggestions, after executing the two first lines you indicated, the path was indeed redirected from:
Code:
 /usr/local/anaconda
to:
Code:
 /usr/bin
after that the installation of paraView (step 9 of the tutorial) was completed succesfully.
I had a problem with using the prefs.sh file, starting a terminal produces the following message
Code:
 foamCleanPath: command not found
bash: foamCleanPath: No such file or directory
bash: uname: No such file or directory

    Your "" operating system is not supported by this release
    of OpenFOAM. For further assistance, please contact www.OpenFOAM.org

/home/francisco/OpenFOAM/OpenFOAM-2.3.0/bin/foamCleanPath: 110: /home/francisco/OpenFOAM/OpenFOAM-2.3.0/bin/foamCleanPath: sed: not found
/home/francisco/OpenFOAM/OpenFOAM-2.3.0/bin/foamCleanPath: 110: /home/francisco/OpenFOAM/OpenFOAM-2.3.0/bin/foamCleanPath: sed: not found
bash: sed: No such file or directory
bash: sed: No such file or directory
bash: [: -eq: unary operator expected
I tried removing the prefs.sh file, and using paraFoam on the cavity tutorial, that gaves me the original errors, namely:
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 tried to execute those instructions with no success. After that I restarted the terminal and executed:

Code:
 export PATH=$(foamCleanPath "$PATH" "/usr/local/anaconda")
export LD_LIBRARY_PATH=$(foamCleanPath "$LD_LIBRARY_PATH" "/usr/local/anaconda")
directly in the terminal, this time I was capable to execute:
Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
./Allwclean
./Allwmake
and run paraFoam on the cavity tutorial files. Now paraFoam seems working fine.
I want to thank you for the continuous support you offered to me all this week, by no means I would have been capable of solve this problem alone.
wyldckat likes this.
francisco.angel is offline   Reply With Quote

Old   May 17, 2015, 13:18
Default Error Message in log.makePV file
  #58
New Member
 
Björn Greis
Join Date: May 2015
Posts: 8
Rep Power: 10
Guggelhupf is on a distinguished road
Hello together,

I am a totally Linux and OpenFOAM Newbie so i was really glad to find such detailed Informations in the net.

At present I try to install OpenFOAM and ParaView for the second time. I have installed Lubuntu 14.04 with OpenFOAM 2.3.0 like descriped here:

http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04

The first time I had finished it I had a problem with paraFoam which did not work, why I decided to install everything a second time from the beginning.

My problem is, when I finish point 9 and want to check the log.makePV file i get this information:

ParaView_SOURCE_DIR=/home/bjoern/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0
ParaView_BINARY_DIR=/home/bjoern/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0
ParaView_DIR=/home/bjoern/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
sed: kann /home/bjoern/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/VTK/Utilities/kwsys/kwsysDateStamp.cmake nicht lesen: Datei oder Verzeichnis nicht gefunden
date-stamp:

(translatition: sed: can't read /home/bjoern/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/VTK/Utilities/kwsys/kwsysDateStamp.cmake: no such file or directory.)

Build stages selected
---------------------
-config true
-make true
-install true
---------------------
Features selected
mesa false
mpi false
python false
qt true
---------------------
Version information
qt 4.8.6
version 4.1.0

I am not sure if this is the reason for my problems with Paraview (paraFoam) but now I would like to solute this problem befor I go any further with the installation.

Maybe someone like to help me with it,

THX!
Guggelhupf is offline   Reply With Quote

Old   May 17, 2015, 14:06
Default
  #59
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 Guggelhupf and welcome to the forum!

That error message can be ignored. I've already built ParaView 4.1.0 several times on several Linux Distributions and that error message never broke the build process. You can consider it just a warning that is meant for developers

Having access to the "log.makePV" file would make it easier to diagnose what might be the problem. You can compress the file by running this command:
Code:
gzip < log.makePV > log.makePV.gz
then attach the file "log.makePV.gz" to your next post.

Nonetheless, what are the symptoms you're getting with ParaView?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 17, 2015, 14:24
Default
  #60
New Member
 
Björn Greis
Join Date: May 2015
Posts: 8
Rep Power: 10
Guggelhupf is on a distinguished road
Hello Bruno,

thank you for your promt answer. With this you get my zipped log.makePV file. I hope this could help.

Now I will finish the installation of OF and PV and will tell you later my problems with paraFoam, if this happens again,

THX
Attached Files
File Type: gz log.makePV.gz (52.2 KB, 1 views)
Guggelhupf 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 13: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 14:30
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
[OpenFOAM.org] (Script)OpenFOAM 2.3.0 and Paraview for Ubuntu 14.04 p0kerus OpenFOAM Installation 2 December 2, 2014 07:54
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01


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