From d46867f51a3ba0c6d00fe14209deee741a0a54c4 Mon Sep 17 00:00:00 2001 From: William Robinson Date: Sat, 19 Jan 2008 12:58:15 +0000 Subject: [PATCH] Fix for building under ECL, working under the assumption that there is a libglfw.so installed in /usr/lib/ or /usr/local/lib/. --- .gitignore | 1 + lib/glfw.lisp | 14 +++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 37d9f50..b1337b3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ src/gl.tm src/enum.spec src/enumext.spec *.fasl +*.fas *~ diff --git a/lib/glfw.lisp b/lib/glfw.lisp index 1306453..d7c0a9b 100644 --- a/lib/glfw.lisp +++ b/lib/glfw.lisp @@ -62,11 +62,15 @@ `(mem-ref ,(first arg) ',(second arg))) out-args))))))) - -(load-foreign-library '(:or - #+darwin (:framework "GLFW") - (:default "glfw") - (:default "libglfw"))) +;; ECL's DFFI seems to have issues if you don't put the full path in +#+(and unix ecl) +(setf cffi:*foreign-library-directories* + (list "/usr/local/lib/" "/usr/lib/")) + +(cffi:load-foreign-library '(:or + #+darwin (:framework "GLFW") + (:default "glfw") + (:default "libglfw"))) ;; Key and button state/action definitions (defconstant +release+ 0) -- 2.11.4.GIT