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

Version requirements? / CoreGraphics #2215

Closed
bkovitz opened this issue Aug 6, 2018 · 3 comments
Closed

Version requirements? / CoreGraphics #2215

bkovitz opened this issue Aug 6, 2018 · 3 comments

Comments

@bkovitz
Copy link

bkovitz commented Aug 6, 2018

Running drracket or gracket from Racket v7.0 on OSX 10.7.5, I get this error:

ffi-lib:` couldn't open "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics.dylib" (dlopen(/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics.dylib, 6): image not found)

I figure the problem is just that I'm running on an old OS. Apple added CoreGraphics in OSX 10.8.

I couldn't find documentation on which OS versions each version of Racket requires. Is there any? If not, would it be possible to put it on a page such as https://download.racket-lang.org/all-versions.html ?

Alternatively, is there a way to run Racket v7.0 under this old OS? Can I configure or rebuild it so it doesn't depend on CoreGraphics?

@mflatt
Copy link
Member

mflatt commented Aug 6, 2018

Racket is meant to run on Mac OS X 10.6 and up (for a 64-bit build, or 10.5 for a 32-bit build). But I forgot to actually check v7.0 on older version of the OS. Version 7.0 introduced a problem change that targets Mac OS 10.13 and up, so it can be disabled for 10.7.

You should be able to make things run on OS X 10.7 by modifying the following files:

  • "share/pkgs/gui-lib/mred/private/wx/cocoa/utils.rkt" line 41, change to
(define cg-lib (ffi-lib (format "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics") #:fail (lambda () #f)))
  • "share/pkgs/gui-lib/mred/private/wx/cocoa/queue.rkt", change the two uses of define-cg to add #:fail (lambda () #f).

@bkovitz
Copy link
Author

bkovitz commented Aug 10, 2018

Thanks, mflatt! It worked the first time.

Wow: Apple no longer supports this laptop (made in 2009) but Racket does.

@mflatt
Copy link
Member

mflatt commented Aug 11, 2018

Patch applied in racket/gui@a2bed21

@mflatt mflatt closed this as completed Aug 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants