CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Urgently need to install OpenFOAM: paraview problems. (http://www.cfd-online.com/Forums/openfoam-installation/64534-urgently-need-install-openfoam-paraview-problems.html)

rieuk May 14, 2009 00:58

Urgently need to install OpenFOAM: paraview problems.
 
Hey guys,

I'm running Ubuntu 9.04 (Jaunty) and I've installed paraview using the synaptic package manager. However when I try to continue with the installation procedure in the OpenFOAM Readme file by running paraFoam in the icoFoam cavity simmulation I get the folliwng error:

Quote:

paraview: symbol lookup error: /usr/lib/libmpi_cxx.so.0: undefined symbol: ompi_registered_datareps
It's just been issue after issue with this damn software! Any ideas for this one? :((( I have limited experience with Linux...

rieuk May 16, 2009 01:31

Nobody has any ideas then.

I've reverted to Ubuntu 8.04 and it works fine. If any finds out how to get it to work on 9.04, please post.

gwierink May 18, 2009 07:18

Hi James,

Check this thread, it seems they have solved at least part of the issue there.

Regards,

Gijsbert

Null May 23, 2009 21:10

I run Ubuntu 9.04. I went to kitware. downloaded paraview 3.4 86 64, "tar-it-ed open" went to the bin, click on "paraview" and it starts right away. I didn't get cmake or qt at all. maybe those were in 9.04 already.

the problem is to make parafoam work with it. i've been studying any information I could find, changed variables and paths on some of the scripts, but is not very clear yet how is it that OF gets into paraview.there are some lines on the parafoam script that Im trying to understand.

I'll let you know if I figure it out.

gwierink May 24, 2009 03:39

Hi Null,

I guess what you have done now is download the binary of Paraview and untar it, so Paraview just works (usually). Probably you need to actually compile Paraview on your computer (i.e. build your own binary) to make Paraview work with OpenFOAM as paraFoam. And for that you need Qt-4.3.x, which you also need to compile. What is the output of
Code:

qt --version
?

Cheers,

Gijs

Null May 24, 2009 07:58

Hello Gijs,

yes thats what I did. In the beginning , weeks ago I was trying to compile qt to be able to compile paraview inside OF, but it was a nightmare.

so I said screw it-I'll use VTKToFoam. the code qt --version
gives a command not found.
I posted because the initial poster said Paraview and not paraFoam.

gwierink May 24, 2009 09:12

Hi Null,

Ok, well, that probably works :). But if you want to get OpenFOAM to work with ParaView directly the following recipe should work. After unpacking the OpenFOAM packages from OpenCFD and putting the right line into ~/.bashrc, you need to get Qt-4.3.x (4.3.5 works for me) from Trolltech. The compilation of Qt needs the complete X11 package and some openGL libraries to be available. You can get these via the Synaptic package manager looking for X11 and mesa-libGL (and/or openGL) and just grabbing everything. Via command line it would be something like
Code:

sudo apt-get mesa-libGL\*-devel freeglut-devel libdrm-devel
and
Code:

sudo yum groupinstall x-software-development development-tools
Perhaps it's a little bit different, because here I just "Ubuntu-fied" some Fedora commands :). In my case I also needed to install ld-linux.so.2, but the Qt installer will tell you what is missing.
Then, it is time to install Qt. Put the Qt-package in some temporary directory, e.g. ~/tmp/, and unpack it. Then configure Qt for installation and install it by
Code:

./configure
Code:

gmake
and
Code:

gmake install
Then, source Qt-4.3.5 in by putting
Code:

    PATH=/tmp/qt-x11-opensource-src-4.3.5/bin:$PATH
    export PATH

in ~/.bashrc. Now ParaView can be rebuild (see Section 7 of the OpenFOAM README).Do the following:

Code:

cd $FOAM_INST_DIR/ThirdParty
Code:

rm -rf ParaView3.3-cvs/platforms
Code:

buildParaView3.3-cvs
The PV3FoamReader module is an OpenFOAM utility that can be compiled in the usual manner as follows:

Code:

cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
Code:

./Allwclean
Code:

./Allwmake
Finally, update the terminal by
Code:

. $HOME/.bashrc
There is also an install script available for Ubuntu. It's somewhere on this forum, you can search for it. Hope this is of any help.

Regards,

Gijs

Null May 24, 2009 10:34

Gijs,

