What kind of simple "Hello World" type GUIs work ? #1550
Unanswered
constantitus
asked this question in
Q&A
Replies: 1 comment 1 reply
-
We haven't really tested against 3rd party GUI frameworks. The best way to run a simple GUI on Darling is to directly use AppKit (just make sure you are not building a Storyboard app, those are not supported for now) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It is stated in the wiki that
only simple "Hello World" type GUIs will work.
. So I tried building a simple one with glfw.Here's the boilerplate code
test.c
It just tries to open a window, not even asking for an opengl context or anything.
Here's the build command aswell
build command
clang \ -o test test.c \ -mmacosx-version-min=10.13 \ --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk \ -arch x86_64 \ -framework Cocoa \ -framework Opengl \ -framework IOKit \ -framework CoreVideo \ -I./glfw/include \ -L./glfw/lib-x86_64 \ -lglfw3
It compiles, but running it gives me the following error
I was just curious, is this supposed to work in darling ?
Unfortunately, I don't have a macos running system atm, so I can't test whether or not what I did is right or the compiled binary works at all on a mac, but I'm glad I was able to get it to at least compile.
Beta Was this translation helpful? Give feedback.
All reactions