Open acekingke opened 1 year ago
That function has been move to https://github.com/cbaggers/rtg-math It is also described in the README file , 2018-02-17!
One solution is to use cepl.examples:
cd ~/quicklisp/local-projects/
git clone https://github.com/cbaggers/cepl.examples
sbcl --eval '(ql:register-local-projects)' --quit
and replacing the first line in your example with
(ql:quickload :cepl.examples)
(in-package :cepl.examples)
Having a look at fraggle - especially fraggle.asd and package.lisp - might also be helpful to figure out which dependencies are needed.
@metayan I do it following your advice, But it did not work, My compute is m2 macos.
* (ql:quickload :cepl.examples)
(in-package :cepl.examples)To load "cepl.examples":
Load 1 ASDF system:
cepl.examples
; Loading "cepl.examples"
.To load "dirt":
Load 5 ASDF systems:
asdf cepl cffi cl-opengl documentation-utils
Install 2 Quicklisp releases:
cl-soil dirt
; Fetching #<URL "http://beta.quicklisp.org/archive/cl-soil/2018-08-31/cl-soil-release-quicklisp-f27087ce-git.tgz">
; 322.66KB
==================================================
330,400 bytes in 0.69 seconds (465.46KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/archive/dirt/2017-10-19/dirt-release-quicklisp-0d13ebc2-git.tgz">
; 5.46KB
==================================================
5,590 bytes in 0.00 seconds (6332.93KB/sec)
; Loading "dirt"
..................................................
..................................................
..................................................
[package cl-soil].................................
[package stb-image]...............................
[package dirt].
To load "cepl.examples":
Load 1 ASDF system:
cepl.examples
; Loading "cepl.examples"
To load "temporal-functions":
Load 1 ASDF system:
fn
Install 1 Quicklisp release:
temporal-functions
; Fetching #<URL "http://beta.quicklisp.org/archive/temporal-functions/2017-10-19/temporal-functions-20171019-git.tgz">
; 6.43KB
==================================================
6,586 bytes in 0.00 seconds (3522.26KB/sec)
; Loading "temporal-functions"
[package temporal-functions]......................
[package tiny-time-manager].....
To load "cepl.examples":
Load 1 ASDF system:
cepl.examples
; Loading "cepl.examples"
To load "with-setf":
Load 1 ASDF system:
asdf
Install 1 Quicklisp release:
with-setf
; Fetching #<URL "http://beta.quicklisp.org/archive/with-setf/2018-02-28/with-setf-release-quicklisp-df3eed9d-git.tgz">
; 2.50KB
==================================================
2,558 bytes in 0.00 seconds (1503.04KB/sec)
; Loading "with-setf"
[package with-setf]
To load "cepl.examples":
Load 1 ASDF system:
cepl.examples
; Loading "cepl.examples"
...............
debugger invoked on a LOAD-FOREIGN-LIBRARY-ERROR in thread
#<THREAD "main thread" RUNNING {70016C80A3}>:
Unable to load foreign library (ASSIMP).
Error opening shared object "libassimp.dylib":
dlopen(libassimp.dylib, 0x000A): tried: 'libassimp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibassimp.dylib' (no such file), '/usr/lib/libassimp.dylib' (no such file, not in dyld cache), 'libassimp.dylib' (no such file).
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [RETRY ] Try loading the foreign library again.
1: [USE-VALUE ] Use another library instead.
2: [TRY-RECOMPILING ] Recompile library and try loading it again
3: [RETRY ] Retry
loading FASL for #<CL-SOURCE-FILE "classimp" "library">.
4: [ACCEPT ] Continue, treating
loading FASL for #<CL-SOURCE-FILE "classimp" "library">
as having been successful.
5: Retry ASDF operation.
6: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
configuration.
7: Retry ASDF operation.
8: Retry ASDF operation after resetting the
configuration.
9: [ABORT ] Give up on "cepl.examples"
10: [REGISTER-LOCAL-PROJECTS ] Register local projects and try again.
11: Exit debugger, returning to top level.
(CFFI::FL-ERROR "Unable to load foreign library (~A).~% ~A" ASSIMP #<(COMMON-LISP:SIMPLE-BASE-STRING 288) Error opening shared object "libassimp.dylib":
dlopen(libassimp.dylib, 0x000A): tried: 'libassimp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibassimp.dylib' (no such file), '/usr/l... {7007275F1F}>)
source: (ERROR 'LOAD-FOREIGN-LIBRARY-ERROR :FORMAT-CONTROL CONTROL
:FORMAT-ARGUMENTS ARGUMENTS)
0]
Oh yes, cepl.examples
has a bunch of dependencies, like assimp
, that first need to be installed on the system to be able to use them from Lisp. Can be done with Homebrew.
However, to keep it simple I made a small example for you with minimal dependencies: https://github.com/metayan/cepl-minimal
Got your triangle example to run by replacing the (in-package :cepl)
with
(in-package :cepl-minimal)
loading cepl-minimal
and then C-c C-k
the triangle file in Emacs.
Also made https://github.com/metayan/cepl-start which has some helper functions for display handling that I find useful.
Thank you, it works.
metayan @.***> 于2023年5月29日周一 05:45写道:
Oh yes, cepl.examples has a bunch of dependencies, like assimp, that first need to be installed on the system to be able to use them from Lisp. Can be done with Homebrew.
However, to keep it simple I made a small example for you with minimal dependencies: https://github.com/metayan/cepl-minimal
Got your triangle example to run by replacing the (in-package :cepl) with
(in-package :cepl-minimal)
loading cepl-minimal and then C-c C-k the triangle file in Emacs.
Also made https://github.com/metayan/cepl-start which has some helper functions for display handling that I find useful.
— Reply to this email directly, view it on GitHub https://github.com/cbaggers/cepl/issues/361#issuecomment-1566274301, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZ4FRSJZ3OTBAU6ELZXHJDXIPBP5ANCNFSM6AAAAAAYM4L744 . You are receiving this because you authored the thread.Message ID: @.***>
when I use brew install assimp
, it got error like this:
trying to link against unsupported version of assimp. 3.0-5.0.x supported, got version 5.2
I compile the codes as follow:
I use emacs + slime, When I compile it with key
C+c C+k
, It got errors like this: