3b1b / 3b1b/manim

OSError: libGL.so not found while running embed mode in ManimGL

未關閉
#2,234 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
93.9k
分支
7.7k
平均合併
2 天 13 小時
30 天內合併 PR
4

描述

### Describe the error
I am encountering an `OSError` when trying to run a ManimGL script in embed mode. The error indicates that the `libGL.so` file cannot be found, which prevents the code from executing properly.

### Code and Error
**Code**:
```python
from manimlib import *

class Def(InteractiveScene):
def construct(self):
self.embed()
color = Square()
self.play(
Write(color), run_time=1
)
t = TexText("Requested Square")
t.set_color_by_gradient([BLUE, YELLOW_A])
self.add(t)
self.wait(2)
```

**Error**:
```
OSError: libGL.so: cannot open shared object file: No such file or directory
```

### Environment
**OS System**: Ubuntu on Termux (Android)
**manim version**: master
**python version**: 3.13

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

在 Ubuntu/Termux 上以 embed mode 執行 ManimGL 時發生此錯誤,表示缺少 OpenGL 函式庫。首先檢查系統圖形驅動程式安裝情況及 libGL.so 的可用性。查看 manimlib 中的 embed mode 初始化程式碼,瞭解它如何載入 OpenGL。透過安裝必要的圖形庫(例如 libgl1-mesa-glx)並重新測試腳本來驗證修復。

由索引模型根據 Issue 內容生成。

評估

領域
desktop-dev
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。