-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpgplot-load-libs.lisp
More file actions
32 lines (21 loc) · 941 Bytes
/
pgplot-load-libs.lisp
File metadata and controls
32 lines (21 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
;; routines for loading pgplot libraries for cmucl - would like
;; to put this into into pgplot-cmucl, but cmucl barfs about
;; undefined foreign symbols unless libraries get loaded before
;; they are referenced -- (eval-when (load eval compile)...) does
;; not do the trick, alas
(in-package pgplot)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(in-package pgplot)
#-linux-raspberry-pi-arm32
(eval-when (:load-toplevel)
(cffi:define-foreign-library libcpgplot
(:darwin (:or "libcpgplot.dylib"))
(:unix (:or "libcpgplot.so")))
(cffi:use-foreign-library libcpgplot)
)
#+linux-raspberry-pi-arm32 ;; temporary kludge
(eval-when (:load-toplevel)
(cffi:load-foreign-library "/usr/local/lib/libpgplot.so")
(cffi:load-foreign-library "/usr/local/lib/libcpgplot.so"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;