CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [Other] paraFoam cannot work (https://www.cfd-online.com/Forums/openfoam-installation/195357-parafoam-cannot-work.html)

Chaix November 5, 2017 10:50

paraFoam cannot work
 
After installing paraview and openfoam on Mac OS X 10.13,they can run well seperately. After the calculation of openfoam,I type the command 'paraFoam', libGL error shows up.
The errors are as following:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast


I tried to figure it out by typing the following command when openfoam is running and then got a failed result :

ln -s /Applications/Paraview-5.4.0.app/Contents/MacOS/paraview $WM_PROJECT_DIR/bin/paraview
ln: failed to create symbolic link 'opt/openfoam5/bin/paraview':Permission denied


Need your help! I am very appreciated!

wyldckat November 12, 2017 16:25

Quick questions:
  1. Which installation instructions have you followed?
  2. If you are using Docker, what (complete) command did you use to launch the command line access to OpenFOAM?

Chaix November 25, 2017 06:51

no such file: drirc
 
Quote:

Originally Posted by wyldckat (Post 671403)
Quick questions:
  1. Which installation instructions have you followed?
  2. If you are using Docker, what (complete) command did you use to launch the command line access to OpenFOAM?

The answers are as following:
1.I followed the instructions on https://openfoam.org
2.the command is openfoam5-macos -p

I tested my libGL and got information as following:

OpenFOAM-5.0(511) LIBGL_DEBUG=verbose glxgears
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: Can't open configuration file /home/openfoam/.drirc: No such file or directory.
libGL: Can't open configuration file /home/openfoam/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 28
Current serial number in output stream: 30

It seems that there isn't a file named ".drirc" under the directory "/home/openfoam".
But where can i get this file?

wyldckat November 25, 2017 16:30

Quick answers:
Quote:

Originally Posted by Chaix (Post 672822)
It seems that there isn't a file named ".drirc" under the directory "/home/openfoam".
But where can i get this file?

That is a settings file that you can create yourself as a text file, which should have the correct commands inside it in order to provide a different driver definition to be used for OpenGL rendering...
However, I don't know if anything written on that file would work in this specific situation.

There was a bug report on this topic several weeks ago, where additional information is provided there on how you can solve or at least work around this problem. See the following report and comments therein: https://bugs.openfoam.org/view.php?id=2704


All times are GMT -4. The time now is 23:19.