Closed ernesernesto closed 11 months ago
Hmm, I don't think it's the SDK version (I'm on macOS 14.1.2 with Xcode 15.0, and with that Xcode version it's using the 14.0 SDK, but if the SDK would be the problem the error messages would look differently.
What confuses me is that the cmake output after 'generating' looks wrong.
It should look like this:
=== building: sapp-metal-osx-xcode-debug
=== generating: sapp-metal-osx-xcode-debug
config file: /Users/floh/projects/sokol-samples/fips-files/configs/sapp-metal-osx-xcode-debug.yml
Preset CMake variables:
CMAKE_BUILD_TYPE="Debug"
CMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
FIPS_AUTO_IMPORT="OFF"
FIPS_CONFIG="sapp-metal-osx-xcode-debug"
FIPS_LOCAL_BUILD="OFF"
SOKOL_USE_METAL:BOOL="ON"
USE_SOKOL_APP:BOOL="ON"
-- The C compiler identification is AppleClang 15.0.0.15000040
...but specifically this line:
cmake -G "Xcode" -DCMAKE_BUILD_TYPE=Debug -DFIPS_CONFIG=sapp-metal-osx-xcode-debug -DFIPS_LOCAL_BUILD=OFF -DUSE_SOKOL_APP=ON -DSOKOL_USE_METAL=ON -DFIPS_USE_CCACHE=OFF -DFIPS_AUTO_IMPORT=OFF -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -B/Users/ernesernesto/Documents/Repo/fips-build/sokol-samples/sapp-metal-osx-xcode-debug -H/Users/ernesernesto/Documents/Repo/sokol-samples
...looks like you're on an old fips version.
Can you try running ./fips update fips
in the sokol-samples
directory, and then:
./fips clean all
./fips set config sapp-metal-osx-make-debug
./fips gen
./fips build
(using sapp-metal-osx-make-debug
instead of sapp-metal-osx-xcode-debug
generates nicer console output)
./fips update fips
won't update the fips repo, pulling the latest fips repo does the trick
Thanks!
./fips update fips won't update the fips repo
That feature was added about 4 years ago ;)
https://github.com/floooh/fips/commit/3baadc9736e8ff1bcc6ff066fa7a98911ff39ca5
Latest sokol samples fails to build on macos sonoma 14.1.1, seems to be referring to MacOSX13.3.sdk folder.
cmake version is 3.27.5
Already tried running fips update, fips clean and then fips build
Here is the full fips build output