Can't install and report ld library 'System' not found
drakeqiu opened this issue · 4 comments
I tried installing the janky borders on my 2018 intel macbook pro running on macOS Sonoma(14.4) but i got an error saying that I ld: library 'System' not found
Is there some libraries need to install as prerequisite?
Below is how I install janky borders
$ brew install borders
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api/formula.jws.jso
##O#- #
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api/cask.jws.json
##O#- #
==> Fetching felixkratz/formulae/borders
==> Downloading https://github.com/FelixKratz/JankyBorders/archive/refs/tags/v1.6.0.tar.g
Already downloaded: /Users/jarvis/Library/Caches/Homebrew/downloads/04d6d9db94f80036217be42141a34c0ea689e22496b538e3b6b173cbcac9596e--JankyBorders-1.6.0.tar.gz
==> Installing borders from felixkratz/formulae
==> make
Last 15 lines from /Users/jarvis/Library/Logs/Homebrew/borders/01.make:
2024-03-17 00:09:29 +0000
make
mkdir bin
clang -std=c99 -O3 -g src/main.c src/parse.c src/mach.c src/hashtable.c src/events.c src/windows.c src/border.c src/animation.c -o bin/borders -framework AppKit -framework CoreVideo -F/System/Library/PrivateFrameworks/ -framework SkyLight
ld: library 'System' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [all] Error 1
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/felixkratz/homebrew-formulae/issues
What happens if you try to compile from the repo?
git clone https://github.com/FelixKratz/JankyBorders.git
cd JankyBorders
make
@FelixKratz Thanks for your reply.
I tried to use make
to build add following environment variables which I retrieved from brew install borders -v
output
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
export OBJC=/usr/bin/clang
export OBJCXX=/usr/bin/clang++
export CPPFLAGS="-F/usr/local/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk"
export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
export MAKEFLAGS=-j12
export CMAKE_PREFIX_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr
export CMAKE_FRAMEWORK_PATH=/usr/local/Frameworks:/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks
export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/14:/usr/lib/pkgconfig
export CPATH=/usr/local/include:/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include
still got the result missing System
Library .
$ make
clang -std=c99 -O3 -g src/main.c src/parse.c src/mach.c src/hashtable.c src/events.c src/windows.c src/border.c src/animation.c -o bin/borders -framework AppKit -framework CoreVideo -F/System/Library/PrivateFrameworks/ -framework SkyLight
ld: library 'System' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [all] Error 1
When I add Link for System
Library, I failed to link AppKit
Library because I don't know the location for AppKit
clang -std=c99 -O3 -g src/main.c src/parse.c src/mach.c src/hashtable.c src/events.c src/windows.c src/border.c src/animation.c -o bin/borders -framework AppKit -framework CoreVideo -F/System/Library/PrivateFrameworks/ -framework SkyLight -L/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/lib
ld: framework 'AppKit' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [all] Error 1
For the next release I will provide a signed, compiled universal binary such that these problems should no longer be a problem.
+1 having the same issue