[yocto] Header-Files of DEPEND recipe not found

Khem Raj raj.khem at gmail.com
Tue Aug 11 07:21:33 PDT 2015


> On Aug 10, 2015, at 11:59 PM, yocto yocto <yoctomailinglist at gmail.com> wrote:
> 
> Maybe this is of interest, here is my solution:
> 
> In CMakeLists.txt
> 
> SET(BITBAKE_SYSROOT "" CACHE STRING "Description")
> SET(SOCI_INCLUDEDIR ${BITBAKE_SYSROOT}/usr/include/soci)
> 
> So if BITBAKE_SYSROOT is not passed the compiler takes /usr/include/soci as usual. My *.bb contains:

its your package you are free to choose the name but instead of BITBAKE_SYSROOT call it OE_SYSROOT

> 
> EXTRA_OECMAKE = "-DBITBAKE_SYSROOT:STRING=${STAGING_DIR_HOST}"
> 
> So when using bitbake the appropriate prefix will be added.
> 
> 
> 
> 2015-08-11 8:36 GMT+02:00 yocto yocto <yoctomailinglist at gmail.com <mailto:yoctomailinglist at gmail.com>>:
> But not within CMakeLists.txt? At least this is not working, cmake is handling "=" as a normal character. I guess I have to pass a parameter within my *.bb to cmake containing the sysroot path
> 
> 2015-08-10 22:36 GMT+02:00 Khem Raj <raj.khem at gmail.com <mailto:raj.khem at gmail.com>>:
> On Mon, Aug 10, 2015 at 12:08 PM, yocto yocto
> <yoctomailinglist at gmail.com <mailto:yoctomailinglist at gmail.com>> wrote:
> > SET(SOCI_INCLUDEDIR
> > /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/usr/include/soci)
> >
> > everything worked fine. Is there any way to get the path
> > "/home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/"
> > within CMakeLists.txt automatically?
> 
> you can use =/usr/include/soci which will prepend sysroot automatically.
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150811/733cf61c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150811/733cf61c/attachment.pgp>


More information about the yocto mailing list