That is very nice of you. I appreciate very much your time and attention to explain all this . I will try it today. Definitively the idea is to use parafoam and not transition all the stuff to paraview.

in the worst-worst of the cases I had burned the openFOAM-slax cd . having plan the proceedure as design it in Catia ( which I can do with my eyes closed-so feel free if you have any question about it), mesh it in salome and then run the slax live cd .

Thank you very much. I'll tell you how it work it.

hansel June 26, 2009 18:44

Quote:

Originally Posted by rieuk (Post 216024)
Hey guys,

It's just been issue after issue with this damn software! Any ideas for this one? :((( I have limited experience with Linux...

I feel your pain! I've been trying to get paraview to work for days now. I did solve the library problem you had by building the mpi library (openmpi-1.2.6) and making sure the path and LD_LIBRARY_PATH point there first. But I just hit another library problem after that.

I think much of the problems we are having are:
1) wrong versions of libraries. They are very specific about the QT requirements, but I think there are others that are just as critical. Unfortunately I don't know what they are.

2) Having the include path not match the LD_LIBRARY_PATH so during compilation a .h file for a different version of the library is used. I tried to solve this by using the package manager to uninstall all other versions of QT, and openmpi.

3) Probably something else since I'm still stuggling with this. And I do have linux experience. It's easier for me to modify and rebuild a kernel than it is for me to get this software working. :-)

On the system you reverted to, would you check some versions for me: gcc, openmpi, and qt. It might help me out.

Given that paraview is so fussy about libraries, wouldn't it be possible for someone who has it working, to compile it with the libraries staticly linked in? (maybe that's not possible in today's linuxs) I know it defeats the purpose of shared libraries, but it's not all that efficient to have to load a special version of a shared library for one piece of software anyway.

yapalparvi July 3, 2009 13:16

Hi,

I have been trying to install OpenFOAM on my ubuntu 9.04 machine ans have succesfully installed but the paraview part is not working. I followed the same instructions as in the readme file. I have instaled qt4.3.5 and used the export commands in my ~/.bashrc file

When I try to build paraview I get the following error message
%%%%%%%%%%%%%%%%%%%%%%%%%%%
CMake Error: This project requires some variables to be set,
and cmake can not find them.
Please set the following variables:
QT_X11_Xext_LIBRARY (ADVANCED)

-- Configuring done
make: *** No targets specified and no makefile found. Stop.
done
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


any help would be appreciated. Thanks

hansel July 3, 2009 17:00

Quote:

Originally Posted by yapalparvi (Post 221420)
Hi,

I have been trying to install OpenFOAM on my ubuntu 9.04 machine ans have succesfully installed but the paraview part is not working. I followed the same instructions as in the readme file. I have instaled qt4.3.5 and used the export commands in my ~/.bashrc file

When I try to build paraview I get the following error message
%%%%%%%%%%%%%%%%%%%%%%%%%%%
CMake Error: This project requires some variables to be set,
and cmake can not find them.
Please set the following variables:
QT_X11_Xext_LIBRARY (ADVANCED)

-- Configuring done
make: *** No targets specified and no makefile found. Stop.
done
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


any help would be appreciated. Thanks

I couldn't get QT-4.3.5 to build working code on 64 bit Ubuntu 9.04. I used the QT packages that came with the system. I also had to use the system's cmake.

see this thread.

yapalparvi July 4, 2009 10:55

Hi,
I tried that method too but no avail. Thanks for your suggestion.

hansel July 4, 2009 12:04

Quote:

Originally Posted by yapalparvi (Post 221466)
Hi,
I tried that method too but no avail. Thanks for your suggestion.

Well since I know that method works, maybe should try to make it work for you. What problems do you run into using the system version of QT and the system's cmake?

yapalparvi July 4, 2009 12:15

Thie current version of QT is Qt4.5 and when I run buildParaView command

It just says errors configuring not done

No error message at all like in my previous case

hansel July 4, 2009 12:25

Quote:

Originally Posted by yapalparvi (Post 221474)
Thie current version of QT is Qt4.5 and when I run buildParaView command

It just says errors configuring not done

No error message at all like in my previous case

I believe the command you are supposed to use is buildParaView3.3-csv. (or is that cvs?) The buildParaview script is something that the first script calls after it sets things up for the build.

yapalparvi July 4, 2009 12:40

yes buildParaView3.3-cvs. I used the same command. I shall send you the log file


All times are GMT -4. The time now is 01:58.