helloworld recipe using autotools

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

helloworld recipe using autotools

8,082 次查看
manjunathjoshi
Contributor V

Hello all,

Below is the recipe given by poky documentation in reference manual and i am not able to bitbake.

*********************************************************************************************************

DESCRIPTION = "GNU Helloworld application"

SECTION = "examples"

LICENSE = "GPLv3"

LIC_FILES_CHKSUM = "file://COPYING;md5=adefda309052235aa5d1e99ce7557010"

SRC_URI = "${GNU_MIRROR}/hello/hello-${PV}.tar.bz2"

inherit autotools

*********************************************************************************************************

Has anybody got the error when recipe is using autotools?

It is a do_install error that i am getting.

Regards,

Manju

标签 (3)
标记 (2)
0 项奖励
回复
3 回复数

4,408 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello Manju,

I haven’t used autotools in a Yocto recipe but perhaps the following slides may be of help (page 7)

https://www.yoctoproject.org/sites/default/files/elc2013-eclipse-lab.pdf

Is this the example you were working with? Hopefully someone else on the community can also add some insight on this.

0 项奖励
回复

4,408 次查看
manjunathjoshi
Contributor V

Hello Gusarambula,

No that was not the example i am working with.

I am trying to bitbake some Qt image with Helloworld app.

*******************************************************************************************************

do_compile() {

cc -o ***

}

do_install()

{

*****

}

********************************************************************************************************

This works fine. Since the steps are explicitly defined. This may be got as an example when we create a new layer.

$ yocto-layer create ***

But what i am refering to, is the one which uses Autotools to compile, configure, install the same helloworld example. This is given in POKY reference manual as well as the YOCTO reference manual.

**************************************************************************************************************

LIC_FILES_CHKSUM = "file://COPYING;md5=adefda309052235aa5d1e99ce7557010"

SRC_URI = "${GNU_MIRROR}/hello/hello-${PV}.tar.bz2"

inherit autotools  //This doesn't work at do_install step while bitbake.

***************************************************************************************************************

Even i have observed few things which you may be surprised,

* The same do_install() error appeared when i was trying one more recipe which also used autotools. Obviously i cross checked for how i wrote a recipe but it was okay.

* The toolchain 1.7.1 (poky) does not compile helloworld.

i.e

arm-poky-linux-gnueabi-gcc -o hello hello.c ---does not work.

NOTE: Here i have to use AUTOTOOLS to cross compile.

* But toolchain 1.4.1(poky) does above step without the need of autotools.

What are these issues please explain.

Regards,

Manju

0 项奖励
回复

4,408 次查看
ryandeville
Contributor I

Just for anyone else who may be stopping by, one answer to get the GNU Hello package autotools to work correctly can be found in Section 5.5.7 of the Yocto Project Reference Manual for poky 1.8.

0 项奖励
回复