[yocto] Fwd: Yocto Layers not getting recognized by bitbake

varun bhatnagar varun292006 at gmail.com
Sat Jun 22 12:04:17 PDT 2013


Hi,

Sorry I am sending this again but can anybody suggest something for this
problem please (please go through the mail chain below).

//
Varun

Forwarded conversation
Subject: Yocto Layers not getting recognized by bitbake
------------------------

From: *varun bhatnagar* <varun292006 at gmail.com>
Date: Mon, Jun 17, 2013 at 10:38 PM
To: "yocto at yoctoproject.org" <yocto at yoctoproject.org>


Hi,

I am trying to compile my code using yocto. For that I have created two
layers: "meta-networking" and "meta-oe". I have added these dependencies in
bblayer.conf too. But these are not getting build. Can anyone please tell
me what should I do to make this work.

//
Varun

----------
From: *Gary Thomas* <gary at mlbassoc.com>
Date: Mon, Jun 17, 2013 at 11:03 PM
To: yocto at yoctoproject.org


More details are needed to be able to help.

What do you mean "not getting built"?  Do you mean that if you
try to build recipe XYZ which is in one of those layers that it's
not being built?  Or perhaps you mean something else?

What do you mean "created two layers: ..."?  Did you just extract
these from meta-openembedded?  or something else?

-- 
------------------------------**------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------**------------------------------
______________________________**_________________
yocto mailing list
yocto at yoctoproject.org
https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto>

----------
From: *varun bhatnagar* <varun292006 at gmail.com>
Date: Mon, Jun 17, 2013 at 11:33 PM
To: "yocto at yoctoproject.org" <yocto at yoctoproject.org>


Actually the package which I am building is having some dependencies on
some libraries. So I provided those libraries with the help of creating
layers. I did not extract those from meta-openembedded, instead, I manually
created two layers and added them in bblayer.conf file. Now, after
configuring all this stuff I am again trying to recompile my code but still
I am getting the same error saying that it is not able to find those
libraries provided by me in the form of layers.

----------
From: *Sudhangathan B S* <sudhangathan at gmail.com>
Date: Tue, Jun 18, 2013 at 2:32 AM
To: varun bhatnagar <varun292006 at gmail.com>
Cc: "yocto at yoctoproject.org" <yocto at yoctoproject.org>


Can you please paste your command and it's output here..! If you don't
mind..!! Or explain with equivalent clarity. It
l will good if you can also put in your directory structure.

---------------------------------
Sudhangathan BS
Ph:(+91) 9731-905-205
---------------------------------

----------
From: *varun bhatnagar* <varun292006 at gmail.com>
Date: Tue, Jun 18, 2013 at 9:58 PM
To: "yocto at yoctoproject.org" <yocto at yoctoproject.org>


I am building one of my application using yocto by giving bitbake -k
core-image-minimal command but I am facing some errors as this application
requires two libraries
*1) net-snmp*
*2) fuse*
*
*
I have one link where in they are asking to add these two libraries in the
form of layers and then execute bitbake -k core-image-minimal command.

I am pasting one screenshot below:

As you can I have added two layers meta-networking (contains net-snmp) and
meta-oe(contains fuse). After this I added these layers in *
build/conf/bblayer.conf.*
*
*
*
*
After this I again executed bitbake -k core-image-minimal command but I
faced the same error as before... :(
Is there anyway that these layers get recognized? Do I need to execute some
other command?


//
Varun

----------
From: *Gary Thomas* <gary at mlbassoc.com>
Date: Tue, Jun 18, 2013 at 10:11 PM
To: yocto at yoctoproject.org


On 2013-06-18 17:28, varun bhatnagar wrote:

> I am building one of my application using yocto by giving bitbake -k
> core-image-minimal command but I am facing some errors as this application
> requires two libraries
> *1) net-snmp*
> *2) fuse*
> *
>
> *
> I have one link where in they are asking to add these two libraries in the
> form of layers and then execute bitbake -k core-image-minimal command.
>
> I am pasting one screenshot below:
>
> As you can I have added two layers meta-networking (contains net-snmp) and
> meta-oe(contains fuse). After this I added these layers in
> *build/conf/bblayer.conf.*
> *
> *
> *
>
> *
> After this I again executed bitbake -k core-image-minimal command but I
> faced the same error as before... :(
> Is there anyway that these layers get recognized? Do I need to execute
> some other command?
>

Obviously, this is a recipe that you made.

Does it show these dependencies?  e.g. a line like this in your recipe file:
  DEPENDS = "net-snmp fuse"
(or whatever the *packages* that you need are)

Bitbake can't read your mind; it will only build the recipes you ask and the
dependencies which are explicitly specified in that build chain.

If you still have trouble, try sending your recipe (.bb file and all other
components you might have), bblayers.conf, etc to the list because we're not
mind readers either :-)


> On Tue, Jun 18, 2013 at 2:32 AM, Sudhangathan B S <sudhangathan at gmail.com<mailto:
> sudhangathan at gmail.com**>> wrote:
>
>     Can you please paste your command and it's output here..! If you don't
> mind..!! Or explain with equivalent clarity. It
>     l will good if you can also put in your directory structure.
>
>     ------------------------------**---
>     Sudhangathan BS
>     Ph:(+91) 9731-905-205
>     ------------------------------**---
>
>
>     On Mon, Jun 17, 2013 at 11:33 PM, varun bhatnagar <
> varun292006 at gmail.com <mailto:varun292006 at gmail.com>**> wrote:
>
>         Actually the package which I am building is having some
> dependencies on some libraries. So I provided those libraries with the help
> of creating layers. I did not extract
>         those from meta-openembedded, instead, I manually created two
> layers and added them in bblayer.conf file. Now, after configuring all this
> stuff I am again trying to
>         recompile my code but still I am getting the same error saying
> that it is not able to find those libraries provided by me in the form of
> layers.
>
>
>         On Mon, Jun 17, 2013 at 11:03 PM, Gary Thomas <gary at mlbassoc.com<mailto:
> gary at mlbassoc.com>> wrote:
>
>             On 2013-06-17 18:08, varun bhatnagar wrote:
>
>                 Hi,
>
>                 I am trying to compile my code using yocto. For that I
> have created two layers: "meta-networking" and "meta-oe". I have added
> these dependencies in bblayer.conf
>                 too. But these are
>                 not getting build. Can anyone please tell me what should I
> do to make this work.
>
>
>             More details are needed to be able to help.
>
>             What do you mean "not getting built"?  Do you mean that if you
>             try to build recipe XYZ which is in one of those layers that
> it's
>             not being built?  Or perhaps you mean something else?
>
>             What do you mean "created two layers: ..."?  Did you just
> extract
>             these from meta-openembedded?  or something else?
>
>             --
>             ------------------------------**__----------------------------
> **--
>
>             Gary Thomas                 |  Consulting for the
>             MLB Associates              |    Embedded world
>             ------------------------------**__----------------------------
> **--
>             ______________________________**___________________
>             yocto mailing list
>             yocto at yoctoproject.org <mailto:yocto at yoctoproject.org**>
>             https://lists.yoctoproject.__**org/listinfo/yocto <
> https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto>
> >
>
>
>
>         ______________________________**_________________
>         yocto mailing list
>         yocto at yoctoproject.org <mailto:yocto at yoctoproject.org**>
>
>         https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto>
>
>
>
>
>
> ______________________________**_________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto>
>
>
----------
From: *varun bhatnagar* <varun292006 at gmail.com>
Date: Wed, Jun 19, 2013 at 9:40 PM
To: "yocto at yoctoproject.org" <yocto at yoctoproject.org>


Thanks for the reply Gary. I am attaching recipe file below. Please have a
look at it. And yes, there is a line where in all the dependencies are
given.
And this is the link from where I created the layer :
http://cgit.openembedded.org/meta-openembedded/tree/

//
Varun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130623/1c4bd667/attachment.html>
-------------- next part --------------
DESCRIPTION = "bitake file"
DEPENDS = "net-snmp fuse"
RDEPENDS = "curl rpm openssh openldap procps psmisc sed net-snmp-server"
LICENSE = "GPLv2+"
PR = "r0"
SRC_URI = "file:///home/user/Myapp.tar.gz"
EXTRA_OECMAKE += "-DCMAKE_FIND_ROOT_PATH=${STAGING_DIR_HOST} "
EXTRA_OECMAKE += "-DTARGET_ARCHITECTURE=${TARGET_ARCH} "
EXTRA_OECMAKE += "-DCMAKE_SYSTEM_NAME=Linux "
EXTRA_OECMAKE += "-DCMAKE_SYSTEM_VERSION=1 "
EXTRA_OECMAKE += "-DRSTATE=${PR} "
EXTRA_OECMAKE += "-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER "
EXTRA_OECMAKE += "-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY "
EXTRA_OECMAKE += "-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY "
EXTRA_OECMAKE += "-DRPM=1 "
 
inherit cmake
 
do_configure(){
        cmake ..${EXTRA_OECMAKE}
}
 
do_compile(){
        oe_runmake all
}


More information about the yocto mailing list