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! |
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 |
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? |
Yes, you need a later version.
|
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! |
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
|
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! :) |
Quote:
There is a whole bunch of different distributions like "Ubuntu", "Open Suse", "Debian" ... Which one do you use? |
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 |
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 :) |
what's the output of
yum search libqt ? |
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 ???????????????? |
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 ???????????????? |
Hi, ive encountered the same initial error karin did:
Code:
created temporary 'cavity.OpenFOAM' 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. |
RedHat?
Maybe a bit old. It is called Fedora now. |
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... |
Quote:
Thanks. |
Quote:
|
|
Quote:
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. |