FelixKratz / homebrew-formulae

1 stars 5 forks source link

Brew install does not work #5

Open BienGudBoy opened 1 year ago

BienGudBoy commented 1 year ago
Screenshot 2023-09-21 at 17 00 05

01.make

FelixKratz commented 1 year ago

These seem to be errors originating from the commandline tools. Maybe try to uninstall and reinstall them.

BienGudBoy commented 1 year ago

@FelixKratz Reinstalled, still the same error unfortunately

asboy2035 commented 1 year ago

i get an error too

FelixKratz commented 1 year ago

Could you try to compile the binary from source? I.e. clone the sketchybar repo and run make in the cloned repository.

Which macOS version are you running?

asboy2035 commented 1 year ago

macOS 13.6.2

compiling from source does this:

make rm -rf bin /Library/Developer/CommandLineTools/usr/bin/make x86 mkdir bin cc -c -o bin/alias.o src/alias.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/background.o src/background.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/bar_item.o src/bar_item.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/custom_events.o src/custom_events.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/event.o src/event.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/graph.o src/graph.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/image.o src/image.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/mouse.o src/mouse.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/shadow.o src/shadow.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/font.o src/font.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/text.o src/text.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/message.o src/message.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/bar.o src/bar.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/color.o src/color.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/window.o src/window.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/bar_manager.o src/bar_manager.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/display.o src/display.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/group.o src/group.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/mach.o src/mach.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/popup.o src/popup.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/animation.o src/animation.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/workspace.om src/workspace.m -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/volume.o src/volume.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/slider.o src/slider.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/power.o src/power.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/wifi.om src/wifi.m -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/media.om src/media.m -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/hotload.o src/hotload.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -c -o bin/app_windows.o src/app_windows.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 cc -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13 src/sketchybar.c bin/alias.o bin/background.o bin/bar_item.o bin/custom_events.o bin/event.o bin/graph.o bin/image.o bin/mouse.o bin/shadow.o bin/font.o bin/text.o bin/message.o bin/bar.o bin/color.o bin/window.o bin/bar_manager.o bin/display.o bin/group.o bin/mach.o bin/popup.o bin/animation.o bin/workspace.om bin/volume.o bin/slider.o bin/power.o bin/wifi.om bin/media.om bin/hotload.o bin/app_windows.o -o bin/sketchybar -framework Carbon -framework AppKit -framework CoreAudio -framework CoreWLAN -framework CoreVideo -framework IOKit -F/System/Library/PrivateFrameworks -framework SkyLight -framework DisplayServices -framework MediaRemote ld: Undefined symbols: _regcompA, referenced from: _get_bar_items_for_regex in message.o _regerrorA, referenced from: _get_bar_items_for_regex in message.o _regexecA, referenced from: _get_bar_items_for_regex in message.o _regfreeA, referenced from: _get_bar_items_for_regex in message.o clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: [bin/sketchybar] Error 1 make: [universal] Error 2

FelixKratz commented 1 year ago

I remember seeing this before, iirc it had to do with boost installing its own regex implementation somewhere it does not belong: https://github.com/FelixKratz/SketchyBar/issues/250

asboy2035 commented 1 year ago

trying to uninstall boost gives this error Error: Refusing to uninstall /usr/local/Cellar/boost/1.76.0 because it is required by folly, solidity and watchman, which are currently installed. You can override this and force removal with: brew uninstall --ignore-dependencies boost

is it safe to override?

FelixKratz commented 1 year ago

I wonder if it would be better to adopt the makefile such that the library and framework search paths exclude the brew install directories, such that an installed library can not mess up the compilation of sketchybar

asboy2035 commented 10 months ago

looks like it installed

CleanShot 2024-01-10 at 14 37 34@2x

!