我有泥配置上的Arch Linux的Common Lisp(SBCL)开发的emacs。事情是,我现在也想开始使用OpenGL,所以我已经安装了cl-opengl来提供必要的绑定。我还在.local/share/common-lisp上建立了一个到/ usr/share/common-lisp的符号链接(我应该能够以这种方式使用ASDF加载所有系统)。“包GLUT不存在”,即使安装在Arch Linux的CL-的OpenGL
然而,当我尝试编译在泥下面的代码(使用抄送CK)
(require :asdf) ; need ASDF to load other things
(asdf:load-system :cl-opengl) ; load OpenGL bindings
(asdf:load-system :cl-glu) ; load GLU bindings
(asdf:load-system :cl-glut) ; load GLUT bindings
(defclass my-window (glut:window)
()
(:default-initargs :width 400 :height 300
:title "My Window Title"
:x 100 :y 100
:mode '(:double :rgb :depth)))
(defmethod glut:display-window :before ((win my-window))
(gl:shade-model :smooth) ; enables smooth shading
(gl:clear-color 0 0 0 0) ; background will be black
(gl:clear-depth 1) ; clear buffer to maximum