Cross compile badness - /usr/include in /usr/include
I sometimes get "Cross compile badness - /usr/include in /usr/include", most recently when trying to build libsdl-ttf.
I finally tracked down that the cause was having part of the SDL development environment installed on the build host, leading to me having a /usr/include/SDL directory.
Uninstalling this package from the host allowed the build to work.
1) Is this a 'known issue' with building?
2) Is there any way I can guard against it? I do now have a clue to what it means, but the cause may not always be so obvious.
3) Can I modify the .bb files to prevent this?
Is it possible to 'chroot' (or so such) so that the likes of /usr are constrained to the build environment?
Chris
Quoted 14 lines · Chris Tapp
I sometimes get "Cross compile badness -
/usr/includein/usr/include", most recently when trying to build libsdl-ttf.I finally tracked down that the cause was having part of the SDL development environment installed on the build host, leading to me having a
/usr/include/SDLdirectory.Uninstalling this package from the host allowed the build to work.
1) Is this a 'known issue' with building?
2) Is there any way I can guard against it? I do now have a clue to what it means, but the cause may not always be so obvious.
3) Can I modify the .bb files to prevent this?
Quoted 4 lines
Is it possible to 'chroot' (or so such) so that the likes of /usr are constrained to the build environment?
Chris
The Problem is a bad .m4 file from sdl which searches hardcoded first in /usr/include instead of our sysroot-dir. Fix the bad .m4-File and the problem is gone.
Bye Henning