JintaoLee-Roger / cigvis

CIGVis is a tool for geophysical data visualization, which developed by Computational Interpretation Group (CIG)
MIT License
53 stars 13 forks source link

libGL error: failed to load driver #15

Open JintaoLee-Roger opened 1 month ago

JintaoLee-Roger commented 1 month ago

For example: "libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so:" "libGL error: failed to load driver: iris"

This error is not caused by the CIGVis itself but is likely due to a version conflict with the shared libraries. More specifically, it may be caused by an unusual setting in the environment variable LD LIBRARY PATH (or DYLD LIBRARY PATH on macOS), which results in the incorrect shared library being loaded first.

JintaoLee-Roger commented 1 month ago

You can try to solve this by two methods.

First, set:

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6

Otherwise, you can check your .bashrc or .zshrc file, and comment out the lines like export LD_LIBRARY_PATH... (DYLD_LIBRARY_PATH on MacOS). Then, run source ~/.bashrc or source ~/.zshrc.