[yocto] Using other recipes output in Makefile-project
Jonas Jonsson L
jonas.l.jonsson at ericsson.com
Fri Sep 21 06:29:19 PDT 2012
I've attached the log.do_populate_sysroot.PID-files for libxml2 and readline (no errors in here as far as i can see), still there's no trace of any include-files in the /usr/include folder of my sysroot. The lib-files are there.
Is there something more that I can try?
Is there a way to get hold of the include-files somewhere else? My make-system uses XML_CFLAGS and XML_LIBS, thus if I could feed it with the include-files from another (still "valid" location), that would do. Currently I add 'XML2_CFLAGS=-I${STAGING_INCDIR}/libxml2' and 'XML2_LIBS="\-L${STAGING_LIBDIR} -lxml2\"' to EXTRA_OEMAKE.
BR
Jonas Jonsson
-----Original Message-----
From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Jonas Jonsson L
Sent: den 21 september 2012 14:14
To: Burton, Ross
Cc: Yocto Mailinglist (yocto at yoctoproject.org)
Subject: Re: [yocto] Using other recipes output in Makefile-project
Unfortunately there are no include-files (for any of the three libs in DEPEND) available in that folder.
I've also tried running "bitbake libxml2" and it runs fine but nothing happens in the $STAGING_{INCDIR|LIBDIR} folders :---( Must I add the dependencies to the image too, via an IMAGE_INSTALL_append directive in the 'conf/local.conf'-file?
I'm running yocto 1.2 snapshot 20120919 on an ubuntu 64-bit (VirtualBox) machine.
I don't have the time (in this project) for porting the whole buildsystem to autotools...
/Jonas (Sorry for top-posting, outlook isn't made for mail)
-----Original Message-----
From: Burton, Ross [mailto:ross.burton at intel.com]
Sent: den 21 september 2012 12:07
To: Jonas Jonsson L
Cc: Yocto Mailinglist (yocto at yoctoproject.org)
Subject: Re: [yocto] Using other recipes output in Makefile-project
On 21 September 2012 10:06, Jonas Jonsson L <jonas.l.jonsson at ericsson.com> wrote:
> Hi, I'm having trouble with understanding how to use built libraries
> (and their include-files).
>
> I'm writing a bitbake-recipe for some piece of software that is
> Makefile-based. The SW has a compilation and runtime dependency on
> readline, Sqlite3 and libxml2.
>
> In my bb-file, I've added 'DEPEND = "readline sqlite3 libxml2"' and
> the three packages are built and installed for my chosen architecture.
>
> Now how do I use the build artifacts for my compilation?? I would
> like to add 'XML2_CFLAGS=FOO', 'XML2_LIBS=BAR' etc to my EXTRA_OEMAKE
> so that my Makefile can pick up the location of the necessary
> include-files and libraries?
I'd recommend considering porting the build system to autotools, but I know that for a lot of situations that isn't doable.
I'd also recommend changing the build system to use pkg-config for
libxml2 and sqlite3, that way it will automatically find the right headers.
The magic variables you're looking for though are ${STAGING_INCDIR} and ${STAGING_LIBDIR}, these are the include and lib directories under the staging tree for the target.
Ross
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yocto-readline-populate-sysroot.log
Type: application/octet-stream
Size: 3346 bytes
Desc: yocto-readline-populate-sysroot.log
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120921/e1c0c787/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yocto-libxml2-populate-sysroot.log
Type: application/octet-stream
Size: 5038 bytes
Desc: yocto-libxml2-populate-sysroot.log
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120921/e1c0c787/attachment-0001.obj>
More information about the yocto
mailing list