Fixed
Created: Oct 9, 2014
Updated: Dec 3, 2018
Resolved Date: Oct 13, 2014
Found In Version: 6.0.0.11
Fix Version: 6.0.0.13
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace
After unpacking an SDK built with freetype libraries, the freetype header files are well present however a application fails to build because the header files path is not set in the environment.
The freetype2 include path should be added to the environment.
manually add freetype include path when compiling but this is not the correct way of using the sdk.
1. create a WRL6 glibc_std project and add freetype
2. create and unpack the SDK
3. try to build an application like this:
"
#include <stdio.h>
#include <ft2build.h>
main()
{
printf ("hello\n");
}
"
it fails with:
#include <freetype/config/ftheader.h>
^
compilation terminated.
this because:
the include paths is like this:
#include "..." search starts here:
#include <...> search starts here:
/work/sdk/sysroots/x86_64-wrlinuxsdk-linux/usr/toolchain/bin/../lib/gcc/i686-wrs-linux-gnu/4.8.1/include
/work/sdk/sysroots/x86_64-wrlinuxsdk-linux/usr/toolchain/bin/../lib/gcc/i686-wrs-linux-gnu/4.8.1/include-fixed
/work/sdk/sysroots/x86_64-wrlinuxsdk-linux/usr/toolchain/bin/../lib/gcc/i686-wrs-linux-gnu/4.8.1/../../../../i686-wrs-linux-gnu/include
End of search list.