FelixKratz / JankyBorders

A lightweight window border system for macOS
GNU General Public License v3.0
1k stars 18 forks source link

Can't install in Sonoma 14.1.1 #20

Closed Aldairng closed 9 months ago

Aldairng commented 9 months ago

The make command and brew install fails. I'm on a M1 Macbook Pro.

╰─ make
clang -std=c99 -O3 -g src/main.c src/mach.c src/hashtable.c src/events.c src/windows.c src/border.c  -o bin/borders -framework AppKit -F/System/Library/PrivateFrameworks/ -framework SkyLight
In file included from src/main.c:2:
In file included from src/events.h:2:
src/extern.h:1:10: fatal error: 'CoreGraphics/CoreGraphics.h' file not found
#include <CoreGraphics/CoreGraphics.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
src/mach.c:1:10: fatal error: 'bootstrap.h' file not found
#include <bootstrap.h>
         ^~~~~~~~~~~~~
1 error generated.
src/hashtable.c:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
In file included from src/events.c:1:
In file included from src/events.h:2:
src/extern.h:1:10: fatal error: 'CoreGraphics/CoreGraphics.h' file not found
#include <CoreGraphics/CoreGraphics.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from src/windows.c:1:
src/windows.h:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
In file included from src/border.c:1:
In file included from src/border.h:2:
In file included from src/helpers.h:1:
src/extern.h:1:10: fatal error: 'CoreGraphics/CoreGraphics.h' file not found
#include <CoreGraphics/CoreGraphics.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [all] Error 1
FelixKratz commented 9 months ago

Something is not set up properly with your c compiler, I believe you would not be able to compile any c software, i.e. try compiling this:

main.c

#include <stdlib.h>
#include <stdio.h>

int main() { printf("Hello, world\n"); return 0; }

with clang -std=c99 main.c

Maybe try: xcode-select --install