flexprop icon indicating copy to clipboard operation
flexprop copied to clipboard

flexprop failing to run, stating tcl-tk library not loaded (again:) for flexprop 6.9.10 on MacOS 15.2

Open dgately opened this issue 2 months ago • 3 comments

As has happened in the past, exec'imng flexprop from built sources, I receive: "Library not loaded" errors for tcl-tk, because it expects tcl-tk8.6. This has been an issue on MacOS in the past as well, but was fixed with the addition of tcltk8.6 in flexprop sources...

  1. Homebrew now installs 9.0.0_1 versions of tcl-tk, the flexprop Makefile expects version 8.6. In the flexprop Makefile:
ifeq ($(OS),macosx)
# These are locations as specified by Homebrew
BREW_TK_PREFIX := $(shell brew --prefix tcl-tk)
NATIVETK_INC =-I$(BREW_TK_PREFIX)/include -I$(BREW_TK_PREFIX)/include/tcl-tk
NATIVETK_LIBS=-L$(BREW_TK_PREFIX)/lib -ltk8.6 -ltcl8.6 -lz -lpthread -lm
endif  
  1. In the past, I thought that tcl-tk 8.6 versions were included with flexprop sources (especially for MacOS). But, how does flexprop access the included 8.6 version if the Makefile is pointing to these homebrew directories?

I'm sure I'm missing something, but I'm not able to debug this issue (other than building a tcl-tk8.6 variant and placing its include & lib directories in the brew directories. That might work?)... And, yes I updated brew's tcl-tk for a totally separate project that required the latest versions.

What exec'ing flexprop displays:

% ./flexprop 
% ./flexprop 
dyld[60829]: Library not loaded: /opt/homebrew/opt/tcl-tk/lib/libtk8.6.dylib
  Referenced from: <943128DD-B60D-3E6B-97D4-DE8F7FA15473> /Users/altergator/flexprop/flexprop
  Reason: tried: '/opt/homebrew/opt/tcl-tk/lib/libtk8.6.dylib' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/tcl-tk/lib/libtk8.6.dylib' (no such file),
'/opt/homebrew/opt/tcl-tk/lib/libtk8.6.dylib' (no such file),
'/opt/homebrew/Cellar/tcl-tk/9.0.0_1/lib/libtk8.6.dylib' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/tcl-tk/9.0.0_1/lib/libtk8.6.dylib' (no such file),
'/opt/homebrew/Cellar/tcl-tk/9.0.0_1/lib/libtk8.6.dylib' (no such file)
zsh: abort      ./flexprop

dgately avatar Dec 16 '24 18:12 dgately