Menu

Problems with make

Help
2008-04-24
2013-04-22
  • Paul Schmehl

    Paul Schmehl - 2008-04-24

    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

     
    • Sebastian Biallas

      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...

       

Log in to post a comment.