Open altafan opened 2 years ago
The build script does the following for OSX:
if [ \( "$BUILD" = "--clang" \) ]; then
if [ \( "$(uname)" = "Darwin" \) ]; then
export XCODE_PATH=$(xcode-select --print-path 2>/dev/null)
export PLATFORM="MacOSX"
export SDK_PATH="$XCODE_PATH/Platforms/$PLATFORM.platform/Developer/SDKs/$PLATFORM.sdk"
export SDK_CFLAGS="$SDK_CFLAGS -isysroot ${SDK_PATH} -mmacosx-version-min=10.13"
export SDK_LDFLAGS="$SDK_LDFLAGS -isysroot ${SDK_PATH} -mmacosx-version-min=10.13"
export CFLAGS="${SDK_CFLAGS} -O3"
export LDFLAGS="${SDK_LDFLAGS}"
fi
build clang clang++
fi
So I'd try running xcode-select --print-path
and make sure the path it prints exists. If not, you will probably need to install or select the correct installed version of the xcode build tools.
Disclaimer, I'm not familiar with Apple platforms, @lvaccaro may have an idea if this isn't your issue.
@jgriffiths I was finally able to build the python SDK but I had to manually change the SDK_PATH
to:
export SDK_PATH="$XCODE_PATH/SDKs/$PLATFORM.sdk"
An even better way to retrieve the SDK path instead of constructing it could be:
export SDK_PATH=$(xcrun --show-sdk-path)
I can eventually open a PR if you think the fix makes sense.
@altafan I you could PR this and cc: @lvaccaro for review that would be great, thanks!
It looks a nice sdk path improvement for the building system. 👍
I'm trying to build the python wrapper for gdk on my mac (BigSur) with these steps:
but i get following error on the very last command (
./tools/build.sh ...
):And this is the content of the
meson-log.txt
log file:How can I fix this?