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

MacOS build Error #131

Open
george012 opened this issue May 31, 2024 · 1 comment
Open

MacOS build Error #131

george012 opened this issue May 31, 2024 · 1 comment

Comments

@george012
Copy link

error message with:


# github.com/pwiecz/go-fltk
clang: warning: no such sysroot directory: '/Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk' [-Wmissing-sysroot]
../../../../go_path/pkg/mod/github.com/pwiecz/[email protected]/browser.go:4:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.

I tried to set the environment variable export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) but it didn't work.
Running the command xcrun --sdk macosx --show-sdk-path yielded the following result:

`/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk`
@GiffE
Copy link

GiffE commented Jan 5, 2025

This is due to a hard coded -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk in the CXXFLAGS in cgo_darwin_arm64.go

If you remove that flag everything builds fine

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