[Buildroot] [PATCH 3/3] mesa3d: bump to 7.10.1 and add support for OpenGL-ES - result v1

Ozgun ozgun.gunay at gmail.com
Mon Jan 23 09:10:54 UTC 2012


Thanks for patchs.
I'm using buildroot-2011.11 on ubuntu 11.10 for pc104 card with atom
processor.
I applied the patchs.

The compile process gave the following error;

make[2]: Leaving directory
`/usr/src/buildroot-2011.11/output/build/xlib_libXdamage-1.1.2/src'
make[2]: Entering directory
`/usr/src/buildroot-2011.11/output/build/xlib_libXdamage-1.1.2'
make[3]: Entering directory
`/usr/src/buildroot-2011.11/output/build/xlib_libXdamage-1.1.2'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/pkgconfig" || /bin/mkdir -p
"/usr/src/buildroot-2011.11/output/target/usr/lib/pkgconfig"
 /usr/bin/install -c -m 644 xdamage.pc
'/usr/src/buildroot-2011.11/output/target/usr/lib/pkgconfig'
make[3]: Leaving directory
`/usr/src/buildroot-2011.11/output/build/xlib_libXdamage-1.1.2'
make[2]: Leaving directory
`/usr/src/buildroot-2011.11/output/build/xlib_libXdamage-1.1.2'
make[1]: Leaving directory
`/usr/src/buildroot-2011.11/output/build/xlib_libXdamage-1.1.2'
make: *** No rule to make target `host-xutil_makedepend', needed by
`mesa3d-depends'.  Stop.


It looks like host-xutil_makedepend parameter on MESA3D_DEPENDENCIES (in
mesa3d.mk file) cause  error.

My xutil_makedepend.mk file;

################################################################################
#
# xutil_makedepend -- No description available
#
################################################################################

XUTIL_MAKEDEPEND_VERSION = 1.0.2
XUTIL_MAKEDEPEND_SOURCE = makedepend-$(XUTIL_MAKEDEPEND_VERSION).tar.bz2
XUTIL_MAKEDEPEND_SITE = http://xorg.freedesktop.org/releases/individual/util
XUTIL_MAKEDEPEND_INSTALL_STAGING = NO
XUTIL_MAKEDEPEND_INSTALL_TARGET = YES

HOST_XUTIL_MAKEDEPEND_DEPENDENCIES = host-xproto_xproto

$(eval $(call AUTOTARGETS,package/x11r7,xutil_makedepend))
$(eval $(call AUTOTARGETS,package/x11r7,xutil_makedepend,host))

Also I chroot . to the target folder to test the libxml2 and still
libxml2.py absent ;

root at ozgun-Latitude-E6320:/usr/src/buildroot-2011.11/output/target# chroot .
bash-4.1# python
Python 2.7.2 (default, Jan 23 2012, 10:40:48)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libxml2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named libxml2
>>>

see attached libxml2 config.log file.





On Sat, Jan 21, 2012 at 4:32 AM, Arnout Vandecappelle (Essensium/Mind) <
arnout at mind.be> wrote:

> From: "Arnout Vandecappelle (Essensium/Mind)" <arnout at mind.be>
>
> Some source files are generated by python scripts and use libxml2.
> Therefore, python support is added to host-libxml2.
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
> ---
>  package/libxml2/libxml2.mk     |    7 ++++---
>  package/x11r7/mesa3d/Config.in |    6 ++++++
>  package/x11r7/mesa3d/mesa3d.mk |   12 ++++++++----
>  3 files changed, 18 insertions(+), 7 deletions(-)
>
> diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk
> index 0687137..7f084ed 100644
> --- a/package/libxml2/libxml2.mk
> +++ b/package/libxml2/libxml2.mk
> @@ -21,9 +21,10 @@ endef
>
>  LIBXML2_POST_INSTALL_STAGING_HOOKS += LIBXML2_STAGING_LIBXML2_CONFIG_FIXUP
>
> -HOST_LIBXML2_DEPENDENCIES = host-pkg-config
> -
> -HOST_LIBXML2_CONF_OPT = --without-debug --without-python
> +# mesa3d requires libxml2 python support; too bad for other users of
> libxml2...
> +# and the python libxml2 libraries don't work without debug.
> +HOST_LIBXML2_DEPENDENCIES = host-pkg-config host-python
> +HOST_LIBXML2_CONF_OPT = --with-debug --with-python
>
>  define LIBXML2_REMOVE_CONFIG_SCRIPTS
>        $(RM) -f $(TARGET_DIR)/usr/bin/xml2-config
> diff --git a/package/x11r7/mesa3d/Config.in
> b/package/x11r7/mesa3d/Config.in
> index 596eea3..7a98ccb 100644
> --- a/package/x11r7/mesa3d/Config.in
> +++ b/package/x11r7/mesa3d/Config.in
> @@ -13,3 +13,9 @@ config BR2_PACKAGE_MESA3D
>        help
>          Mesa 3D, an open-source implementation of the OpenGL
> specification.
>
> +config BR2_PACKAGE_MESA3D_GLES
> +       bool "Mesa 3D OpenGL-ES support"
> +       depends on BR2_PACKAGE_MESA3D
> +       default y
> +       help
> +         Include OpenGL-ES 1 and 2 support.
> diff --git a/package/x11r7/mesa3d/mesa3d.mk b/package/x11r7/mesa3d/
> mesa3d.mk
> index 095d66d..fe621bc 100644
> --- a/package/x11r7/mesa3d/mesa3d.mk
> +++ b/package/x11r7/mesa3d/mesa3d.mk
> @@ -3,13 +3,17 @@
>  # mesa3d
>  #
>  #############################################################
> -MESA3D_VERSION:=7.6.1
> +MESA3D_VERSION:=7.10.1
>  MESA3D_SOURCE:=MesaLib-$(MESA3D_VERSION).tar.gz
>  MESA3D_SITE:=ftp://ftp.freedesktop.org/pub/mesa/$(MESA3D_VERSION)
> -
> -MESA3D_CONF_OPT = --disable-egl --disable-glu --disable-glw
> --disable-glut --disable-gallium --with-driver=dri --with-dri-drivers=swrast
>  MESA3D_INSTALL_STAGING = YES
>
> -MESA3D_DEPENDENCIES = xproto_glproto xlib_libXxf86vm xlib_libXdamage
> xlib_libXfixes xproto_dri2proto libdrm expat
> +MESA3D_CONF_OPT = --disable-static --disable-egl --disable-glu
> --disable-glw --disable-glut --disable-gallium --with-driver=dri
> --with-dri-drivers=swrast
> +
> +ifeq ($(BR2_PACKAGE_MESA3D_GLES),y)
> +MESA3D_CONF_OPT += --enable-gles1 --enable-gles2
> +endif
> +
> +MESA3D_DEPENDENCIES = xproto_glproto xlib_libXxf86vm xlib_libXdamage
> xlib_libXfixes xproto_dri2proto libdrm expat host-xutil_makedepend
> host-python host-libxml2
>
>  $(eval $(call AUTOTARGETS))
> --
> 1.7.8.3
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20120123/a819c83a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 109042 bytes
Desc: not available
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20120123/a819c83a/attachment.bin>


More information about the buildroot mailing list