Skip to content
Discussion options

You must be logged in to vote

@jidckii I think I have the magic zig args for cross compiling to Darwin. I haven't tested it with wails yet, but it's working with WebView and squeek dialog which uses Cocoa. Also didn't need to set CGO_CFLAGS, CGO_CXXFLAGS, or CGO_LDFLAGS at all.

ENV ZIG_ARGS="-isysroot ${SDK_DIR} -iwithsysroot /usr/include -L${SDK_DIR}/usr/lib -iframeworkwithsysroot /System/Library/Frameworks -F${SDK_DIR}/System/Library/Frameworks"

You can check out my docker file for the full build. https://gitlab.com/figuerom16/litequack/-/blob/main/docker/darwin

Replies: 7 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@leaanthony
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@Splizard
Comment options

@figuerom16
Comment options

@figuerom16
Comment options

@Splizard
Comment options

@figuerom16
Comment options

Comment options

You must be logged in to vote
2 replies
@jidckii
Comment options

@figuerom16
Comment options

Answer selected by jidckii
Comment options

You must be logged in to vote
1 reply
@leaanthony
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants