unicorn The system already has ncurses 6.3 installed,.I had download 6.4 and compiled it but still get the error.
That configure
is not only a liar, it is stupid too! Anyway, this is what I did:
$ su -l
# pkgin -y in pkgconf gmake gtexinfo webkit-gtk
# exit
$ cd /tmp
$ ftp https://ftp.gnu.org/gnu/emacs/emacs-28.2.tar.xz
$ tar -xf emacs-28.2.tar.xz
$ mkdir build-emacs-28.2
$ cd build-emacs-28.2
$ export PATH=/usr/pkg/bin:$PATH
$ export CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fpie -march=native -pipe"
$ export LDFLAGS="-fuse-linker-plugin -Wl,--enable-new-dtags -Wl,-z,relro,-z,now -pie -s"
$ ../emacs-28.2/configure --prefix=/opt/emacs --with-x-toolkit=gtk3 --with-xwidgets \
CPPFLAGS="-I/usr/X11R7/include -I/usr/pkg/include" \
LDFLAGS="$LDFLAGS -L/usr/X11R7/lib -Wl,-rpath=/usr/X11R7/lib -L/usr/pkg/lib"
$ gmake -j6
$ gmake install
$ /opt/emacs/bin/emacs
M-x xwidget-webkit-browse-url RET
https://netbsd.org/ RET
Et voila, une petite browser dans emacs.
(All this on an amd64
running NetBSD-9.3_STABLE
with the binary packages from 2022Q2
)