haxpor / aseprite-macos-buildsh

Automated script to create latest release app (either beta, or release whichever is newer) of Aseprite for macOS
MIT License
156 stars 42 forks source link

CMake Error #22

Open Wirtexxx opened 1 year ago

Wirtexxx commented 1 year ago

CMake Error at /usr/local/Cellar/cmake/3.25.2/share/cmake/Modules/CMakeTestCCompiler.cmake:70 (message): The C compiler

"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Users/thunderstorm/Desktop/aseprite/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-pfVWkr

Run Build Command(s):/Users/thunderstorm/Desktop/aseprite/deps/depot_tools/ninja cmTC_402b9 && [1/2] Building C object CMakeFiles/cmTC_402b9.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_402b9
FAILED: cmTC_402b9 
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -arch x86_64 -mmacosx-version-min=10.9 -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/cmTC_402b9.dir/testCCompiler.c.o -o cmTC_402b9   && :
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:32 (project)

-- Configuring incomplete, errors occurred! See also "/Users/thunderstorm/Desktop/aseprite/aseprite/build/CMakeFiles/CMakeOutput.log". See also "/Users/thunderstorm/Desktop/aseprite/aseprite/build/CMakeFiles/CMakeError.log". Something went wrong

akatopo commented 1 year ago

Had a similar (or maybe the same) error as this. The solution was to correct the path that POSTFIXPATH_SDKROOT was pointing to.