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

BEGINNER: Cannot start Paraview

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 20, 2010, 08:39
Default BEGINNER: Cannot start Paraview
  #1
New Member
 
Karin Axelsson
Join Date: Feb 2010
Posts: 11
Rep Power: 7
ka1184 is on a distinguished road
Hi everyone!

I've just started using OpenFOAM and I'm currently trying to run the tutorials (the cavity). blockMesh and icoFoam works, but paraFoam/paraview does not. When I type "paraFoam" in the terminal I get the following error message:

/usr/OpenFoam/ ThirdParty-1.6/paraview-3-6-1/platforms/linux64Gcc/bin/paraview-real: error while loading shared libraries:libQtAssistantClient.so.4: cannot open shared object file: No such file or directory


Does anyone know how to fix this?

Many thanks in advance!
ka1184 is offline   Reply With Quote

Old   February 22, 2010, 01:38
Default
  #2
Member
 
Alan Russell
Join Date: Aug 2009
Location: Boise, Idaho USA
Posts: 61
Rep Power: 7
AlanR is on a distinguished road
You don't have everything installed/compiled correctly. Check out the thread titled 'OpenFOAM-1.6 Install Cookbook' by MadsR. I added the packages that I was missing, re-compiled and everything worked - or you can just run the entire script. Good luck,
Alan
AlanR is offline   Reply With Quote

Old   February 22, 2010, 05:49
Default
  #3
New Member
 
Karin Axelsson
Join Date: Feb 2010
Posts: 11
Rep Power: 7
ka1184 is on a distinguished road
Hi again!

I know this probably is a stupid question, but I hope someonte can help me!
*Does it matter what version of Qt I have?
When i type "qmake --version" it says
"Qmake version: 1.07a (Qt 3.3.3)"

When reading on the OpenFOAM webpage it seems like I need a version that is
Qt 4.3.something

Could that be the problem?
ka1184 is offline   Reply With Quote

Old   February 22, 2010, 05:53
Default
  #4
Member
 
Johan Spång
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 35
Rep Power: 8
josp is on a distinguished road
Yes, you need a later version.
josp is offline   Reply With Quote

Old   February 22, 2010, 06:18
Default
  #5
New Member
 
Karin Axelsson
Join Date: Feb 2010
Posts: 11
Rep Power: 7
ka1184 is on a distinguished road
Thanks!
I'm trying to install a newer version, but I have difficulties finding instructions on how to do it. What I've done now is downloading and extracting a folder called
"qt-x11-opensource-src-4.3.5"
to the Desktop. However it still says Qt 3.3.3 when I ask "qmake --version"

How do install it? Please help me, I'm really new with Linux, so also state things, commands and operations that seem really obvious....

Thanks in advance!
ka1184 is offline   Reply With Quote

Old   February 22, 2010, 06:35
Default
  #6
Member
 
Johan Spång
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 35
Rep Power: 8
josp is on a distinguished road
What linux distro are you using? Do you really need to compile qt yourself? In opensuse 11 you just launch yast -> software management and install libqt4 and libqt4-devel
josp is offline   Reply With Quote

Old   February 22, 2010, 08:48
Default
  #7
New Member
 
Karin Axelsson
Join Date: Feb 2010
Posts: 11
Rep Power: 7
ka1184 is on a distinguished road
What's a linux distro?
Could you talk me through in detail how to install a newer version of Qt?
Right now (apparently...) I have Qt 3.3.3 and apparently I need a newer version...

I have no idea what to do! Any help would be greatly appreciated!
ka1184 is offline   Reply With Quote

Old   February 22, 2010, 11:53
Default
  #8
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Quote:
Originally Posted by ka1184 View Post
What's a linux distro?
This is the Linux distribution. Its basically how you operating system is called.

There is a whole bunch of different distributions like "Ubuntu", "Open Suse", "Debian" ...

Which one do you use?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   February 22, 2010, 14:34
Default
  #9
Member
 
Alan Russell
Join Date: Aug 2009
Location: Boise, Idaho USA
Posts: 61
Rep Power: 7
AlanR is on a distinguished road
Again, I would suggest using the script file in the install cookbook. It's perfect for people who are trying to learn Linux and OF at the same time. All you need to do is download the script file and run it with your system on a good internet connection.

Alan
AlanR is offline   Reply With Quote

Old   February 23, 2010, 03:43
Default
  #10
New Member
 
Karin Axelsson
Join Date: Feb 2010
Posts: 11
Rep Power: 7
ka1184 is on a distinguished road
I found out from my collegues that my operating system is RedHat.

Are there any cook books for this?
I should mention that OpenFOAM is working fine, I generate output files and everything, it's just that I need the visualization tool
Paraview/parfoam.

Any suggestions...? I really need this to work!
Please reply here or send me an e-mail if you have ANY clue, hitn, or anythiing at all that could help me

Last edited by ka1184; February 23, 2010 at 04:01.
ka1184 is offline   Reply With Quote

Old   February 23, 2010, 04:14
Default
  #11
Member
 
Johan Spång
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 35
Rep Power: 8
josp is on a distinguished road
what's the output of

yum search libqt

?
josp is offline   Reply With Quote

Old   February 23, 2010, 04:47
Default
  #12
New Member
 
Karin Axelsson
Join Date: Feb 2010
Posts: 11
Rep Power: 7
ka1184 is on a distinguished road
When I type
yum search libqt
in the terminal, it says

bash: yum: command not found

I did this from both the usr-directory and the Open foam directory and my home directory....

Also, I tried to do this procedure

http://doc.trolltech.com/4.3/install-x11.html
but with a slightly different version and created the following directory:

/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/

Then when I try to type

./configure
it starts fine, but hen says:

Type '3' to view the GNU General Public License version 3.
Type 'L' to view the Lesser GNU General Public License version 2.1.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license? yes

Creating qmake. Please wait...
ln: `/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/include/QtCore/qconfig.h': File exists
ln: `/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/include/Qt/qconfig.h': File exists
g++ -c -o project.o -m64 -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/include -I/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/include/QtCore -I/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/src/corelib/global -I/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/src/corelib/xml -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/mkspecs/linux-g++-64 -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT project.cpp
/usr/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.3.3/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
gmake: *** [project.o] Error 1


????????????????
ka1184 is offline   Reply With Quote

Old   February 23, 2010, 04:55
Default
  #13
New Member
 
Karin Axelsson
Join Date: Feb 2010
Posts: 11
Rep Power: 7
ka1184 is on a distinguished road
When I type
yum search libqt
in the terminal, it says

bash: yum: command not found

I did this from both the usr-directory and the Open foam directory and my home directory....

Also, I tried to do this procedure

http://doc.trolltech.com/4.3/install-x11.html
but with a slightly different version and created the following directory:

/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/

Then when I try to type

./configure
it starts fine, but hen says:

Type '3' to view the GNU General Public License version 3.
Type 'L' to view the Lesser GNU General Public License version 2.1.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license? yes

Creating qmake. Please wait...
ln: `/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/include/QtCore/qconfig.h': File exists
ln: `/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/include/Qt/qconfig.h': File exists
g++ -c -o project.o -m64 -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/include -I/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/include/QtCore -I/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/src/corelib/global -I/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/src/corelib/xml -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/OpenFOAM/qt-everywhere-opensource-src-4.6.2/mkspecs/linux-g++-64 -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT project.cpp
/usr/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.3.3/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
gmake: *** [project.o] Error 1


????????????????
ka1184 is offline   Reply With Quote

Old   March 10, 2010, 08:22
Default
  #14
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 7
Disco_Caine is on a distinguished road
Hi, ive encountered the same initial error karin did:

Code:
created temporary 'cavity.OpenFOAM'
/home/gustavo/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc/bin/paraview-real: error while loading shared libraries: libQtAssistantClient.so.4: cannot open shared object file: No such file or directory
I saw that i need to update the qt4, and in line with was josp said about YaST, i searched for lib4qt in the synaptic package manager (im on ubuntu 9.10).

