我已经使用 snap 在我的 ubuntu 机器上安装了 Lua 和 Solar2d。它运行正常,但是当我尝试打开一个项目或创建一个新项目并尝试启动模拟器时,它给了我错误。
rai@rai-ThinkPad-Yoga-260:~/Documents/Solar2D Projects/langraan$ solar2d .
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
Copyright (C) 2009-2100 C o r o n a L a b s I n c .
Version: 3.0.0
Build: 2100.9999
WARNING: Cannot create path for resource file 'resource.car (/snap/solar2d/24/usr/local/bin/Solar2D/Resources/resource.car)'. File does not exist.
Platform: rai-ThinkPad-Yoga-260 / x86_64 / #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 3 11:32:55 UTC 2 / llvmpipe (LLVM 12.0.0, 256 bits) / 3.1 Mesa 21.2.6 / 2100.9999 / En:En | nil | En:En | `��
Loading project from: /snap/solar2d/24/usr/local/bin/Solar2D/Resources/homescreen
Project sandbox folder: /home/rai/snap/solar2d/24/.Solar2D/Sandbox/homescreen
我也有类似的问题。尝试按照此链接中的步骤自行构建 Solar2d https://forums.solar2d.com/t/how-i-made-solar2d-works-on-linux/356469。就我而言,它解决了问题。