[Buildroot] xterm fails to compile

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Mar 4 12:35:33 UTC 2011


Hello Frederic,

On Fri, 4 Mar 2011 12:11:39 +0100
Frederic Bassaler <frederic.bassaler at gmail.com> wrote:

> -c ./main.c In file included from ./input.c:86: ./xtermcap.h:62:20:
> error: curses.h: No such file or directory In file included

Yes, xterm needs ncurses. I have the following patch in one of my
branch since July 2010, but never had the time to finalize it. I think
it should fix your problem:

=======================================================================
commit 2bb119327287ff859d5bc292881fc7e8f6c83bc6
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date:   Thu Jul 22 15:45:19 2010 +0200

    xterm: add missing dependency on ncurses
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

diff --git a/package/xterm/Config.in b/package/xterm/Config.in
index da3e9fe..447c912 100644
--- a/package/xterm/Config.in
+++ b/package/xterm/Config.in
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_XTERM
        bool "xterm"
        depends on BR2_PACKAGE_XORG7
+       select BR2_PACKAGE_NCURSES
        help
          xterm terminal emulator
 
diff --git a/package/xterm/xterm.mk b/package/xterm/xterm.mk
index b07eda4..2304dd7 100644
--- a/package/xterm/xterm.mk
+++ b/package/xterm/xterm.mk
@@ -7,7 +7,8 @@
 XTERM_VERSION:=259
 XTERM_SOURCE:=xterm-$(XTERM_VERSION).tgz
 XTERM_SITE:=ftp://invisible-island.net/xterm
-XTERM_DEPENDENCIES = xserver_xorg-server
+XTERM_DEPENDENCIES = xserver_xorg-server ncurses
 XTERM_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
+XTERM_CONF_OPT = --disable-imake
 
 $(eval $(call AUTOTARGETS,package,xterm))
=======================================================================

> I was able to generate a working embedded i386 X.org + Blackbox wm
> system, but it seems that it must be done in several steps :
> - first build a bare Xorg
> - then add the Xorg Drivers and needed utilities
> 
> otherwise, some packages may fail to compile because of dependencies
> not working (eg. xf86-input-driver would require xorg-server, but
> xorg-server wasn't compiled before)

Hum, which driver failed exactly ? Because for example
xdriver_xf86-input-evdev already has the dependency on
xserver_xorg-server. And from a quick look, it seems that all other
input drivers also have xserver_xorg-server in their dependencies.
Could you bit a more specific about the failure (i.e give us
the .config + build log) ?

Thanks !

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list