-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Compilation on macOS broken? #3
Comments
Hi, Ill look around the documentation and see if I can figure out the issue. The code for Mac OS was contributed by @codebje in #1. Tom |
I'm not able to help with nix issues to any substantial degree - it needs more disk space than I have available to install and use, and more head space than I have available to understand and debug. You can still build FractalArt on OS X using |
Thanks for the feedback codebje. Good to hear that it does compile normally without nix. It seems that the code has problems finding the AppKit module. After looking a bit into Objective-C if found that the I would suggest @sternenseemann that you try the following commit 5170bad which is available in the nix-macos-fix branch. diff --git a/cbits/wallpaper.m b/cbits/wallpaper.m
index ee744f9..d580f36 100644
--- a/cbits/wallpaper.m
+++ b/cbits/wallpaper.m
@@ -1,6 +1,6 @@
#include <stdlib.h>
-@import AppKit;
+#import <AppKit/AppKit.h>
NSSize getRootWindowSize() {
@autoreleasepool { If that doesn't work, then try adding the following to the nix override: NIX_LDFLAGS = "-framework AppKit"; |
That does work, but now we have a new linker error:
|
I've tried to get
FractalArt
to compile on darwin with nix using the following override:Which results in the following build log:
The text was updated successfully, but these errors were encountered: