Fatal error during graphic initialization

If you get the following error message when running an Open CASCADE Technology based application:

Fatal error during graphic initialization

Or if the application crashes without displaying error messages, you must set the environment variable CSF_GRAPHICSHR as follows:

• On Windows, if we suppose that OCCT is installed in D:\OpenCASCADE6.3.0

                 Set CSF_GraphicShr= D:\OpenCASCADE6.3.1\ros\win32\bin\TkOpenGl.dll

• On Linux or Unix, if we suppose that OCCT is installed in .../mydisk/ OpenCASCADE6.3.0               

Setenv CSF_GraphicsShr /mydisk/ OpenCASCADE6.3.0ros/lin/lib/libTKOpenGl.so