我的编译器无法编译代码,并抱怨找不到 libGL。这很奇怪,因为它已经链接了。当我执行详细操作时,我得到:
attempt to open //usr/local/lib/aarch64-linux-gnu/libGL.so failed
attempt to open //usr/local/lib/aarch64-linux-gnu/libGL.a failed
attempt to open //lib/aarch64-linux-gnu/libGL.so failed
attempt to open //lib/aarch64-linux-gnu/libGL.a failed
attempt to open //usr/lib/aarch64-linux-gnu/libGL.so failed
attempt to open //usr/lib/aarch64-linux-gnu/libGL.a failed
attempt to open //usr/local/lib/libGL.so failed
attempt to open //usr/local/lib/libGL.a failed
attempt to open //lib/libGL.so failed
attempt to open //lib/libGL.a failed
attempt to open //usr/lib/libGL.so failed
attempt to open //usr/lib/libGL.a failed
attempt to open //usr/aarch64-linux-gnu/lib/libGL.so failed
attempt to open //usr/aarch64-linux-gnu/lib/libGL.a failed
ld: cannot find -lGL
whereis libGL.so 给我:
libGL: /usr/lib/aarch64-linux-gnu/libGL.so /usr/lib/libGL.so
问题是什么?
在此之前我做过:
cd /usr/lib/aarch64-linux-gnu/
sudo ln -sf tegra/libGL.so libGL.so