All of lore.kernel.org
 help / color / mirror / Atom feed
* Hello world package error
@ 2013-05-21  9:42 Zafrullah Syed
  2013-05-21 10:04 ` Paul Barker
  0 siblings, 1 reply; 8+ messages in thread
From: Zafrullah Syed @ 2013-05-21  9:42 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1385 bytes --]

Hi all,



I am trying to add Hello world package, my path is as follows,

*/home/siguser/yocto/poky*


    --meta-bebot
       --recipes-bebot
         --helloworld
           --helloworld.bb


                +-------------------------------------------


                |   +-------------------------------------------

                DESCRIPTION = "Simple helloworld application"
                SECTION = "examples"
                LICENSE = "MIT"
                PR = "r0"
                SRC_URI = "file://*hello.c*"
                S = "*/home/siguser/workspace/bebot-apps/helloworld*"

                do_compile() {
         	${CC} hello.c -o helloworld
                }

                do_install() {
	        install -d ${D}${bindir}
	        install -m 0755 helloworld ${D}${bindir}
                }
          +-------------------------------------------


                +-------------------------------------------
 Source file location: */home/siguser/workspace/bebot-apps/helloworld*


                                                              --hello.c


When i try to run *bitbake helloworld* from build it throws "Nothing
provides bitbake " error



P.S: My source file location is outside of poky and i gave source
location(S) in helloworld.bb


Any help or ideas?



Regards,

Zafrullah Syed

[-- Attachment #2: Type: text/html, Size: 5326 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hello world package error
  2013-05-21  9:42 Hello world package error Zafrullah Syed
@ 2013-05-21 10:04 ` Paul Barker
  2013-05-21 10:12   ` Zafrullah Syed
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Barker @ 2013-05-21 10:04 UTC (permalink / raw)
  To: Zafrullah Syed; +Cc: Yocto discussion list

On 21 May 2013 10:42, Zafrullah Syed <zafrullahmehdi@gmail.com> wrote:
> When i try to run bitbake helloworld from build it throws "Nothing provides
> bitbake " error

This sounds like bitbake isn't on your PATH. Have you sourced
oe-init-build-env from the poky directory? Does running `which
bitbake` give any output?

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hello world package error
  2013-05-21 10:04 ` Paul Barker
@ 2013-05-21 10:12   ` Zafrullah Syed
  2013-05-21 10:35     ` Paul Barker
  0 siblings, 1 reply; 8+ messages in thread
From: Zafrullah Syed @ 2013-05-21 10:12 UTC (permalink / raw)
  To: Paul Barker; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

Hi Paul,

I sourced oe-init-build-env and ran *bitbake helloworld *from build
directory*. *Then i get this error. previously, i ran bitbake
core-image-minimal and was successful. No idea where i am doing wrong?


On Tue, May 21, 2013 at 12:04 PM, Paul Barker <paul@paulbarker.me.uk> wrote:

> On 21 May 2013 10:42, Zafrullah Syed <zafrullahmehdi@gmail.com> wrote:
> > When i try to run bitbake helloworld from build it throws "Nothing
> provides
> > bitbake " error
>
> This sounds like bitbake isn't on your PATH. Have you sourced
> oe-init-build-env from the poky directory? Does running `which
> bitbake` give any output?
>
> --
> Paul Barker
>
> Email: paul@paulbarker.me.uk
> http://www.paulbarker.me.uk
>



-- 
Regards,
Zafrullah Syed

[-- Attachment #2: Type: text/html, Size: 1627 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hello world package error
  2013-05-21 10:12   ` Zafrullah Syed
@ 2013-05-21 10:35     ` Paul Barker
  2013-05-21 10:37       ` Paul Barker
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Barker @ 2013-05-21 10:35 UTC (permalink / raw)
  To: Zafrullah Syed; +Cc: Yocto discussion list

On 21 May 2013 11:12, Zafrullah Syed <zafrullahmehdi@gmail.com> wrote:
> I sourced oe-init-build-env and ran bitbake helloworld from build directory.
> Then i get this error. previously, i ran bitbake core-image-minimal and was
> successful. No idea where i am doing wrong?

Ok, I guess that it's bitbake itself that throws the error then? Could
you try adding 'inherit externalsrc' to the top of your recipe, that
class is there to prevent do_fetch, do_unpack etc being called which
may be failing as there isn't a SRC_URI set.

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hello world package error
  2013-05-21 10:35     ` Paul Barker
@ 2013-05-21 10:37       ` Paul Barker
  2013-05-21 11:02         ` Zafrullah Syed
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Barker @ 2013-05-21 10:37 UTC (permalink / raw)
  To: Zafrullah Syed; +Cc: Yocto discussion list

On 21 May 2013 11:35, Paul Barker <paul@paulbarker.me.uk> wrote:
> On 21 May 2013 11:12, Zafrullah Syed <zafrullahmehdi@gmail.com> wrote:
>> I sourced oe-init-build-env and ran bitbake helloworld from build directory.
>> Then i get this error. previously, i ran bitbake core-image-minimal and was
>> successful. No idea where i am doing wrong?
>
> Ok, I guess that it's bitbake itself that throws the error then? Could
> you try adding 'inherit externalsrc' to the top of your recipe, that
> class is there to prevent do_fetch, do_unpack etc being called which
> may be failing as there isn't a SRC_URI set.
>

Ah no, there is a SRC_URI. But you don't really need it and it's
probably looking in the wrong place for hello.c. The externalsrc class
is designed for this case. See
https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/externalsrc.bbclass
or the equivalent file in your local clone of poky.

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hello world package error
  2013-05-21 10:37       ` Paul Barker
@ 2013-05-21 11:02         ` Zafrullah Syed
  2013-05-21 11:08           ` Paul Barker
  0 siblings, 1 reply; 8+ messages in thread
From: Zafrullah Syed @ 2013-05-21 11:02 UTC (permalink / raw)
  To: Paul Barker; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 1566 bytes --]

Hi Paul,

I followed this manual
https://wiki.yoctoproject.org/wiki/How_do_I#Q:_How_do_I_put_my_recipe_into_Yocto.3F

and replaced my helloworld.bb file.

Sourced oe-init-build and ran* bitbake gumstix-console-image*

got this error: http://pastebin.com/fxUwQina

Previously, i ran gumstix-console-image successfull but now it breaks.

Any idea about this error?


On Tue, May 21, 2013 at 12:37 PM, Paul Barker <paul@paulbarker.me.uk> wrote:

> On 21 May 2013 11:35, Paul Barker <paul@paulbarker.me.uk> wrote:
> > On 21 May 2013 11:12, Zafrullah Syed <zafrullahmehdi@gmail.com> wrote:
> >> I sourced oe-init-build-env and ran bitbake helloworld from build
> directory.
> >> Then i get this error. previously, i ran bitbake core-image-minimal and
> was
> >> successful. No idea where i am doing wrong?
> >
> > Ok, I guess that it's bitbake itself that throws the error then? Could
> > you try adding 'inherit externalsrc' to the top of your recipe, that
> > class is there to prevent do_fetch, do_unpack etc being called which
> > may be failing as there isn't a SRC_URI set.
> >
>
> Ah no, there is a SRC_URI. But you don't really need it and it's
> probably looking in the wrong place for hello.c. The externalsrc class
> is designed for this case. See
>
> https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/externalsrc.bbclass
> or the equivalent file in your local clone of poky.
>
> --
> Paul Barker
>
> Email: paul@paulbarker.me.uk
> http://www.paulbarker.me.uk
>



-- 
Regards,
Zafrullah Syed

[-- Attachment #2: Type: text/html, Size: 3014 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hello world package error
  2013-05-21 11:02         ` Zafrullah Syed
@ 2013-05-21 11:08           ` Paul Barker
  2013-05-21 15:31             ` Marco
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Barker @ 2013-05-21 11:08 UTC (permalink / raw)
  To: Zafrullah Syed; +Cc: Yocto discussion list

On 21 May 2013 12:02, Zafrullah Syed <zafrullahmehdi@gmail.com> wrote:
> Hi Paul,
>
> I followed this manual
> https://wiki.yoctoproject.org/wiki/How_do_I#Q:_How_do_I_put_my_recipe_into_Yocto.3F
>
> and replaced my helloworld.bb file.
>
> Sourced oe-init-build and ran bitbake gumstix-console-image
>
> got this error: http://pastebin.com/fxUwQina
>
> Previously, i ran gumstix-console-image successfull but now it breaks.
>
> Any idea about this error?
>

If you run into a missing dependency, search for it on
layers.openembedded.org:
http://layers.openembedded.org/layerindex/recipes/?q=devmem

Does your bblayers.conf point to the relevant layers?

I'm just guessing here, I'd advise including the beginning of your
bitbake output in any error report as that tells us what layers and
versions your using, what the target and host platforms are, etc.

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hello world package error
  2013-05-21 11:08           ` Paul Barker
@ 2013-05-21 15:31             ` Marco
  0 siblings, 0 replies; 8+ messages in thread
From: Marco @ 2013-05-21 15:31 UTC (permalink / raw)
  To: Yocto discussion list

Il 21/05/2013 13:08, Paul Barker ha scritto:
> On 21 May 2013 12:02, Zafrullah Syed <zafrullahmehdi@gmail.com> wrote:

> If you run into a missing dependency, search for it on
> layers.openembedded.org:
> http://layers.openembedded.org/layerindex/recipes/?q=devmem
>
> Does your bblayers.conf point to the relevant layers?
>
> I'm just guessing here, I'd advise including the beginning of your
> bitbake output in any error report as that tells us what layers and
> versions your using, what the target and host platforms are, etc.


Add in bblayers.conf

BBLAYERS ?= " \
...

   /home/siguser/yocto/poky/meta-bebot \



Cordiali Saluti / Kindest Regards / Mit freundlichen Grüßen
-- 
Marco Cavallini | KOAN sas | Bergamo - Italia
  embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
       http://www.KoanSoftware.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-05-21 15:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-21  9:42 Hello world package error Zafrullah Syed
2013-05-21 10:04 ` Paul Barker
2013-05-21 10:12   ` Zafrullah Syed
2013-05-21 10:35     ` Paul Barker
2013-05-21 10:37       ` Paul Barker
2013-05-21 11:02         ` Zafrullah Syed
2013-05-21 11:08           ` Paul Barker
2013-05-21 15:31             ` Marco

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.