I trying to compile ht on FreeBSD 7.0 Stable, and I've run into a problem with compiling for x. Configure works fine, but when I run make it fails trying to make syskeyb.cc. The program compiles and runs fine if I configure with --disable-x11-textmode.
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../io -DNOMACROS -pipe -O3 -fomit-frame-pointer -Wall -fsigned-char -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Woverloaded-virtual -Wnon-virtual-dtor -MT syskeyb.o -MD -MP -MF ".deps/syskeyb.Tpo" -c -o syskeyb.o syskeyb.cc; \
then mv -f ".deps/syskeyb.Tpo" ".deps/syskeyb.Po"; else rm -f ".deps/syskeyb.Tpo"; exit 1; fi
syskeyb.cc:46:22: error: X11/Xlib.h: No such file or directory
The problem is, Xlib.h is exactly where you would expect it to be.
# locate Xlib.h
/usr/local/include/X11/Xlib.h
So far nothing has worked. I've tried --includedir=/usr/local/include, --includedir=/usr/local/include/X11, ./configure LDFLAGS="I/usr/local/include/X11", --x-includedir=/usr/local/include/X11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I trying to compile ht on FreeBSD 7.0 Stable, and I've run into a problem with compiling for x. Configure works fine, but when I run make it fails trying to make syskeyb.cc. The program compiles and runs fine if I configure with --disable-x11-textmode.
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../io -DNOMACROS -pipe -O3 -fomit-frame-pointer -Wall -fsigned-char -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Woverloaded-virtual -Wnon-virtual-dtor -MT syskeyb.o -MD -MP -MF ".deps/syskeyb.Tpo" -c -o syskeyb.o syskeyb.cc; \ then mv -f ".deps/syskeyb.Tpo" ".deps/syskeyb.Po"; else rm -f ".deps/syskeyb.Tpo"; exit 1; fi
syskeyb.cc:46:22: error: X11/Xlib.h: No such file or directory
The problem is, Xlib.h is exactly where you would expect it to be.
# locate Xlib.h
/usr/local/include/X11/Xlib.h
So far nothing has worked. I've tried --includedir=/usr/local/include, --includedir=/usr/local/include/X11, ./configure LDFLAGS="I/usr/local/include/X11", --x-includedir=/usr/local/include/X11
Well, I'd expect Xlib.h here:
$ locate Xlib.h
/usr/include/X11/Xlib.h
(And I wouldn't compile ht as 'root')
But anyway, you could try:
$ CPPFLAGS="-I/usr/local" ./configure && make
This should add /usr/local to the include path.
Please also note that X11-support doesn't "give" you much. The keyboard support is just slightly better...