Is there any framebuffer testcases?

Chris Johns chrisj at rtems.org
Wed Apr 13 21:57:57 UTC 2016


On 13/04/2016 17:46, Peng Fan wrote:
> Hi Chris,
> I met this, so I add export INCLUDES=-I%{_includedir}:

I saw but I am concerned there is more to this. I think INCLUDES is 
specific to automake.

> arm-rtems4.12-gcc -E -DHAVE_CONFIG_H -I. -I../libpng-1.6.21 \
>       -DPNGLIB_LIBNAME='PNG16_0' -DPNGLIB_VERSION='1.6.21'
> -DSYMBOL_PREFIX='' -DPNG_NO_USE_READ_MACROS -DPNG_BUILDING_SYMBOL_TABLE
>   pnglibconf.c > pnglibconf.tf1

This is a CPP action and not a CC action. This is the root of the 
problem as the CPPFLAGS is not being set.

> pnglibconf.c:33:19: fatal error: zlib.h: No such file or directory
>   # include <zlib.h>
>                     ^
> compilation terminated.
> Makefile:2095: recipe for target 'pnglibconf.out' failed
> make: *** [pnglibconf.out] Error 1
> shell cmd failed: /bin/sh -ex
>   /home/Freenix/work/forfun/rtems/rtems-source-builder/rtems/build/libpng-v1.6.21-arm-rtems4.12-1/doit
> error: building libpng-v1.6.21-arm-rtems4.12-1
> `
>
> Actually I found zlib.h is at arm-rtems4.12/mx6ulevk/lib/include/zlib.h,
> but I do not know why the directory is not in the search PATH.

The include path to the BSP headers is present in CFLAGS but there is no 
CPPFLAGS defined by the RSB and we need to have the path in the 
CPPFLAGS. I have a patch I am testing which adds this. Once the symbols 
issue is resolved and I can test the whole process I will push the change.

Chris


More information about the users mailing list