Issues with building with tree-sitter
alecStewart1 opened this issue · comments
So going off of the instructions in the README, there's a few things:
The branch in the README doesn't seem to exist.
I went ahead and built the master
branch.
I did the following:
git clone --depth 1 https://github.com/commercial-emacs/tree-sitter.git
make -C tree-sitter install
And then added the following to my ~/.config/fish/config.fish
file (I'm a Fish Shell user):
set -x PKG_CONFIG_PATH "/Users/alec-s/.local/share/../lib/pkgconfig"
set -x LD_LIBRARY_PATH "/Users/alec-s/.local/share/../lib"
As instructed after building the tree-sitter library.
I checked before hand and there's nothing in the PKG_CONFIG_PATH
nor LD_LIBRARY_PATH
variables. No other paths or anything.
Running the following after starting a new shell
./autogen.sh
./configure --prefix=$HOME/.local --with-tree-sitter=ifavailable --without-libsystemd --with-json=ifavailable --with-imagemagick
I see
Configured for 'x86_64-apple-darwin23.2.0'.
Where should the build process find the source code? .
What compiler should emacs be built with? gcc -g3 -O2
Should Emacs use the GNU version of malloc? no
(The GNU allocators don't work with this system configuration.)
Should Emacs use a relocating allocator for buffers? no
Should Emacs use mmap(2) for buffer allocation? no
What window system should Emacs use? nextstep
What toolkit should Emacs use? none
Where do we find X Windows header files? Standard dirs
Where do we find X Windows libraries? Standard dirs
Does Emacs use -lXaw3d? no
Does Emacs use the X Double Buffer Extension? no
Does Emacs use -lXpm? no
Does Emacs use -ljpeg? no
Does Emacs use -ltiff? yes
Does Emacs use a gif library? yes -lgif
Does Emacs use a png library? yes -L/usr/local/opt/libpng/lib -lpng16
Does Emacs use -lrsvg-2? no
Does Emacs use -lwebp? yes
Does Emacs use -lsqlite3? no
Does Emacs use cairo? no
Does Emacs use -llcms2? yes
Does Emacs use imagemagick? yes
Does Emacs use native APIs for images? yes (ns)
Does Emacs support sound? no
Does Emacs use -lgpm? no
Does Emacs use -ldbus? yes
Does Emacs use -lgconf? no
Does Emacs use GSettings? no
Does Emacs use a file notification library? yes (kqueue)
Does Emacs use access control lists? yes
Does Emacs use -lselinux? no
Does Emacs use -lgnutls? yes
Does Emacs use -lxml2? yes
Does Emacs use -lfreetype? no
Does Emacs use HarfBuzz? no
Does Emacs use -lm17n-flt? no
Does Emacs use -lotf? no
Does Emacs use -lxft? no
Does Emacs use -lsystemd? no
Does Emacs use -ljansson? yes
Does Emacs use -ltree-sitter? no
Does Emacs use the GMP library? yes
Does Emacs directly use zlib? yes
Does Emacs have dynamic modules support? yes
Does Emacs use toolkit scroll bars? yes
Does Emacs support Xwidgets? no
Does Emacs support cooperative lisp threads? yes
Does Emacs support preemptive lisp threads? no
Does Emacs support the portable dumper? yes
Which dumping strategy does Emacs use? pdumper
Does Emacs have native lisp compiler? no
Does Emacs use version 2 of the X Input Extension? no
Does Emacs generate a smaller-size Japanese dictionary? no
So commercial-emacs would be built with imagemagick and jansson, but not tree-sitter.
Is there anything else in particular that I need to do for building with tree-sitter on MacOS?
Nevermind, I removed the initially generated configure
and config.status
files, ran ./autogen.sh
again and ran configure
with just --with-treesitter
without ifavailabe
and I see
Does Emacs use -ltree-sitter? yes