Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory #54

Open
laozhuang727 opened this issue Apr 29, 2023 · 0 comments

Comments

@laozhuang727
Copy link

我的机器上有两个显卡,运行的时候报上面的这个错误
执行glxinfo |grep OpenGL 发现第一个显卡不是nvidia的主显卡

留一个解决方案给后人
sudo prime-select nvidia
sudo reboot

再次执行glxinfo |grep OpenGL 发现第一个显卡已经是nvidia的主显卡
(StreetFighterAI) ➜ main git:(master) glxinfo |grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 4080 Laptop GPU/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 530.30.02
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 530.30.02
OpenGL shading language version string: 4.60 NVIDIA

重启后再运行代码,问题得以解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant