[yocto] Finding root cause of "host include and/or library paths were used"
Chris Tapp
opensource at keylevel.com
Wed Oct 10 12:51:10 PDT 2012
On 10 Oct 2012, at 18:26, Bodke, Kishore K wrote:
>
>
>> -----Original Message-----
>> From: yocto-bounces at yoctoproject.org [mailto:yocto-
>> bounces at yoctoproject.org] On Behalf Of Chris Tapp
>> Sent: Wednesday, October 10, 2012 9:50 AM
>> To: yocto at yoctoproject.org 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?
Yes, that's in there.
> 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. Are there any examples I can look at to see how to do this? I've not been able to find which file I need to change after 'unpack'.
> Thanks
> Kishore.
Chris Tapp
opensource at keylevel.com
www.keylevel.com
More information about the yocto
mailing list