Created
December 10, 2023 00:49
-
-
Save metayan/0dc5fea642dfef3fb83f83899409f094 to your computer and use it in GitHub Desktop.
kitty-macos-catalina-build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When building kitty on macOS Catalina (10.15.7), this error appears: | |
# ------------------------------------------------------- | |
# make | |
# python3 setup.py | |
# [15/61] Compiling kitty/cocoa_window.m ... done | |
# Compiling [cocoa] glfw/cocoa_window.m ... | |
# clang -MMD -DNDEBUG -D_GLFW_COCOA -D_GLFW_BUILD_DLL -DGL_SILENCE_DEPRECATION -Wextra -Wfloat-conversion \ | |
# -Wno-missing-field-initializers -Wall -Wstrict-prototypes -std=c11 -pedantic-errors -Werror -O3 -fwrapv \ | |
# -fstack-protector-strong -pipe -march=native -fvisibility=hidden - | |
# D_FORTIFY_SOURCE=2 -fcf-protection=full -flto -fPIC -c glfw/cocoa_window.m -o build/glfw-cocoa-cocoa_window.m.o | |
# glfw/cocoa_window.m:35:9: fatal error: 'UniformTypeIdentifiers/UniformTypeIdentifiers.h' file not found | |
# #import <UniformTypeIdentifiers/UniformTypeIdentifiers.h> | |
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
# 1 error generated. | |
# make: *** [Makefile:13: all] Error 1 | |
# ------------------------------------------------------- | |
# 20231210-0048 | |
# to compile on macOS Catalina | |
# Once: | |
make clean | |
git clean -dxn | |
./dev deps | |
mkdir -p build/frameworks/ | |
ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework build/frameworks/ | |
CFLAGS="-Fbuild/frameworks -I/usr/local/include" LDFLAGS=-L/usr/local/lib make | |
make docs | |
# After that: | |
CFLAGS="-Fbuild/frameworks -I/usr/local/include" LDFLAGS=-L/usr/local/lib make app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment