[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] DirectFB compilation issue for iMX27ADS board
From: |
Stuart Hughes |
Subject: |
Re: [Ltib] DirectFB compilation issue for iMX27ADS board |
Date: |
Wed, 23 Jul 2008 10:22:34 +0100 |
Hi Pascal,
The ltib you have is a bit old and is missing an update to DirectFB
(this is available on Savannah).
Since that BSP we're on version 1.1.0 of DirectFB, you can see the spec
file here:
http://cvs.savannah.gnu.org/viewvc/ltib/dist/lfs-5.1/DirectFB/DirectFB.spec?revision=1.3&root=ltib&view=markup
I'm not sure if you can update to this version with the version of the
BSP you have, but if not I think you may be able to fix your problem by
simply including the DirectFB-1.1.0-linux-config-h.patch in the spec
file you have. This patch (which will be downloaded for you and is also
here: http://www.bitshrine.org/gpp/DirectFB-1.1.0-linux-config-h.patch )
basically comments out this include. On later kernels it's no longer
present (and should not be required).
Regards, Stuart
On Wed, 2008-07-23 at 10:34 +0200, Pascal Henck wrote:
> Hello,
>
> I'm working on LTIB for iMX27ADS board. I'm attempting to compile
> DirectFB which requires to include the kernel headers into the rootfs.
> When doing 'ltib -c' and selecting the directFB package, the option
> "include the kernel headers" is automatically selected. It seems OK
> because I see the kernel headers in usr/src/... except the one
> required by DirectFB.
>
> Must I compile a new directFb package (more recent)? what is this file
> config.h? In the host source tree, there is not a file config.h
> neither in the ltib kernel.
>
>
> Please see the traces below:
>
> Processing: DirectFB
> ======================
> rpmbuild --dbpath /opt/ltib-imx27ads-20071219/rpmdb --define
> '_unpackaged_files_terminate_build 0' --define '_target_cpu arm'
> --define '__strip strip' --define '_topdir
> /opt/ltib-imx27ads-20071219/rpm' --define '_prefix /usr' --define
> '_tmppath /opt/ltib-imx27ads-20071219/tmp' --define '_mandir
> /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir
> /var' -bc --short-circuit
> /opt/ltib-imx27ads-20071219/dist/lfs-5.1/DirectFB/DirectFB.spec
> Executing(%build): /bin/sh -e /opt/ltib-imx27ads-20071219/tmp/rpm-tmp.20410
> + umask 022
> + cd /opt/ltib-imx27ads-20071219/rpm/BUILD
> + cd DirectFB-0.9.24
> + KHDR_DIR=/opt/ltib-imx27ads-20071219/rootfs/usr/src/linux/include
> + '[' '!' -f
> /opt/ltib-imx27ads-20071219/rootfs/usr/src/linux/include/linux/config.h
> ']'
> + cat
>
> No file:
> /opt/ltib-imx27ads-20071219/rootfs/usr/src/linux/include/linux/config.h
>
> You need to build the kernel and have 'Include kernel headers' set
> to build this package
>
> + exit 1
> error: Bad exit status from
> /opt/ltib-imx27ads-20071219/tmp/rpm-tmp.20410 (%build)
>
>
> RPM build errors:
> Bad exit status from /opt/ltib-imx27ads-20071219/tmp/rpm-tmp.20410 (%build)
> Build time for DirectFB: 0 seconds
>
> Failed building DirectFB
>
> Best Regards
> Pascal Henck
>