Is there any framebuffer testcases?

Peng Fan van.freenix at gmail.com
Thu Apr 7 13:19:04 UTC 2016


Hi Chris,

I did the following change,
diff --git a/source-builder/config/libtiff-1.cfg
b/source-builder/config/libtiff-1.cfg
index b0030e0..adfebb5 100644
--- a/source-builder/config/libtiff-1.cfg
+++ b/source-builder/config/libtiff-1.cfg
@@ -42,7 +42,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)

   %{host_build_flags}

-  CFLAGS= CXXFLAGS= ../${source_dir_tiff}/configure \
+  CFLAGS="-DHAVE_GETOPT" CXXFLAGS="-DHAVE_GETOPT"
../${source_dir_tiff}/configure \
     --host=%{_host} \
     --prefix=%{_prefix} \
     --bindir=%{_bindir} \
diff --git a/source-builder/defaults.mc b/source-builder/defaults.mc
index c65fa22..f05104d 100644
--- a/source-builder/defaults.mc
+++ b/source-builder/defaults.mc
@@ -340,6 +340,7 @@ else
   CC_FOR_BUILD=${CC}
   CXX_FOR_BUILD=${CXX}
 fi
+export INCLUDES=-I%{_includedir}
 export CC CXX CFLAGS CXXFLAGS LDFLAGS
 export CC_FOR_HOST CXX_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST
LDFLAGS_FOR_HOST
 export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD
LDFLAGS_FOR_BUILD'''

Now I met other issues when compiling tiff lib.


2016-04-07 18:19 GMT+08:00 Peng Fan <van.freenix at gmail.com>:

> Hi Chris,
>
>
>
> 2016-04-07 6:57 GMT+08:00 Chris Johns <chrisj at rtems.org>:
>
>> On 6/04/2016 11:09 PM, Peng Fan wrote:
>>
>>>
>>> The latest rtems-source-builder master branch does not support
>>> 4.11/graphics/graphics-all.bset.
>>>
>>
>> The 3rd party packages need to be brought over to master.
>>
>> I wonder if they should be at the rtems/config top level and not under a
>> specific release. The original layout was done when the repo had all
>> releases and we are slowly moving away from this.
>>
>>
>>> I reverted to earlier commit 08aa888205798b3416d24544fd06613fd683bb1e.
>>>
>>> I use rtems 4.12 toolchain.
>>>
>>> Met the following error:
>>>
>>> ../source-builder/sb-set-builder --log=l-g.txt
>>> --prefix=/home/Freenix/development/rtems/4.12 --rtems-bsp=arm/raspberrypi
>>> --rtems-version=4.11 --pkg-tar-files 4.11/graphics/graphics-all.bset
>>> RTEMS Source Builder - Set Builder, 4.12 (08aa88820579)
>>> warning: exe: absolute exe found in path: (__chown) /usr/sbin/chown
>>> Build Set: 4.11/graphics/graphics-all.bset
>>> Build Set: 4.11/graphics/libjpeg.bset
>>> config: graphics/libjpeg-9a-1.cfg
>>> internal error: pkgconfig failure
>>>
>>
>> I think you are seeing some effects from the conversion to python3 and
>> python2. There have been fixes.
>>
>> I suggest getting a copy of the databases, graphics, net-mgmt, and net
>> build set files from 4.11 and adding to rtems/config and then seeing if the
>> package builds. Let me know how it goes.
>
>
> I met compiler error. libpng-1.5 can not be downloaded, so I switch to use
> libpng-1.6.21.
> But still met error, And  I attached the log file.
> ../source-builder/sb-set-builder --log=l-g.txt --target=arm-rtems4.12
> --with-rtems-bsp=raspberrypi --prefix=/home/Freenix/development/rtems/4.12
> --pkg-tar-files graphics/graphics-all.bset
> RTEMS Source Builder - Set Builder, 4.12 (eac749bb80b1 modified)
> warning: exe: absolute exe found in path: (__chown) /usr/sbin/chown
> Build Set: graphics/graphics-all.bset
> Build Set: graphics/libjpeg.bset
> config: graphics/libjpeg-9a-1.cfg
> package: libjpeg-v9a-arm-rtems4.12-1
> building: libjpeg-v9a-arm-rtems4.12-1
> reporting: graphics/libjpeg-9a-1.cfg -> libjpeg-v9a-arm-rtems4.12-1.txt
> reporting: graphics/libjpeg-9a-1.cfg -> libjpeg-v9a-arm-rtems4.12-1.xml
> installing: libjpeg-v9a-arm-rtems4.12-1 ->
> /home/Freenix/development/rtems/4.12
> cleaning: libjpeg-v9a-arm-rtems4.12-1
> Build Set: Time 0:00:23.905603
> Build Set: graphics/libpng.bset
> config: graphics/libpng-1.6.21-1.cfg
> package: libpng-v1.6.21-arm-rtems4.12-1
> building: libpng-v1.6.21-arm-rtems4.12-1
> error: building libpng-v1.6.21-arm-rtems4.12-1
> Build FAILED
>   See error report: rsb-report-libpng-v1.6.21-arm-rtems4.12-1.txt
> error: building libpng-v1.6.21-arm-rtems4.12-1
> Build Set: Time 0:00:04.701515
> error: building libpng-v1.6.21-arm-rtems4.12-1
> Build Set: Time 0:00:28.612899
> Build FAILED
>
> From attached log file:
> 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
> pnglibconf.c:33:19: fatal error: zlib.h: No such file or directory
>
>  # include <zlib.h>
>
> Seems the rtems lib/include path is not included.
>
> I hacked doit script, add the following line in doit and execute ./doit
> export
> INCLUDES=-I/home/Freenix/development/rtems/4.12/arm-rtems4.12/raspberrypi/lib/include
>
> libpng compiled successfully.
>
> Do you have better idea about how to fix this, since hacked doit can not
> bypass ../source-builder/sb-set-builder. Or how I can let doit
> automatically include the upper hacked script.
>
> Thanks,
> Peng.
>
>
>>
>> Chris
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160407/e04c7e45/attachment-0002.html>


More information about the users mailing list