Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when loading on MacOS 11 #42

Open
jaykru opened this issue May 4, 2021 · 3 comments
Open

Error when loading on MacOS 11 #42

jaykru opened this issue May 4, 2021 · 3 comments

Comments

@jaykru
Copy link

jaykru commented May 4, 2021

All dependencies installed. This issue affects cl-sdl2 as well. Any clue how to get around this?

% sbcl
This is SBCL 2.1.3, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* (ql:quickload 'sketch)
To load "sketch":
  Load 1 ASDF system:
    sketch
; Loading "sketch"
...
debugger invoked on a LOAD-FOREIGN-LIBRARY-ERROR in thread
#<THREAD "main thread" RUNNING {1004AE81C3}>:
  Unable to find framework OpenGL

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 "cl-opengl" "gl" "library">.
  4: [ACCEPT                       ] Continue, treating
                                     loading FASL for #<CL-SOURCE-FILE "cl-opengl" "gl" "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 "sketch"
 10: [REGISTER-LOCAL-PROJECTS      ] Register local projects and try again.
 11:                                 Exit debugger, returning to top level.

(CFFI::FL-ERROR "Unable to find framework ~A" "OpenGL")
   source: (ERROR 'LOAD-FOREIGN-LIBRARY-ERROR :FORMAT-CONTROL CONTROL
                  :FORMAT-ARGUMENTS ARGUMENTS)
0]
@brandflake11
Copy link

Does this have to do with the fact macos has deprecated opengl for their metal api since macos 10.14? Maybe that's why your sbcl can't find opengl. https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_pg_concepts/opengl_pg_concepts.html

@jaykru
Copy link
Author

jaykru commented May 4, 2021

I don't think so. It's "deprecated" but not removed; OpenGL.Framework is present in /System/Library/Frameworks

@Gleefre
Copy link
Contributor

Gleefre commented Jan 29, 2024

I believe that this is cffi's issue, which was fixed some time ago.

See https://bugs.launchpad.net/cffi/+bug/1906982. The fix was released quite some time ago, so this should be fixed by upgrading cffi. This probably would include upgrading quicklisp distribution which can be done via (ql:update-all-dists) or (ql:update-dist "quicklisp")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants