Open mttkay opened 2 weeks ago
I found an answer to one problem: the error about missing tinfo
and ncursesw
dependencies. Stumbled upon it in this pipeline run: https://github.com/dankamongmen/notcurses/actions/runs/11151924316/job/30996427665
One needs to set env PKG_CONFIG_PATH="/opt/homebrew/opt/ncurses/lib/pkgconfig"
when running cmake
.
Still haven't found solutions to the other 2 issues (Looking for unigbrk.h - not found
and the linker error.)
The linker error also disappears when setting PKG_CONFIG_PATH
to included ncurses
-- that leaves the problem with the missing libunistring header file. I think this is just because cmake is not aware of /opt/homebrew/include
?
Please include the following data:
export | egrep 'LANG|LC_CTYPE|TERM'
notcurses version (available from
notcurses-demo i
)3.0.11
Warp v0.2024.10.29.08.02.stable_02
Problems
notcurses does not build on macOS Sonoma 14.7 (using homebrew dependencies) and there are no build instructions provided in https://github.com/dankamongmen/notcurses/blob/9d8cc0d86c1daf18f30110bfdf8388aeb96ff637/INSTALL.md.
This might just be user error, considering that there are binaries available for macOS, and
brew install notcurses
installs a workingnotcurses-demo
binary. But I hope we can use this issue to document the build process better.See thread here: https://github.com/dankamongmen/notcurses/discussions/2801
Problem 1: required header files are not found
I installed build dependencies as follows:
I also installed the main library package:
which I assumed would also provide any necessary transitive dependencies for a successful build.
Fails with:
There are two issues here:
Although I have
ncurses
installed, this check always fails, and I have to comment it out.The second problem is that it cannot locate header files for
libunistring
andlibdeflate
. I fixed this by adding:Is there a way to pass this through the environment instead? I tried a number of ways such as setting
CFLAGS
,CXXFLAGS
but nothing worked.Problem 2: Linking fails
With the workarounds above, ultimately the library compiles but then fails to link: