CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   library not found Fedora 11 (https://www.cfd-online.com/Forums/openfoam-installation/68279-library-not-found-fedora-11-a.html)

peterk September 13, 2009 09:04

library not found Fedora 11
 
Hello,
I am rather new to Linux.
I have succeeded in installing Qt4.3.5 in /usr/local/Trolltech and with qmake in that directory I have installed paraview3.6.1
I have added the lines
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
in the file paraview3.6.1/CMake, after a warning that these lines should be added, as some libraries would not be found.
with this version of CMake I have run ./Allwclean and ./Allwmake for building PV3Foamreader
However when I run the cavity example problem I get the following error message when running paraFoam:
/home/pk28831/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.

This shared library excists and is linked to
[pk28831@sys4 lib]$ ll libQtAssistantClient.so.4.3.5
-rwxr-xr-x. 1 root root 28504 2009-09-12 22:14 libQtAssistantClient.so.4.3.5

How can I solve this
Thanks in advance
Peter

gwierink September 14, 2009 03:22

Hi Peter,

I had to compile cmake-2.4.6 (from source) in order to be able to build Qt properly. Have a look at that, it may work for you as well.

Regards,

Gijs

peterk September 16, 2009 02:06

Qt 4
 
Hi Gijs,
I have tried it but the result is the same. Is it possible that some environment variable has to be set? In the document of qt it is stated that the $PATH (/usr/local/.../Qt.. should be set via an export in the .profile file. However this file does not excist, there is a .bash-profile, but adding this line does not change $PATH, so I have put it in the .bashrc file.
Does it matter in which sequence everything is built? I stated with cmake, next OpenFoam, Qt and at last ParaView.
I have to make the changes overnight at home, thats why it takes some time .
Thanks,
Peter

gwierink September 17, 2009 03:06

Hi Peter,

I did things in the following order:

Unpack/compile OpenFOAM

Unpack and build Qt-4.3.5 in ~/tmp/

Export Qt by putting
Code:

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

in ~/.bashrc

Source OpenFOAM in the shell by also adding
Code:

. $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc
to ~/.bashrc (notice the dot at the start of the line)

Source bashrc by
Code:

. $HOME/.bashrc
Then, (re)build ParaView by

Code:

cd $WM_THIRD_PARTY_DIR
Code:

rm -rf paraview-3.6.1/platforms
Code:

makeParaView
On some systems you also need to rebuild the reader:

Code:

cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
Code:

./Allwclean
Code:

./Allwmake
Hope this helps.

Regards,

Gijs

peterk September 19, 2009 16:42

binaries installed
 
Hi Gijs,
Also with your setup I did not succeed. At last I have removed the content of the paraview directory in ~/OpenFoam/Third_Party-1.6 and replaced it with the files I downloaded from the ParaView site. Also then I still got the same error message.
I also downloaded the binaries from this site. ParaView was running, but openFoam was not.
Then I copied all .so* files which were not found when running paraFoam to the directory /home/pk28831/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc/bin.
Now the system is working. I think the problem was that Qt....so.4 was linked to Qt..so.4.3.5.
Thanks for your support.
Best regards,
Peter


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