Skip to content

glmark2 not building - egl not found - potentially sunxi-mali related #24

Description

@KristofRobot

When trying to bitbake glmark2 on a cubieboard2, I get following error, which is potentially sunxi-mali related.

DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: Executing shell function do_configure
Setting top to                           : /home/kristof/OE/oe-core/build/tmp-eglibc/work/cortexa7hf-vfp-neon-oe-linux-gnueabi/glmark2/2012.12-r0/glmark2-2012.12 
Setting out to                           : /home/kristof/OE/oe-core/build/tmp-eglibc/work/cortexa7hf-vfp-neon-oe-linux-gnueabi/glmark2/2012.12-r0/glmark2-2012.12/build 
Checking for 'gcc' (c compiler)          : arm-oe-linux-gnueabi-gcc -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon-vfpv4 -mtune=cortex-a7 --sysroot=/home/kristof/OE/oe-core/build/tmp-eglibc/sysroots/cubieboard2 
Checking for 'g++' (c++ compiler)        : arm-oe-linux-gnueabi-g++ -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon-vfpv4 -mtune=cortex-a7 --sysroot=/home/kristof/OE/oe-core/build/tmp-eglibc/sysroots/cubieboard2 
Checking for header stdlib.h             : yes 
Checking for header string.h             : yes 
Checking for header unistd.h             : yes 
Checking for header stdint.h             : yes 
Checking for header stdio.h              : yes 
Checking for header jpeglib.h            : yes 
Checking for library m                   : yes 
Checking for library jpeg                : yes 
Checking for function memset             : yes 
Checking for function sqrt               : yes 
Checking for program pkg-config          : /home/kristof/OE/oe-core/build/tmp-eglibc/sysroots/x86_64-linux/usr/bin/pkg-config 
Checking for 'libpng12'                  : yes 
Checking for 'x11'                       : yes 
Checking for 'gl'                        : yes 
Checking for 'egl'                       : not found 
The configuration failed
(complete log in /home/kristof/OE/oe-core/build/tmp-eglibc/work/cortexa7hf-vfp-neon-oe-linux-gnueabi/glmark2/2012.12-r0/glmark2-2012.12/build/config.log)
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_configure (log file is located at /home/kristof/OE/oe-core/build/tmp-eglibc/work/cortexa7hf-vfp-neon-oe-linux-gnueabi/glmark2/2012.12-r0/temp/log.do_configure.26995)

cat cat /home/kristof/OE/oe-core/build/tmp-eglibc/work/cortexa7hf-vfp-neon-oe-linux-gnueabi/glmark2/2012.12-r0/glmark2-2012.12/build/config.log:

[...]
Checking for 'gl'
['/home/kristof/OE/oe-core/build/tmp-eglibc/sysroots/x86_64-linux/usr/bin/pkg-config', 'gl', '--cflags', '--libs']
out: -DMESA_EGL_NO_X11_HEADERS -I/home/kristof/OE/oe-core/build/tmp-eglibc/sysroots/cubieboard2/usr/include/libdrm -lGL 

yes
----------------------------------------
Checking for 'egl'
['/home/kristof/OE/oe-core/build/tmp-eglibc/sysroots/x86_64-linux/usr/bin/pkg-config', 'egl', '--cflags', '--libs']
err: Package egl was not found in the pkg-config search path.
Perhaps you should add the directory containing `egl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'egl' found

not found

I believe this is some error in the machine file, and more specifically in the sunxi-mali recipe [1], as that should provide egl:

PROVIDES = "virtual/libgles1 virtual/libgles2 virtual/egl"

Are others able to reproduce this as well? Any ideas on how to fix this?

Thanks!

Kristof

[1] https://github.com/linux-sunxi/meta-sunxi/blob/master/recipes-graphics/libgles/sunxi-mali_git.bb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions