problem: installing libraries using new yocto layers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

problem: installing libraries using new yocto layers

2,063 Views
mahyar1
Contributor II

Hi

I was trying to create a new layer using this great thread by Daiane Angolini which works for the test program (helloworld).

 

but when I'm trying to create a simple library file and install it, I face with a problem.

here's the structure:

meta-sample-c-library/

├── conf

│   └── layer.conf

├── COPYING.MIT

├── README

└── recipes-example

    └── example

        ├── newClibrary-0.1

        │   └── foo1.c

        └── newClibrary_0.1.bb

which I added to the bblayer config file.

now

bitbake newClibrary

succeeds.

 

Then I added the result to local.conf file:

CORE_IMAGE_EXTRA_INSTALL += "newClibrary"

but building the final image fails:

bitbake core-image-minimal

 

here's the error I get:

Error: newClibrary not found in the base feeds (nitrogen6x cortexa9hf-vfp-neon-mx6 cortexa9hf-vfp-neon cortexa9hf-vfp armv7ahf-vfp-neon armv7ahf-vfp armv6hf-vfp armv5ehf-vfp armv5hf-vfp noarch any all).

 

here's also the newClibrary recipe:

DESCRIPTION = "Simple helloworld application"

SECTION = "examples"

LICENSE = "CLOSED"

PR = "r0"

 

SRC_URI = "file://foo1.c"

 

S = "${WORKDIR}"

 

do_compile() {

             ${CC} -c foo1.c -o foo.o

             ${AR} rcs libfoo1.a foo.o

}

 

do_install() {

             install -d ${D}${libdir}

             install -m 0755 libfoo1.a ${D}${libdir}

}

 

 

Any suggestions about what's the problem?

(I also attached all the files)

 

Thanks,

Mahyar

Original Attachment has been moved to: meta-sample-c-library.tar.gz

Labels (1)
Tags (2)
3 Replies

744 Views
daiane_angolini
NXP Employee
NXP Employee

I don´t know what´s wrong, so I will need your help on debug, ok?

What is the error when you try:

bitbake newClibrary

??

0 Kudos

744 Views
mahyar1
Contributor II

Hi Daiane,

There was a minor problem in my recipe that I fixed.

Thanks

744 Views
arunpm
Contributor I

Hi Mahyar
I'm working on the same kind of installing myown library.
Can u post the changes u made or add an attachment.

Thanks.

0 Kudos