CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   BEGINNER: Cannot start Paraview (https://www.cfd-online.com/Forums/openfoam/72880-beginner-cannot-start-paraview.html)

ka1184 February 20, 2010 07:39

BEGINNER: Cannot start Paraview
 
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!

AlanR February 22, 2010 00:38

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

ka1184 February 22, 2010 04:49

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?

josp February 22, 2010 04:53

Yes, you need a later version.

ka1184 February 22, 2010 05:18

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!

josp February 22, 2010 05:35

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

ka1184 February 22, 2010 07:48

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!
:)

sega February 22, 2010 10:53

Quote:

Originally Posted by ka1184 (Post 246874)
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?

AlanR February 22, 2010 13:34

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

ka1184 February 23, 2010 02:43

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

josp February 23, 2010 03:14

what's the output of

yum search libqt

?

ka1184 February 23, 2010 03:47

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 February 23, 2010 03:55

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


????????????????

Disco_Caine March 10, 2010 07:22

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.

shirazbj March 17, 2010 03:31

RedHat?

Maybe a bit old. It is called Fedora now.

Canesin March 17, 2010 09:12

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...

h0y5840 March 25, 2010 14:57

Quote:

Originally Posted by ka1184 (Post 246706)
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.

sega March 25, 2010 15:01

Quote:

Originally Posted by h0y5840 (Post 251702)
Do you have any idea what I might be mssing?

Did you source the etc/bashrc file?

wyldckat March 25, 2010 15:17

Greetings Sebastian,

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

Best regards,
Bruno

h0y5840 March 25, 2010 15:30

Quote:

Originally Posted by sega (Post 251703)
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


All times are GMT -4. The time now is 13:33.