[oe] Installing MAD-FCL using bitbake

Robert Foerster robert at erafx.com
Sun Apr 17 18:23:48 UTC 2011


On Sun, Apr 17, 2011 at 1:20 PM, Alberto Carrozzo <gilby985 at gmail.com>wrote:

> Hello, I'm trying to install MAD-FCL (http://mad.cs.tut.fi/) in order
> to use the Flute protocol on Angstrom... to do it, I modified the
> "wscan_20091230.bb" recipe that you can find in
> "oe/openembedded/recipes/dvbtools/" folder...
>
> _________________________________________________
> ESCRIPTION = "Wscan is a dvb channel scanner that doesn't require an
> initial frequency table"
> LICENSE = "GPLv2"
>
> SRC_URI = "http://wirbel.htpc-forum.de/w_scan/w_scan-${PV}.tar.bz2"
>
> S = "${WORKDIR}/w_scan-${PV}"
>
> inherit autotools
>
> FILES_${PN} += "${datadir}"
>
> SRC_URI[md5sum] = "97cd83d5c174e386d01a364b2d280f2a"
> SRC_URI[sha256sum] =
> "1a5864559b6a0acb76b9fa66b4e1351acd7d06c4e4a9a2ba323e7eafa4d4788b"
> __________________________________________________
>
> It works perfectly and bitbaking it I can find the executable w_scan
> in the
> ~/oe/tmp/work/armv7a-angstrom-linux-gnueabi/wscan-20091230-r0/w_scan-20091230
> folder... So I modifed it in this way:
>
> ___________________________________________________
> SRC_URI = "http://mad.cs.tut.fi/download/mad_fcl_v1.7_src.tar.gz"
>
> S = "${WORKDIR}/flute"
>
>
The directory in the tar.gz file is named mad_fcl_v1.7_src, not flute.  As
such, your source directory (S) is set incorrectly.



> inherit autotools
>

I don't see any autotools artifacts in this tar.gz, so why are you
inheriting autotools?



>
> FILES_${PN} += "${bindir}/flute"
>
> SRC_URI[md5sum] = "71a0c9d856a9b949b2c7c25bfd91029e"
> SRC_URI[sha256sum] =
> "97c0abc3807e48b102fee85bf14aaaeabe39ce3f98bb4423daed9651978e62f0"
> ____________________________________________________
>
> ...but it doesn't work and it gives me the following error on the
> log.do_install file:
> ____________________________________________________
> NOTE: make
> DESTDIR=/home/gilby/oe/tmp/work/armv7a-angstrom-linux-gnueabi/flute-1.0-r0/image
> install
> make: *** No rule to make target `install'.  Stop.
> FATAL: oe_runmake failed
> ERROR: Function do_install failed
> ____________________________________________________
>
> Note: the log.do_compile file tells me "NOTE: nothing to compile"
>
> ... OK, so i added this on the recipe above:
> ____________________________________________________
> do_install(){
>        install -m 0755 -d ${D}${bindir} ${D}${docdir}/flute
> }
> ____________________________________________________
>
> and it work without errors... but the log.do_compile file tells me
> again "NOTE: nothing to compile" and i can't find the executable in
> the ~/oe/tmp/work/armv7a-angstrom-linux-gnueabi/flute-1.0-r0/
> folder... and the same thing happen if I delete the "inherit
> autotools" row...
>
> SO:
>
> 1) Why for some recipes it execute the makefile automatically and not
> for other ones?
>

Well, bad input => bad output.  You must fix your recipe.


> 2) How can I fix my prolems?


Gain more understanding of OE - like using S, PN, PV, etc in your recipe.
Fix S.
Drop the inherit autotools.
Figure out how to compile the package properly and implement that in the
recipe.



>
> somebody can help me? thank you so much
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



More information about the Openembedded-devel mailing list