CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Paraview & paraFoam (http://www.cfd-online.com/Forums/openfoam-paraview/)
-   -   parafoam - paraview help function (http://www.cfd-online.com/Forums/openfoam-paraview/76696-parafoam-paraview-help-function.html)

felik9 June 2, 2010 00:06

parafoam - paraview help function
 
Hi,

I am trying to run the help function available in paraview, but I get the error message "Failed to launch Qt installer". Is there a way to fix this problem?

I use the command paraFoam to run paraview program. I have the linux 32-bit parafoam ver 1.6, and paraview ver 3.6.1.


Thanks in advance for your help.

wyldckat June 2, 2010 18:43

Greetings felik9,

There are two things necessary for Help to work in the pre-built ParaView:
  1. install Qt4 Assistant in your Linux installation; the package could be called "qt4dev-tools" or something like that, depending on what Linux distribution you are using.
  2. you'll need to fix the path for the help files that is built-in the file pqClientDocFinder.txt:
    Code:

    cd $WM_THIRD_PARTY_DIR/paraview-3.6.1/platforms/linuxGcc/bin
    mv pqClientDocFinder.txt pqClientDocFinder_orig.txt
    cat pqClientDocFinder_orig.txt | sed 's/\/home\/dm2\/henry\/OpenFOAM/'${HOME}/OpenFOAM'/' > ./pqClientDocFinder.txt

Best regards,
Bruno

felik9 June 3, 2010 00:36

Hi Bruno,

I followed your instructions. When I entered the third command, I get the following message.

Code:

cat pqClientDocFinder_orig.txt | sed 's/\/home\/dm2\/henry\/OpenFOAM/'${HOME}/OpenFOAM'/' > ./pqClientDocFinder.txt
sed: -e expression #1, char 33: unknown option to `s'

I ignored this message, and then typed the ". $HOME/.bashrc" command before running paraFoam. Now I get the following error message when I click the help option.

Help Error:
Couldn't find pqClient.adp.
Try setting the PARAVIEW_HELP environment variable which points to that file


I don't understand what this means. What should I do?

Thanks,

Felik9

wyldckat June 3, 2010 07:26

Hi Felik9,

Sorry about that, I should have tested the command first :( Try this:
Code:

cd $WM_THIRD_PARTY_DIR/paraview-3.6.1/platforms/linuxGcc/bin
cat pqClientDocFinder_orig.txt | sed 's=\/home\/dm2\/henry\/OpenFOAM='${HOME}/OpenFOAM'=' > ./pqClientDocFinder.txt

Basically, when using sed, the slash "/" character is the usual character for separating the before and after expressions; but in this case, we need to change paths that rely heavily in the slash, so it's best to change the usual slash to another character, in this case the equality "=" character :)

Best regards,
Bruno

felik9 June 3, 2010 12:08

Thanks for your help, Bruno!

It's working now, but the Help that I get is for Paraview ver. 3.5 not 3.6.1. Shouldn't there be a Help for version 3.6.1?

:)

Felik9

wyldckat June 3, 2010 15:03

Quote:

Originally Posted by felik9 (Post 261562)
Thanks for your help, Bruno!

You're welcome :)

Quote:

Originally Posted by felik9 (Post 261562)
It's working now, but the Help that I get is for Paraview ver. 3.5 not 3.6.1. Shouldn't there be a Help for version 3.6.1?

:eek: what the..? I didn't notice that before! Probably the ParaView developers forgot to update the version in the help file :)


All times are GMT -4. The time now is 07:48.