However there is a great variety of libqt4 packages, which ones should i get?

Theres:

libqt4-sql, -mysql, ruby, etc.

I'm thinking -sql and -dev?

Thanks in advance.
Disco_Caine is offline   Reply With Quote

Old   March 17, 2010, 04:31
Default
  #15
Senior Member
 
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 7
shirazbj is on a distinguished road
RedHat?

Maybe a bit old. It is called Fedora now.
shirazbj is offline   Reply With Quote

Old   March 17, 2010, 10:12
Default
  #16
Member
 
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 7
Canesin is on a distinguished road
If you are in Ubuntu 9.10 you should use the script in the OpenFOAM-1.6 install cookbook" topic... Your bug may be because of misleading dependencies..
I have added a little bunch of code to the script and attached it to the topic today...
Go to: http://www.cfd-online.com/Forums/ope...okbook-16.html

Open a terminal window and do:

$cd ~/Downloads
$sudo chmod +x installOF
$./installOF

Than follow the instructions in the script.
If you want to see the details about the script just open it in gedit (double click and choose display)

PS: the correct dependecie is libqt4-dev ..
The packets are binutils-dev flex git git-core build-essential python-dev libqt4-dev libreadline5-dev wget zlib1g-dev cmake
But AGAIN, USE THE SCRIPT.. you are a novice and you will find also errors in:
*Gcc version (Ubuntu >9.04 use gcc4.4 and OpenFOAM likes gcc4.3
*bashims (Ubuntu >8.04 use dash as default it is faster, but OpenFOAM is written with bash in mind
*Wrong calls to sh (again, default is dash not bash)

So, I and others had a hard time doing the script to easy it all...
Canesin is offline   Reply With Quote

Old   March 25, 2010, 15:57
Default
  #17
New Member
 
anonymous
Join Date: Mar 2010
Posts: 16
Rep Power: 7
h0y5840 is on a distinguished road
Quote:
Originally Posted by ka1184 View Post
Hi everyone!

I've just started using OpenFOAM and I'm currently trying to run the tutorials (the cavity). blockMesh and icoFoam works, but paraFoam/paraview does not. When I type "paraFoam" in the terminal I get the following error message:

/usr/OpenFoam/ ThirdParty-1.6/paraview-3-6-1/platforms/linux64Gcc/bin/paraview-real: error while loading shared libraries:libQtAssistantClient.so.4: cannot open shared object file: No such file or directory


Does anyone know how to fix this?

Many thanks in advance!
I just started to learn OpenFOAM too. Have you ever got a problem to run blockMesh and iceFoam? I got "bash: blockMesh: command not found". I just downloaded and installed but didn't do "Building from Sources (optional)". Do you have any idea what I might be mssing?

Thanks.
h0y5840 is offline   Reply With Quote

Old   March 25, 2010, 16:01
Default
  #18
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Quote:
Originally Posted by h0y5840 View Post
Do you have any idea what I might be mssing?
Did you source the etc/bashrc file?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   March 25, 2010, 16:17
Default
  #19
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Sebastian,

h0y5840 already has a thread for this question here. I will answer there.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 25, 2010, 16:30
Default
  #20
New Member
 
anonymous
Join Date: Mar 2010
Posts: 16
Rep Power: 7
h0y5840 is on a distinguished road
Quote:
Originally Posted by sega View Post
Did you source the etc/bashrc file?
Hi Sega,
Thanks for the question. I did . $HOME/.bashrc after I added . $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc to the end of my $HOME/.bashrc file. Should I do "source etc/bashrc" as well?

HY
h0y5840 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 28 May 28, 2015 13:37
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
Paraview does not start please help quartzian OpenFOAM Paraview & paraFoam 0 September 26, 2008 06:28
Paraview installation troubles jjhall OpenFOAM Installation 3 April 17, 2008 12:59
ParaView patch visualisation error in Development version philippose OpenFOAM Paraview & paraFoam 17 March 26, 2007 06:45


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