>-----Original Message-----
>From: [email protected] [mailto:yocto-
>[email protected]] On Behalf Of Chris Tapp
>Sent: Wednesday, October 10, 2012 9:50 AM
>To: [email protected] Project
>Subject: [yocto] Finding root cause of "host include and/or library paths were
>used"
>
>I'm trying to get libsdl_gfx to build. I've created a .bb file which runs and
>installs the relevant headers and libs in tmp/sysroots.
>
>However, I'm getting a QA failure:
>
>NOTE: package libsdl-gfx-2.0.24-r1: task do_populate_sysroot: Succeeded
>WARNING: libsdl-gfx: The compile log indicates that host include and/or library
>paths were used.
> Please check the log '/media/SSD-RAID/build-denzil-git-sjs-
>cedartrail/tmp/work/core2-sjs-linux/libsdl-gfx-2.0.24-
>r1/temp/log.do_compile' for more information.
>
>The compile log has instances of:
>
>cc1: warning: include location "/usr/include/SDL" is unsafe for cross-
>compilation [-Wpoison-system-directories]
>
>The source uses autotools. I've had a look round the files, but it's not
>obvious
>to me where the above path is set (I'm definitely not an autotools expert).
>Can anyone give me an idea what I should be looking for? I suspect it may
>have something to do with a line from Makefile.am:
>
>libSDL_gfxincludedir = $(includedir)/SDL
Did you inherit autotools in your recipe?
You may have to patch your makefile not to use host header files.
Or, I think you can use ${STAGING_INCDIR} to override, at the time of your
configure.
Thanks
Kishore.
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto