我尝试使用命令“nvcc -lglut julia.cu -o julia”编译 julia 示例代码并收到以下错误
Starting build...
/usr/bin/ld: /tmp/tmpxft_00004758_00000000-11_julia_gpu.o: undefined reference to symbol 'glFlush'
/usr/bin/ld: /lib/aarch64-linux-gnu/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Build finished with error(s).
The terminal process terminated with exit code: -1.
我也尝试安装 OpenGL,但出现同样的错误。