* [Buildroot] xterm fails to compile
@ 2011-03-04 11:11 Frederic Bassaler
2011-03-04 12:35 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Frederic Bassaler @ 2011-03-04 11:11 UTC (permalink / raw)
To: buildroot
Hi everybody,
I'm currently trying to compile xterm (Buildroot 2011.02) but it fails :
make[1]: quittant le r?pertoire ? /home/fred/buildroot ?
>>> xterm 262 Building
PATH="/home/fred/buildroot/output/host/bin:/home/fred/buildroot/output/host/usr/bin:/home/fred/buildroot/output/host/usr/sbin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
PERLLIB="/home/fred/buildroot/output/host/usr/lib/perl" /usr/bin/make
-j2 -C /home/fred/buildroot/output/build/xterm-262/ make[1]: entrant
dans le r?pertoire ? /home/fred/buildroot/output/build/xterm-262
? /home/fred/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-gcc
--sysroot=/home/fred/buildroot/output/host/usr/i686-unknown-linux-uclibc/sysroot
-I. -I. -DHAVE_CONFIG_H -D_GNU_SOURCE -DNARROWPROTO=1 -DFUNCPROTO=15
-DOSMAJORVERSION=2 -DOSMINORVERSION=6
-I/home/fred/buildroot/output/host/usr/i686-unknown-linux-uclibc/sysroot/usr/include/freetype2
-pipe -Os -mtune=i686 -march=i686 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-I/home/fred/buildroot/output/host/usr/i686-unknown-linux-uclibc/sysroot/usr/include
-I/home/fred/buildroot/output/host/usr/i686-unknown-linux-uclibc/sysroot/include
-c ./input.c /home/fred/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-gcc
--sysroot=/home/fred/buildroot/output/host/usr/i686-unknown-linux-uclibc/sysroot
-I. -I. -DHAVE_CONFIG_H -D_GNU_SOURCE -DNARROWPROTO=1 -DFUNCPROTO=15
-DOSMAJORVERSION=2 -DOSMINORVERSION=6
-I/home/fred/buildroot/output/host/usr/i686-unknown-linux-uclibc/sysroot/usr/include/freetype2
-pipe -Os -mtune=i686 -march=i686 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-I/home/fred/buildroot/output/host/usr/i686-unknown-linux-uclibc/sysroot/usr/include
-I/home/fred/buildroot/output/host/usr/i686-unknown-linux-uclibc/sysroot/include
-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
from ./main.c:121: ./xtermcap.h:62:20: error: curses.h: No such file or
directory make[1]: *** [input.o] Erreur 1 make[1]: *** Attente des
t?ches non termin?es.... make[1]: *** [main.o] Erreur 1 make[1]:
quittant le r?pertoire ? /home/fred/buildroot/output/build/xterm-262 ?
make: *** [/home/fred/buildroot/output/build/xterm-262/.stamp_built]
Erreur 2
On another note :
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)
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] xterm fails to compile 2011-03-04 11:11 [Buildroot] xterm fails to compile Frederic Bassaler @ 2011-03-04 12:35 ` Thomas Petazzoni 2011-03-04 16:26 ` Frederic Bassaler 0 siblings, 1 reply; 3+ messages in thread From: Thomas Petazzoni @ 2011-03-04 12:35 UTC (permalink / raw) To: buildroot Hello Frederic, On Fri, 4 Mar 2011 12:11:39 +0100 Frederic Bassaler <frederic.bassaler@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@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@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 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] xterm fails to compile 2011-03-04 12:35 ` Thomas Petazzoni @ 2011-03-04 16:26 ` Frederic Bassaler 0 siblings, 0 replies; 3+ messages in thread From: Frederic Bassaler @ 2011-03-04 16:26 UTC (permalink / raw) To: buildroot Thomas, Thanks for the quick fix, xterm compiles now. Le Fri, 4 Mar 2011 13:35:33 +0100, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> a ?crit : > Hello Frederic, > > On Fri, 4 Mar 2011 12:11:39 +0100 > Frederic Bassaler <frederic.bassaler@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@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@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 I will have to restart from scratch to see if I can reproduce the problem (Compiling the whole thing takes a lot of time on my system). ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-04 16:26 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-03-04 11:11 [Buildroot] xterm fails to compile Frederic Bassaler 2011-03-04 12:35 ` Thomas Petazzoni 2011-03-04 16:26 ` Frederic Bassaler
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox