The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL2 + OpelGL ES2 + Freescale i.MX6
romain


Joined: 06 Nov 2013
Posts: 17
Hi all,

I experience somme difficulties to match the good driver and to have a working application.
My application is based on SDL2 and works fine on my computer.
I have compiled :
- SDL 2.0.1
- SDL image 2.0.0
- SDL ttf 2.0.12 (and freetype 2.5.0.1 needed by SDL ttf)

On the embedded platform called Utilite, I get this output from my software :
Quote:
Num Drivers: 4
Found Driver: opengl
-> ACCELERATED
-> PRESENTVSYNC
-> TARGETTEXTURE
Found Driver: opengles2
-> ACCELERATED
-> PRESENTVSYNC
-> TARGETTEXTURE
Found Driver: opengles
-> ACCELERATED
-> PRESENTVSYNC
Found Driver: software
-> SOFTWARE
-> TARGETTEXTURE
With those errors :
Quote:
SDL ERROR:No available video device
SDL WINDOW:No available video device
SDL RENDERER:Invalid window
It seems that I have to choose one of the available drivers. But how ? AFAIK I should want to use Open GL ES2. What do you think ?

I found this command :
Quote:
export SDL_VIDEODRIVER=dummy

And now I have this error :
Quote:
SDL RENDERER:Couldn't find matching render driver


When compiling SDL2 I have choosen to configure with --disable-video-x11 to force the use of an accelerated driver. I don't remember the behaviour with a standard configure/make/make install; I check it now.
romain


Joined: 06 Nov 2013
Posts: 17
Trying to compile SDL2 with ./configure and make, it ends with errors :
Quote:
/root/SDL/src/video/x11/SDL_x11window.c: In function 'X11_CreateWindow':
/root/SDL/src/video/x11/SDL_x11window.c:566:19: error: 'SDL_VideoDevice' has no member named 'egl_data'
/root/SDL/src/video/x11/SDL_x11window.c:572:19: error: 'SDL_WindowData' has no member named 'egl_surface'
/root/SDL/src/video/x11/SDL_x11window.c:572:9: warning: implicit declaration of function 'SDL_EGL_CreateSurface' [-Wimplicit-function-declaration]
/root/SDL/src/video/x11/SDL_x11window.c:572:65: error: 'NativeWindowType' undeclared (first use in this function)
/root/SDL/src/video/x11/SDL_x11window.c:572:65: note: each undeclared identifier is reported only once for each function it appears in
/root/SDL/src/video/x11/SDL_x11window.c:572:83: error: expected ')' before 'w'
/root/SDL/src/video/x11/SDL_x11window.c:574:23: error: 'SDL_WindowData' has no member named 'egl_surface'
/root/SDL/src/video/x11/SDL_x11window.c:574:40: error: 'EGL_NO_SURFACE' undeclared (first use in this function)
make: *** [build/SDL_x11window.lo] Error 1
Pulled from the Mercurial repo.
romain


Joined: 06 Nov 2013
Posts: 17
Can an admin correct the mistake "OpelGL ES2" in "GLES2" please ? Laughing
SDL2 + OpelGL ES2 + Freescale i.MX6
gabomdq


Joined: 28 Jul 2011
Posts: 495
Location: Argentina
It may be that you found a bug, please fill one in Bugzilla and attach your config.log and SDL_config.h files. Thanks!


2013/11/7 romain
Quote:
Trying to compile SDL2 with ./configure and make, it ends with errors :



Quote:

/root/SDL/src/video/x11/SDL_x11window.c: In function 'X11_CreateWindow':
/root/SDL/src/video/x11/SDL_x11window.c:566:19: error: 'SDL_VideoDevice' has no member named 'egl_data'
/root/SDL/src/video/x11/SDL_x11window.c:572:19: error: 'SDL_WindowData' has no member named 'egl_surface'
/root/SDL/src/video/x11/SDL_x11window.c:572:9: warning: implicit declaration of function 'SDL_EGL_CreateSurface' [-Wimplicit-function-declaration]
/root/SDL/src/video/x11/SDL_x11window.c:572:65: error: 'NativeWindowType' undeclared (first use in this function)
/root/SDL/src/video/x11/SDL_x11window.c:572:65: note: each undeclared identifier is reported only once for each function it appears in
/root/SDL/src/video/x11/SDL_x11window.c:572:83: error: expected ')' before 'w'
/root/SDL/src/video/x11/SDL_x11window.c:574:23: error: 'SDL_WindowData' has no member named 'egl_surface'
/root/SDL/src/video/x11/SDL_x11window.c:574:40: error: 'EGL_NO_SURFACE' undeclared (first use in this function)
make: *** [build/SDL_x11window.lo] Error 1


Pulled from the Mercurial repo.


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org





--
Gabriel.
romain


Joined: 06 Nov 2013
Posts: 17
Done. https://bugzilla.libsdl.org/show_bug.cgi?id=2226

Back to what brought me here, how can I choose the "driver" to use to render my software ? Rolling Eyes

Thanks Wink
SDL2 + OpelGL ES2 + Freescale i.MX6
neoaggelos


Joined: 02 Jan 2013
Posts: 138
Use the hint SDL_HINT_RENDER_DRIVER


-- Aggelos Kolaitis

On 11 Νοε 2013, at 6:29 μ.μ., "romain" wrote:



Quote:
Done. https://bugzilla.libsdl.org/show_bug.cgi?id=2226

Back to what brought me here, how can I choose the "driver" to use to render my software ?

Thanks

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

romain


Joined: 06 Nov 2013
Posts: 17
Thanks neoaggelos.

I've added
Code:
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengles2");
before
Code:
SDL_Init(SDL_INIT_VIDEO);
SDL_CreateWindow("Screen",0,0,SCREENWIDTH,SCREENHEIGHT,SDL_WINDOW_BORDERLESS);
SDL_CreateRenderer(SCREEN,-1,SDL_RENDERER_ACCELERATED|SDL_RENDERER_PRESENTVSYNC);

SDL_SetHint() gives no error, but it didn't change the output of the 3 others :
Quote:
SDL INIT_VIDEO ERROR:No available video device
SDL WINDOW:No available video device
SDL RENDERER:Invalid window

If I use this command (the only one working, I tried x11 for example, but it's not recognized) :
Quote:
export SDL_VIDEODRIVER=dummy
Then I get the output :
Quote:
SDL RENDERER:Couldn't find matching render driver
Which I think is better...

When I compiled SDL I could see in the configure log :
Quote:
checking for OpenGL (GLX) support... yes
checking for EGL support... no
checking for OpenGL ES v1 headers... yes
checking for OpenGL ES v2 headers... yes

And I was wondering : is EGL mandatory for GLES2 ? That could explain why the render driver cannot be used...
SDL2 + OpelGL ES2 + Freescale i.MX6
gabomdq


Joined: 28 Jul 2011
Posts: 495
Location: Argentina
Quote:




checking for OpenGL (GLX) support... yes
checking for EGL support... no
checking for OpenGL ES v1 headers... yes
checking for OpenGL ES v2 headers... yes



And I was wondering : is EGL mandatory for GLES2 ? That could explain why the render driver cannot be used...







Depends on the platform, but most likely yes. 
romain


Joined: 06 Nov 2013
Posts: 17
Ok, this also explains why I couldn't compile the GLES2 mesa demos (es2gears, glmark2-es2)...

I tried to install some libs, and got errors :
Code:
# apt-get install libgles-mesa-dev
[...]
Unpacking libegl1-mesa-dev (from .../libegl1-mesa-dev_7.11-0ubuntu3.2linaro1_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/libegl1-mesa-dev_7.11-0ubuntu3.2linaro1_armel.deb (--unpack): trying to overwrite '/usr/include/KHR/khrplatform.h', which is also in package gpu-viv-bin-mx6q 3.0.35
Unpacking libgles2-mesa-dev (from .../libgles2-mesa-dev_7.11-0ubuntu3.2linaro1_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/libgles2-mesa-dev_7.11-0ubuntu3.2linaro1_armel.deb (--unpack): trying to overwrite '/usr/include/GLES2/gl2ext.h', which is also in package gpu-viv-bin-mx6q 3.0.35

This package "gpu-viv-bin-mx6q 3.0.35" is the current driver I'm using ? What should I do ?
SDL2 + OpelGL ES2 + Freescale i.MX6
gabomdq


Joined: 28 Jul 2011
Posts: 495
Location: Argentina
2013/11/12 romain
Quote:
Ok, this also explains why I couldn't compile the GLES2 mesa demos (es2gears, glmark2-es2)...

I tried to install some libs, and got errors :



Code:

# apt-get install libgles-mesa-dev
[...]
Unpacking libegl1-mesa-dev (from .../libegl1-mesa-dev_7.11-0ubuntu3.2linaro1_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/libegl1-mesa-dev_7.11-0ubuntu3.2linaro1_armel.deb (--unpack): trying to overwrite '/usr/include/KHR/khrplatform.h', which is also in package gpu-viv-bin-mx6q 3.0.35
Unpacking libgles2-mesa-dev (from .../libgles2-mesa-dev_7.11-0ubuntu3.2linaro1_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/libgles2-mesa-dev_7.11-0ubuntu3.2linaro1_armel.deb (--unpack): trying to overwrite '/usr/include/GLES2/gl2ext.h', which is also in package gpu-viv-bin-mx6q 3.0.35



This package "gpu-viv-bin-mx6q 3.0.35" is the current driver I'm using ? What should I do ?





Looking at this: https://github.com/Freescale/meta-fsl-arm/tree/master/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q


It seems that gpu-viv-bin-mx6q ought to provide everything you need. What do you get from: dpkg -S egl.h



--
Gabriel.
romain


Joined: 06 Nov 2013
Posts: 17
Hum, yes it should...

Quote:
r$ dpkg -S egl.h
gpu-viv-bin-mx6q: /usr/include/GLES/egl.h
gpu-viv-bin-mx6q: /usr/include/EGL/egl.h
SDL2 + OpelGL ES2 + Freescale i.MX6
gabomdq


Joined: 28 Jul 2011
Posts: 495
Location: Argentina
Can you post your configure line and config.log ?


2013/11/12 romain
Quote:
Hum, yes it should...




Quote:

r$ dpkg -S egl.h
gpu-viv-bin-mx6q: /usr/include/GLES/egl.h
gpu-viv-bin-mx6q: /usr/include/EGL/egl.h





_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org





--
Gabriel.
romain


Joined: 06 Nov 2013
Posts: 17
Quote:
$ ./configure --enable-gles2 --enable-egl

But I think the parameters have no effect because EGL and GLES2 are not detected :

Quote:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by mesa-demos configure 8.1.0, which was
generated by GNU Autoconf 2.68. Invocation command line was

$ ./configure --enable-gles2 --enable-egl

## --------- ##
## Platform. ##
## --------- ##

hostname = linaro-ubuntu-desktop
uname -m = armv7l
uname -r = 3.0.35-cm-fx6-4-00011-g3f5db5c
uname -s = Linux
uname -v = #171 SMP Thu Nov 7 17:37:12 IST 2013

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2555: checking build system type
configure:2569: result: armv7l-unknown-linux-gnueabi
configure:2589: checking host system type
configure:2602: result: armv7l-unknown-linux-gnueabi
configure:2639: checking for a BSD-compatible install
configure:2707: result: /usr/bin/install -c
configure:2718: checking whether build environment is sane
configure:2768: result: yes
configure:2909: checking for a thread-safe mkdir -p
configure:2948: result: /bin/mkdir -p
configure:2961: checking for gawk
configure:2991: result: no
configure:2961: checking for mawk
configure:2977: found /usr/bin/mawk
configure:2988: result: mawk
configure:2999: checking whether make sets $(MAKE)
configure:3021: result: yes
configure:3114: checking for style of include used by make
configure:3142: result: GNU
configure:3212: checking for gcc
configure:3228: found /usr/bin/gcc
configure:3239: result: gcc
configure:3468: checking for C compiler version
configure:3477: gcc --version >&5
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3488: $? = 0
configure:3477: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabi/4.6.1/lto-wrapper
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-float=softfp --with-fpu=vfpv3-d16 --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
configure:3488: $? = 0
configure:3477: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3488: $? = 4
configure:3477: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3488: $? = 4
configure:3508: checking whether the C compiler works
configure:3530: gcc conftest.c >&5
configure:3534: $? = 0
configure:3582: result: yes
configure:3585: checking for C compiler default output file name
configure:3587: result: a.out
configure:3593: checking for suffix of executables
configure:3600: gcc -o conftest conftest.c >&5
configure:3604: $? = 0
configure:3626: result:
configure:3648: checking whether we are cross compiling
configure:3656: gcc -o conftest conftest.c >&5
configure:3660: $? = 0
configure:3667: ./conftest
configure:3671: $? = 0
configure:3686: result: no
configure:3691: checking for suffix of object files
configure:3713: gcc -c conftest.c >&5
configure:3717: $? = 0
configure:3738: result: o
configure:3742: checking whether we are using the GNU C compiler
configure:3761: gcc -c conftest.c >&5
configure:3761: $? = 0
configure:3770: result: yes
configure:3779: checking whether gcc accepts -g
configure:3799: gcc -c -g conftest.c >&5
configure:3799: $? = 0
configure:3840: result: yes
configure:3857: checking for gcc option to accept ISO C89
configure:3921: gcc -c -g -O2 conftest.c >&5
configure:3921: $? = 0
configure:3934: result: none needed
configure:3956: checking dependency style of gcc
configure:4066: result: gcc3
configure:4086: checking how to run the C preprocessor
configure:4117: gcc -E conftest.c
configure:4117: $? = 0
configure:4131: gcc -E conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:4131: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mesa-demos"
| #define PACKAGE_TARNAME "mesa-demos"
| #define PACKAGE_VERSION "8.1.0"
| #define PACKAGE_STRING "mesa-demos 8.1.0"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos"
| #define PACKAGE_URL ""
| #define PACKAGE "mesa-demos"
| #define VERSION "8.1.0"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4156: result: gcc -E
configure:4176: gcc -E conftest.c
configure:4176: $? = 0
configure:4190: gcc -E conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:4190: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mesa-demos"
| #define PACKAGE_TARNAME "mesa-demos"
| #define PACKAGE_VERSION "8.1.0"
| #define PACKAGE_STRING "mesa-demos 8.1.0"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos"
| #define PACKAGE_URL ""
| #define PACKAGE "mesa-demos"
| #define VERSION "8.1.0"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4266: checking for gcc
configure:4293: result: gcc
configure:4522: checking for C compiler version
configure:4531: gcc --version >&5
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4542: $? = 0
configure:4531: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabi/4.6.1/lto-wrapper
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-float=softfp --with-fpu=vfpv3-d16 --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
configure:4542: $? = 0
configure:4531: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4542: $? = 4
configure:4531: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:4542: $? = 4
configure:4546: checking whether we are using the GNU C compiler
configure:4574: result: yes
configure:4583: checking whether gcc accepts -g
configure:4644: result: yes
configure:4661: checking for gcc option to accept ISO C89
configure:4738: result: none needed
configure:4760: checking dependency style of gcc
configure:4870: result: gcc3
configure:4943: checking for g++
configure:4959: found /usr/bin/g++
configure:4970: result: g++
configure:4997: checking for C++ compiler version
configure:5006: g++ --version >&5
g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5017: $? = 0
configure:5006: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabi/4.6.1/lto-wrapper
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-float=softfp --with-fpu=vfpv3-d16 --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
configure:5017: $? = 0
configure:5006: g++ -V >&5
g++: error: unrecognized option '-V'
g++: fatal error: no input files
compilation terminated.
configure:5017: $? = 4
configure:5006: g++ -qversion >&5
g++: error: unrecognized option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:5017: $? = 4
configure:5021: checking whether we are using the GNU C++ compiler
configure:5040: g++ -c conftest.cpp >&5
configure:5040: $? = 0
configure:5049: result: yes
configure:5058: checking whether g++ accepts -g
configure:5078: g++ -c -g conftest.cpp >&5
configure:5078: $? = 0
configure:5119: result: yes
configure:5144: checking dependency style of g++
configure:5254: result: gcc3
configure:5315: checking how to print strings
configure:5342: result: printf
configure:5363: checking for a sed that does not truncate output
configure:5427: result: /bin/sed
configure:5445: checking for grep that handles long lines and -e
configure:5503: result: /bin/grep
configure:5508: checking for egrep
configure:5570: result: /bin/grep -E
configure:5575: checking for fgrep
configure:5637: result: /bin/grep -F
configure:5672: checking for ld used by gcc
configure:5739: result: /usr/bin/ld
configure:5746: checking if the linker (/usr/bin/ld) is GNU ld
configure:5761: result: yes
configure:5773: checking for BSD- or MS-compatible name lister (nm)
configure:5822: result: /usr/bin/nm -B
configure:5952: checking the name lister (/usr/bin/nm -B) interface
configure:5959: gcc -c -g -O2 conftest.c >&5
configure:5962: /usr/bin/nm -B "conftest.o"
configure:5965: output
00000000 B some_variable
configure:5972: result: BSD nm
configure:5975: checking whether ln -s works
configure:5979: result: yes
configure:5987: checking the maximum length of command line arguments
configure:6112: result: 1572864
configure:6129: checking whether the shell understands some XSI constructs
configure:6139: result: yes
configure:6143: checking whether the shell understands "+="
configure:6149: result: yes
configure:6184: checking how to convert armv7l-unknown-linux-gnueabi file names to armv7l-unknown-linux-gnueabi format
configure:6224: result: func_convert_file_noop
configure:6231: checking how to convert armv7l-unknown-linux-gnueabi file names to toolchain format
configure:6251: result: func_convert_file_noop
configure:6258: checking for /usr/bin/ld option to reload object files
configure:6265: result: -r
configure:6339: checking for objdump
configure:6355: found /usr/bin/objdump
configure:6366: result: objdump
configure:6398: checking how to recognize dependent libraries
configure:6600: result: pass_all
configure:6685: checking for dlltool
configure:6715: result: no
configure:6745: checking how to associate runtime and link libraries
configure:6772: result: printf %s\n
configure:6833: checking for ar
configure:6849: found /usr/bin/ar
configure:6860: result: ar
configure:6897: checking for archiver @FILE support
configure:6914: gcc -c -g -O2 conftest.c >&5
configure:6914: $? = 0
configure:6917: ar cru libconftest.a @conftest.lst >&5
configure:6920: $? = 0
configure:6925: ar cru libconftest.a @conftest.lst >&5
ar: conftest.o: No such file or directory
configure:6928: $? = 1
configure:6940: result: @
configure:6998: checking for strip
configure:7014: found /usr/bin/strip
configure:7025: result: strip
configure:7097: checking for ranlib
configure:7113: found /usr/bin/ranlib
configure:7124: result: ranlib
configure:7226: checking command to parse /usr/bin/nm -B output from gcc object
configure:7345: gcc -c -g -O2 conftest.c >&5
configure:7348: $? = 0
configure:7352: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:7355: $? = 0
configure:7421: gcc -o conftest -g -O2 conftest.c conftstm.o >&5
configure:7424: $? = 0
configure:7462: result: ok
configure:7499: checking for sysroot
configure:7529: result: no
configure:7772: checking for mt
configure:7788: found /bin/mt
configure:7799: result: mt
configure:7822: checking if mt is a manifest tool
configure:7828: mt '-?'
configure:7836: result: no
configure:8464: checking for ANSI C header files
configure:8484: gcc -c -g -O2 conftest.c >&5
configure:8484: $? = 0
configure:8557: gcc -o conftest -g -O2 conftest.c >&5
configure:8557: $? = 0
configure:8557: ./conftest
configure:8557: $? = 0
configure:8568: result: yes
configure:8581: checking for sys/types.h
configure:8581: gcc -c -g -O2 conftest.c >&5
configure:8581: $? = 0
configure:8581: result: yes
configure:8581: checking for sys/stat.h
configure:8581: gcc -c -g -O2 conftest.c >&5
configure:8581: $? = 0
configure:8581: result: yes
configure:8581: checking for stdlib.h
configure:8581: gcc -c -g -O2 conftest.c >&5
configure:8581: $? = 0
configure:8581: result: yes
configure:8581: checking for string.h
configure:8581: gcc -c -g -O2 conftest.c >&5
configure:8581: $? = 0
configure:8581: result: yes
configure:8581: checking for memory.h
configure:8581: gcc -c -g -O2 conftest.c >&5
configure:8581: $? = 0
configure:8581: result: yes
configure:8581: checking for strings.h
configure:8581: gcc -c -g -O2 conftest.c >&5
configure:8581: $? = 0
configure:8581: result: yes
configure:8581: checking for inttypes.h
configure:8581: gcc -c -g -O2 conftest.c >&5
configure:8581: $? = 0
configure:8581: result: yes
configure:8581: checking for stdint.h
configure:8581: gcc -c -g -O2 conftest.c >&5
configure:8581: $? = 0
configure:8581: result: yes
configure:8581: checking for unistd.h
configure:8581: gcc -c -g -O2 conftest.c >&5
configure:8581: $? = 0
configure:8581: result: yes
configure:8595: checking for dlfcn.h
configure:8595: gcc -c -g -O2 conftest.c >&5
configure:8595: $? = 0
configure:8595: result: yes
configure:8793: checking for objdir
configure:8808: result: .libs
configure:9079: checking if gcc supports -fno-rtti -fno-exceptions
configure:9097: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
configure:9101: $? = 0
configure:9114: result: no
configure:9424: checking for gcc option to produce PIC
configure:9431: result: -fPIC -DPIC
configure:9439: checking if gcc PIC flag -fPIC -DPIC works
configure:9457: gcc -c -g -O2 -fPIC -DPIC -DPIC conftest.c >&5
configure:9461: $? = 0
configure:9474: result: yes
configure:9503: checking if gcc static flag -static works
configure:9531: result: yes
configure:9546: checking if gcc supports -c -o file.o
configure:9567: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
configure:9571: $? = 0
configure:9593: result: yes
configure:9601: checking if gcc supports -c -o file.o
configure:9648: result: yes
configure:9681: checking whether the gcc linker (/usr/bin/ld) supports shared libraries
configure:10843: result: yes
configure:10880: checking whether -lc should be explicitly linked in
configure:10888: gcc -c -g -O2 conftest.c >&5
configure:10891: $? = 0
configure:10906: gcc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /bin/grep -lc \>/dev/null 2\>\&1
configure:10909: $? = 0
configure:10923: result: no
configure:11088: checking dynamic linker characteristics
configure:11603: gcc -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.c >&5
configure:11603: $? = 0
configure:11837: result: GNU/Linux ld.so
configure:11944: checking how to hardcode library paths into programs
configure:11969: result: immediate
configure:12509: checking whether stripping libraries is possible
configure:12514: result: yes
configure:12549: checking if libtool supports shared libraries
configure:12551: result: yes
configure:12554: checking whether to build shared libraries
configure:12575: result: yes
configure:12578: checking whether to build static libraries
configure:12582: result: yes
configure:12605: checking how to run the C++ preprocessor
configure:12632: g++ -E conftest.cpp
configure:12632: $? = 0
configure:12646: g++ -E conftest.cpp
conftest.cpp:23:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:12646: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mesa-demos"
| #define PACKAGE_TARNAME "mesa-demos"
| #define PACKAGE_VERSION "8.1.0"
| #define PACKAGE_STRING "mesa-demos 8.1.0"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos"
| #define PACKAGE_URL ""
| #define PACKAGE "mesa-demos"
| #define VERSION "8.1.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:12671: result: g++ -E
configure:12691: g++ -E conftest.cpp
configure:12691: $? = 0
configure:12705: g++ -E conftest.cpp
conftest.cpp:23:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:12705: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mesa-demos"
| #define PACKAGE_TARNAME "mesa-demos"
| #define PACKAGE_VERSION "8.1.0"
| #define PACKAGE_STRING "mesa-demos 8.1.0"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos"
| #define PACKAGE_URL ""
| #define PACKAGE "mesa-demos"
| #define VERSION "8.1.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:12875: checking for ld used by g++
configure:12942: result: /usr/bin/ld
configure:12949: checking if the linker (/usr/bin/ld) is GNU ld
configure:12964: result: yes
configure:13019: checking whether the g++ linker (/usr/bin/ld) supports shared libraries
configure:14023: result: yes
configure:14058: g++ -c -g -O2 conftest.cpp >&5
configure:14061: $? = 0
configure:14581: checking for g++ option to produce PIC
configure:14588: result: -fPIC -DPIC
configure:14596: checking if g++ PIC flag -fPIC -DPIC works
configure:14614: g++ -c -g -O2 -fPIC -DPIC -DPIC conftest.cpp >&5
configure:14618: $? = 0
configure:14631: result: yes
configure:14654: checking if g++ static flag -static works
configure:14682: result: yes
configure:14694: checking if g++ supports -c -o file.o
configure:14715: g++ -c -g -O2 -o out/conftest2.o conftest.cpp >&5
configure:14719: $? = 0
configure:14741: result: yes
configure:14746: checking if g++ supports -c -o file.o
configure:14793: result: yes
configure:14823: checking whether the g++ linker (/usr/bin/ld) supports shared libraries
configure:14860: result: yes
configure:15003: checking dynamic linker characteristics
configure:15686: result: GNU/Linux ld.so
configure:15739: checking how to hardcode library paths into programs
configure:15764: result: immediate
configure:15824: checking whether gcc and cc understand -c and -o together
configure:15855: gcc -c conftest.c -o conftest2.o >&5
configure:15859: $? = 0
configure:15865: gcc -c conftest.c -o conftest2.o >&5
configure:15869: $? = 0
configure:15880: cc -c conftest.c >&5
configure:15884: $? = 0
configure:15892: cc -c conftest.c -o conftest2.o >&5
configure:15896: $? = 0
configure:15902: cc -c conftest.c -o conftest2.o >&5
configure:15906: $? = 0
configure:15924: result: yes
configure:16021: checking for pkg-config
configure:16039: found /usr/bin/pkg-config
configure:16051: result: /usr/bin/pkg-config
configure:16076: checking pkg-config is at least version 0.9.0
configure:16079: result: yes
configure:16090: checking for GL
configure:16097: $PKG_CONFIG --exists --print-errors "gl"
configure:16100: $? = 0
configure:16114: $PKG_CONFIG --exists --print-errors "gl"
configure:16117: $? = 0
configure:16257: result: yes
configure:16275: checking GL/glut.h usability
configure:16275: gcc -c -g -O2 conftest.c >&5
conftest.c:56:21: fatal error: GL/glut.h: No such file or directory
compilation terminated.
configure:16275: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mesa-demos"
| #define PACKAGE_TARNAME "mesa-demos"
| #define PACKAGE_VERSION "8.1.0"
| #define PACKAGE_STRING "mesa-demos 8.1.0"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos"
| #define PACKAGE_URL ""
| #define PACKAGE "mesa-demos"
| #define VERSION "8.1.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <GL/glut.h>
configure:16275: result: no
configure:16275: checking GL/glut.h presence
configure:16275: gcc -E conftest.c
conftest.c:23:21: fatal error: GL/glut.h: No such file or directory
compilation terminated.
configure:16275: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mesa-demos"
| #define PACKAGE_TARNAME "mesa-demos"
| #define PACKAGE_VERSION "8.1.0"
| #define PACKAGE_STRING "mesa-demos 8.1.0"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos"
| #define PACKAGE_URL ""
| #define PACKAGE "mesa-demos"
| #define VERSION "8.1.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <GL/glut.h>
configure:16275: result: no
configure:16275: checking for GL/glut.h
configure:16275: result: no
configure:16283: checking for glutInit in -lglut
configure:16308: gcc -o conftest -g -O2 conftest.c -lglut >&5
/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status
configure:16308: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mesa-demos"
| #define PACKAGE_TARNAME "mesa-demos"
| #define PACKAGE_VERSION "8.1.0"
| #define PACKAGE_STRING "mesa-demos 8.1.0"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos"
| #define PACKAGE_URL ""
| #define PACKAGE "mesa-demos"
| #define VERSION "8.1.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char glutInit ();
| int
| main ()
| {
| return glutInit ();
| ;
| return 0;
| }
configure:16317: result: no
configure:16333: checking for GLEW
configure:16340: $PKG_CONFIG --exists --print-errors "glew >= 1.5.4"
configure:16343: $? = 0
configure:16357: $PKG_CONFIG --exists --print-errors "glew >= 1.5.4"
configure:16360: $? = 0
configure:16418: result: yes
configure:16430: checking for GLU
configure:16437: $PKG_CONFIG --exists --print-errors "glu"
configure:16440: $? = 0
configure:16454: $PKG_CONFIG --exists --print-errors "glu"
configure:16457: $? = 0
configure:16593: result: yes
configure:16611: checking for EGL
configure:16618: $PKG_CONFIG --exists --print-errors "egl"
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
configure:16621: $? = 1
configure:16635: $PKG_CONFIG --exists --print-errors "egl"
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
configure:16638: $? = 1
configure:16652: result: no
No package 'egl' found
configure:16691: checking for GLESV1
configure:16698: $PKG_CONFIG --exists --print-errors "glesv1_cm"
Package glesv1_cm was not found in the pkg-config search path.
Perhaps you should add the directory containing `glesv1_cm.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glesv1_cm' found
configure:16701: $? = 1
configure:16715: $PKG_CONFIG --exists --print-errors "glesv1_cm"
Package glesv1_cm was not found in the pkg-config search path.
Perhaps you should add the directory containing `glesv1_cm.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glesv1_cm' found
configure:16718: $? = 1
configure:16732: result: no
No package 'glesv1_cm' found
configure:16771: checking for GLESV2
configure:16778: $PKG_CONFIG --exists --print-errors "glesv2"
Package glesv2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glesv2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glesv2' found
configure:16781: $? = 1
configure:16795: $PKG_CONFIG --exists --print-errors "glesv2"
Package glesv2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glesv2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glesv2' found
configure:16798: $? = 1
configure:16812: result: no
No package 'glesv2' found
configure:16851: checking for VG
configure:16858: $PKG_CONFIG --exists --print-errors "vg"
Package vg was not found in the pkg-config search path.
Perhaps you should add the directory containing `vg.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vg' found
configure:16861: $? = 1
configure:16875: $PKG_CONFIG --exists --print-errors "vg"
Package vg was not found in the pkg-config search path.
Perhaps you should add the directory containing `vg.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vg' found
configure:16878: $? = 1
configure:16892: result: no
No package 'vg' found
configure:16931: checking for OSMESA
configure:16938: $PKG_CONFIG --exists --print-errors "osmesa"
Package osmesa was not found in the pkg-config search path.
Perhaps you should add the directory containing `osmesa.pc'
to the PKG_CONFIG_PATH environment variable
No package 'osmesa' found
configure:16941: $? = 1
configure:16955: $PKG_CONFIG --exists --print-errors "osmesa"
Package osmesa was not found in the pkg-config search path.
Perhaps you should add the directory containing `osmesa.pc'
to the PKG_CONFIG_PATH environment variable
No package 'osmesa' found
configure:16958: $? = 1
configure:16972: result: no
No package 'osmesa' found
configure:17011: checking for DRM
configure:17018: $PKG_CONFIG --exists --print-errors "libdrm"
configure:17021: $? = 0
configure:17035: $PKG_CONFIG --exists --print-errors "libdrm"
configure:17038: $? = 0
configure:17076: result: yes
configure:17130: checking for X11
configure:17137: $PKG_CONFIG --exists --print-errors "x11 xext"
configure:17140: $? = 0
configure:17154: $PKG_CONFIG --exists --print-errors "x11 xext"
configure:17157: $? = 0
configure:17195: result: yes
configure:17293: checking for GBM
configure:17300: $PKG_CONFIG --exists --print-errors "gbm"
Package gbm was not found in the pkg-config search path.
Perhaps you should add the directory containing `gbm.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gbm' found
configure:17303: $? = 1
configure:17317: $PKG_CONFIG --exists --print-errors "gbm"
Package gbm was not found in the pkg-config search path.
Perhaps you should add the directory containing `gbm.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gbm' found
configure:17320: $? = 1
configure:17334: result: no
No package 'gbm' found
configure:17374: checking for FREETYPE2
configure:17381: $PKG_CONFIG --exists --print-errors "freetype2"
configure:17384: $? = 0
configure:17398: $PKG_CONFIG --exists --print-errors "freetype2"
configure:17401: $? = 0
configure:17439: result: yes
configure:17866: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by mesa-demos config.status 8.1.0, which was
generated by GNU Autoconf 2.68. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status

on linaro-ubuntu-desktop

config.status:1170: creating Makefile
config.status:1170: creating src/Makefile
config.status:1170: creating src/demos/Makefile
config.status:1170: creating src/egl/Makefile
config.status:1170: creating src/egl/eglut/Makefile
config.status:1170: creating src/egl/opengl/Makefile
config.status:1170: creating src/egl/opengles1/Makefile
config.status:1170: creating src/egl/opengles2/Makefile
config.status:1170: creating src/egl/openvg/Makefile
config.status:1170: creating src/egl/openvg/trivial/Makefile
config.status:1170: creating src/egl/oes_vg/Makefile
config.status:1170: creating src/fp/Makefile
config.status:1170: creating src/fpglsl/Makefile
config.status:1170: creating src/glsl/Makefile
config.status:1170: creating src/gs/Makefile
config.status:1170: creating src/data/Makefile
config.status:1170: creating src/objviewer/Makefile
config.status:1170: creating src/osdemos/Makefile
config.status:1170: creating src/perf/Makefile
config.status:1170: creating src/rbug/Makefile
config.status:1170: creating src/redbook/Makefile
config.status:1170: creating src/samples/Makefile
config.status:1170: creating src/slang/Makefile
config.status:1170: creating src/tests/Makefile
config.status:1170: creating src/tools/Makefile
config.status:1170: creating src/trivial/Makefile
config.status:1170: creating src/util/Makefile
config.status:1170: creating src/vp/Makefile
config.status:1170: creating src/vpglsl/Makefile
config.status:1170: creating src/wgl/Makefile
config.status:1170: creating src/xdemos/Makefile
config.status:1342: executing depfiles commands
config.status:1342: executing libtool commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=armv7l-unknown-linux-gnueabi
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DRM_CFLAGS_set=
ac_cv_env_DRM_CFLAGS_value=
ac_cv_env_DRM_LIBS_set=
ac_cv_env_DRM_LIBS_value=
ac_cv_env_EGL_CFLAGS_set=
ac_cv_env_EGL_CFLAGS_value=
ac_cv_env_EGL_LIBS_set=
ac_cv_env_EGL_LIBS_value=
ac_cv_env_FREETYPE2_CFLAGS_set=
ac_cv_env_FREETYPE2_CFLAGS_value=
ac_cv_env_FREETYPE2_LIBS_set=
ac_cv_env_FREETYPE2_LIBS_value=
ac_cv_env_GBM_CFLAGS_set=
ac_cv_env_GBM_CFLAGS_value=
ac_cv_env_GBM_LIBS_set=
ac_cv_env_GBM_LIBS_value=
ac_cv_env_GLESV1_CFLAGS_set=
ac_cv_env_GLESV1_CFLAGS_value=
ac_cv_env_GLESV1_LIBS_set=
ac_cv_env_GLESV1_LIBS_value=
ac_cv_env_GLESV2_CFLAGS_set=
ac_cv_env_GLESV2_CFLAGS_value=
ac_cv_env_GLESV2_LIBS_set=
ac_cv_env_GLESV2_LIBS_value=
ac_cv_env_GLEW_CFLAGS_set=
ac_cv_env_GLEW_CFLAGS_value=
ac_cv_env_GLEW_LIBS_set=
ac_cv_env_GLEW_LIBS_value=
ac_cv_env_GLU_CFLAGS_set=
ac_cv_env_GLU_CFLAGS_value=
ac_cv_env_GLU_LIBS_set=
ac_cv_env_GLU_LIBS_value=
ac_cv_env_GL_CFLAGS_set=
ac_cv_env_GL_CFLAGS_value=
ac_cv_env_GL_LIBS_set=
ac_cv_env_GL_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_OSMESA_CFLAGS_set=
ac_cv_env_OSMESA_CFLAGS_value=
ac_cv_env_OSMESA_LIBS_set=
ac_cv_env_OSMESA_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_VG_CFLAGS_set=
ac_cv_env_VG_CFLAGS_value=
ac_cv_env_VG_LIBS_set=
ac_cv_env_VG_LIBS_value=
ac_cv_env_WAYLAND_CFLAGS_set=
ac_cv_env_WAYLAND_CFLAGS_value=
ac_cv_env_WAYLAND_LIBS_set=
ac_cv_env_WAYLAND_LIBS_value=
ac_cv_env_X11_CFLAGS_set=
ac_cv_env_X11_CFLAGS_value=
ac_cv_env_X11_LIBS_set=
ac_cv_env_X11_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_GL_glut_h=no
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=armv7l-unknown-linux-gnueabi
ac_cv_lib_glut_glutInit=no
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_FGREP='/bin/grep -F'
ac_cv_path_GREP=/bin/grep
ac_cv_path_SED=/bin/sed
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_MANIFEST_TOOL=mt
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_gcc_c_o=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
lt_cv_ar_at_file=@
lt_cv_archive_cmds_need_lc=no
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_LDCXX=/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_mainfest_tool=no
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=yes
lt_cv_prog_compiler_pic='-fPIC -DPIC'
lt_cv_prog_compiler_pic_CXX='-fPIC -DPIC'
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_pic_works_CXX=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=yes
lt_cv_prog_compiler_static_works_CXX=yes
lt_cv_prog_gnu_ld=yes
lt_cv_prog_gnu_ldcxx=yes
lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
lt_cv_shlibpath_overrides_runpath=no
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\'''
lt_cv_sys_max_cmd_len=1572864
lt_cv_to_host_file_cmd=func_convert_file_noop
lt_cv_to_tool_file_cmd=func_convert_file_noop
pkg_cv_DRM_CFLAGS='-I/usr/include/libdrm '
pkg_cv_DRM_LIBS='-ldrm '
pkg_cv_FREETYPE2_CFLAGS='-I/usr/local/include/freetype2 -I/usr/local/include '
pkg_cv_FREETYPE2_LIBS='-L/usr/local/lib -lfreetype '
pkg_cv_GLEW_CFLAGS='-I/usr/include/GL '
pkg_cv_GLEW_LIBS='-lGLEW '
pkg_cv_GLU_CFLAGS=' '
pkg_cv_GLU_LIBS='-lGLU -lGL '
pkg_cv_GL_CFLAGS=' '
pkg_cv_GL_LIBS='-lGL '
pkg_cv_X11_CFLAGS=' '
pkg_cv_X11_LIBS='-lX11 -lXext '

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/linaro/demos/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/linaro/demos/missing --run tar'
AM_BACKSLASH='\'
AM_DEFAULT_VERBOSITY='0'
AR='ar'
AUTOCONF='${SHELL} /home/linaro/demos/missing --run autoconf'
AUTOHEADER='${SHELL} /home/linaro/demos/missing --run autoheader'
AUTOMAKE='${SHELL} /home/linaro/demos/missing --run automake-1.11'
AWK='mawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS='-DPACKAGE_NAME=\"mesa-demos\" -DPACKAGE_TARNAME=\"mesa-demos\" -DPACKAGE_VERSION=\"8.1.0\" -DPACKAGE_STRING=\"mesa-demos\ 8.1.0\" -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?product=Mesa\&component=Demos\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa-demos\" -DVERSION=\"8.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DDEMOS_DATA_DIR=\"../data/\" -DDEMOS_DATA_DIR=\"../data/\"'
DEMOS_DATA_DIR='../data/'
DEMO_CFLAGS=' -I/usr/include/GL -D_GNU_SOURCE -DPTHREADS -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement'
DEMO_LIBS=' -lGL -lGLEW -lGLU -lGL -lm'
DEPDIR='.deps'
DLLTOOL='false'
DRM_CFLAGS='-I/usr/include/libdrm '
DRM_LIBS='-ldrm '
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGL_CFLAGS=''
EGL_LIBS=''
EGREP='/bin/grep -E'
EXEEXT=''
FGREP='/bin/grep -F'
FREETYPE2_CFLAGS='-I/usr/local/include/freetype2 -I/usr/local/include '
FREETYPE2_LIBS='-L/usr/local/lib -lfreetype '
GBM_CFLAGS=''
GBM_LIBS=''
GLESV1_CFLAGS=''
GLESV1_LIBS=''
GLESV2_CFLAGS=''
GLESV2_LIBS=''
GLEW_CFLAGS='-I/usr/include/GL '
GLEW_LIBS='-lGLEW '
GLUT_CFLAGS=''
GLUT_LIBS='-lglut'
GLU_CFLAGS=' '
GLU_LIBS='-lGLU -lGL '
GL_CFLAGS=' '
GL_LIBS='-lGL '
GREP='/bin/grep'
HAVE_DRM_FALSE='#'
HAVE_DRM_TRUE=''
HAVE_EGL_FALSE=''
HAVE_EGL_TRUE='#'
HAVE_FREETYPE2_FALSE='#'
HAVE_FREETYPE2_TRUE=''
HAVE_GBM_FALSE=''
HAVE_GBM_TRUE='#'
HAVE_GLESV1_FALSE=''
HAVE_GLESV1_TRUE='#'
HAVE_GLESV2_FALSE=''
HAVE_GLESV2_TRUE='#'
HAVE_GLUT_FALSE=''
HAVE_GLUT_TRUE='#'
HAVE_MESA_SOURCE_FALSE=''
HAVE_MESA_SOURCE_TRUE='#'
HAVE_OSMESA_FALSE=''
HAVE_OSMESA_TRUE='#'
HAVE_RBUG_FALSE=''
HAVE_RBUG_TRUE='#'
HAVE_VG_FALSE=''
HAVE_VG_TRUE='#'
HAVE_WAYLAND_FALSE=''
HAVE_WAYLAND_TRUE='#'
HAVE_X11_FALSE='#'
HAVE_X11_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/usr/bin/ld'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO=''
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/linaro/demos/missing --run makeinfo'
MANIFEST_TOOL=':'
MESA_GLAPI='/src/mapi/glapi/gen'
MKDIR_P='/bin/mkdir -p'
NM='/usr/bin/nm -B'
NMEDIT=''
OBJDUMP='objdump'
OBJEXT='o'
OSMESA16_LIBS=''
OSMESA32_LIBS=''
OSMESA_CFLAGS=''
OSMESA_LIBS=''
OTOOL64=''
OTOOL=''
PACKAGE='mesa-demos'
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos'
PACKAGE_NAME='mesa-demos'
PACKAGE_STRING='mesa-demos 8.1.0'
PACKAGE_TARNAME='mesa-demos'
PACKAGE_URL=''
PACKAGE_VERSION='8.1.0'
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
RANLIB='ranlib'
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
STRIP='strip'
VERSION='8.1.0'
VG_CFLAGS=''
VG_LIBS=''
WAYLAND_CFLAGS=''
WAYLAND_LIBS=''
X11_CFLAGS=' '
X11_LIBS='-lX11 -lXext '
ac_ct_AR='ar'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='armv7l-unknown-linux-gnueabi'
build_alias=''
build_cpu='armv7l'
build_os='linux-gnueabi'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='armv7l-unknown-linux-gnueabi'
host_alias=''
host_cpu='armv7l'
host_os='linux-gnueabi'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/linaro/demos/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "mesa-demos"
#define PACKAGE_TARNAME "mesa-demos"
#define PACKAGE_VERSION "8.1.0"
#define PACKAGE_STRING "mesa-demos 8.1.0"
#define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos"
#define PACKAGE_URL ""
#define PACKAGE "mesa-demos"
#define VERSION "8.1.0"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define DEMOS_DATA_DIR "../data/"
#define DEMOS_DATA_DIR "../data/"

configure: exit 0
romain


Joined: 06 Nov 2013
Posts: 17
Hi all, the last post didn't reach the mailing list because of it's length. You can read it here : http://forums.libsdl.org/viewtopic.php?t=9713#40613

Configure call :
Quote:
$ ./configure --enable-gles2 --enable-egl


And the config.log in a nutshell :
Quote:
configure:16611: checking for EGL
configure:16618: $PKG_CONFIG --exists --print-errors "egl"
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
romain


Joined: 06 Nov 2013
Posts: 17
It seems that some guys have successfully run (compiled?) es2_info on Utilite.
I tried to compile mesa demos (es2gears, es2_info, ...) on the Utilite but the configure cannot find neither EGL or GLES2... Those headers should be included in the Vivante drivers... How can I verify that ?
romain


Joined: 06 Nov 2013
Posts: 17
4 days later and still trying to find a solution.

I found that bug reported in 09/2013 related to the lack of OpenGL headers in the Vivante drivers : https://bugzilla.yoctoproject.org/show_bug.cgi?id=5098
Is EGL part of OpenGL ?
And do I need EGL to have a working SDL and to run my OpenGL/GLES2 - based application ?

Thanks Wink

Thanks to the Utilite team, here is the result of some commands :
Quote:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Linaro
Description: Linaro 11.10 (development branch)
Release: 11.10
Codename: oneiric

Quote:
$ glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_INTEL_swap_event,
GLX_MESA_copy_sub_buffer, GLX_OML_swap_method, GLX_SGIS_multisample,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_make_current_read
client glx vendor string: Vivante Corp
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGI_make_current_read
GLX version: 1.4
GLX extensions:
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_make_current_read
OpenGL vendor string: Vivante Corporation
OpenGL renderer string: GC2000 Graphics Engine
OpenGL version string: 2.1 2.0.1
OpenGL shading language version string: 1.20
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_fragment_program_shadow,
GL_ARB_fragment_shader, GL_ARB_imaging, GL_ARB_multisample,
GL_ARB_multitexture, GL_ARB_pixel_buffer_object, GL_ARB_shader_objects,
GL_ARB_texture_compression, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_non_power_of_two,
GL_ARB_texture_rectangle, GL_ARB_vertex_buffer_object,
GL_ARB_vertex_shader, GL_ARB_window_pos, GL_ATI_draw_buffers,
GL_ATI_element_array, GL_ATI_separate_stencil,
GL_ATI_texture_env_combine3, GL_ATI_vertex_array_object, GL_EXT_abgr,
GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_equation_separate,
GL_EXT_blend_func_separate, GL_EXT_color_table, GL_EXT_convolution,
GL_EXT_draw_buffers2, GL_EXT_draw_instanced, GL_EXT_draw_range_elements,
GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample,
GL_EXT_framebuffer_object, GL_EXT_histogram, GL_EXT_pixel_buffer_object,
GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_stencil_two_side,
GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D,
GL_EXT_texture_array, GL_EXT_texture_buffer_object,
GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map,
GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias,
GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_timer_query,
GL_EXT_vertex_array, GL_NV_texture_rectangle, GL_SGIS_generate_mipmap,
GL_SGIS_texture_lod, GL_SGI_color_matrix, WGL_ARB_extensions_string,
WGL_EXT_extensions_string, WGL_EXT_swap_control

Quote:
$ ldd `which glxinfo`
libGL.so.1 => /usr/lib/libGL.so.1 (0x40355000)
libX11.so.6 => /usr/lib/arm-linux-gnueabi/libX11.so.6 (0x40184000)
libc.so.6 => /lib/arm-linux-gnueabi/libc.so.6 (0x403a0000)
libXdamage.so.1 => /usr/lib/arm-linux-gnueabi/libXdamage.so.1 (0x400a5000)
libXfixes.so.3 => /usr/lib/arm-linux-gnueabi/libXfixes.so.3 (0x400af000)
libXext.so.6 => /usr/lib/arm-linux-gnueabi/libXext.so.6 (0x400bb000)
libpthread.so.0 => /lib/arm-linux-gnueabi/libpthread.so.0 (0x40038000)
libxcb.so.1 => /usr/lib/arm-linux-gnueabi/libxcb.so.1 (0x400ce000)
libdl.so.2 => /lib/arm-linux-gnueabi/libdl.so.2 (0x4001c000)
/lib/ld-linux.so.3 (0x40086000)
libXau.so.6 => /usr/lib/arm-linux-gnueabi/libXau.so.6 (0x4004f000)
libXdmcp.so.6 => /usr/lib/arm-linux-gnueabi/libXdmcp.so.6 (0x40027000)

Quote:
$ ldd /opt/viv_samples/vdk/tutorial3_es20
libVDK.so => /usr/lib/libVDK.so (0x401e0000)
libGAL.so => /usr/lib/libGAL.so (0x400f3000)
libEGL.so.1 => /usr/lib/libEGL.so.1 (0x401bd000)
libGLESv2.so.2 => /usr/lib/libGLESv2.so.2 (0x401ec000)
libpthread.so.0 => /lib/arm-linux-gnueabi/libpthread.so.0 (0x40001000)
libdl.so.2 => /lib/arm-linux-gnueabi/libdl.so.2 (0x40075000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabi/libstdc++.so.6 (0x40223000)
librt.so.1 => /lib/arm-linux-gnueabi/librt.so.1 (0x402ce000)
libm.so.6 => /lib/arm-linux-gnueabi/libm.so.6 (0x402dc000)
libgcc_s.so.1 => /lib/arm-linux-gnueabi/libgcc_s.so.1 (0x400a7000)
libc.so.6 => /lib/arm-linux-gnueabi/libc.so.6 (0x40348000)
libXdamage.so.1 => /usr/lib/arm-linux-gnueabi/libXdamage.so.1 (0x401d4000)
libXfixes.so.3 => /usr/lib/arm-linux-gnueabi/libXfixes.so.3 (0x40429000)
libXext.so.6 => /usr/lib/arm-linux-gnueabi/libXext.so.6 (0x400b8000)
libX11.so.6 => /usr/lib/arm-linux-gnueabi/libX11.so.6 (0x40435000)
/lib/ld-linux.so.3 (0x4002d000)
libxcb.so.1 => /usr/lib/arm-linux-gnueabi/libxcb.so.1 (0x4051c000)
libXau.so.6 => /usr/lib/arm-linux-gnueabi/libXau.so.6 (0x40015000)
libXdmcp.so.6 => /usr/lib/arm-linux-gnueabi/libXdmcp.so.6 (0x40534000)
Wink
SDL2 + OpelGL ES2 + Freescale i.MX6
gabomdq


Joined: 28 Jul 2011
Posts: 495
Location: Argentina
EGL is a system designed to support OpenGL (it's the middle man between the hardware and system specific implementations and the OpenGL API). Whether you need EGL or not depends on the platform you want to run on, but most likely, yes, you need it.

From your earlier messages, it seemed like the configure script couldn't find egl.pc, the package config specification for EGL.


What's the full output of dpkg -S gpu-viv-bin-mx6q ?


2013/11/19 romain
Quote:
4 days later and still trying to find a solution.

I found that bug reported in 09/2013 related to the lack of OpenGL headers in the Vivante drivers : https://bugzilla.yoctoproject.org/show_bug.cgi?id=5098
Is EGL part of OpenGL ?
And do I need EGL to have a working SDL and to run my OpenGL/GLES2 - based application ?

Thanks

Thanks to the Utilite team, here is the result of some commands :



Quote:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Linaro
Description: Linaro 11.10 (development branch)
Release: 11.10
Codename: oneiric







Quote:

$ glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_INTEL_swap_event,
GLX_MESA_copy_sub_buffer, GLX_OML_swap_method, GLX_SGIS_multisample,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_make_current_read
client glx vendor string: Vivante Corp
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGI_make_current_read
GLX version: 1.4
GLX extensions:
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_make_current_read
OpenGL vendor string: Vivante Corporation
OpenGL renderer string: GC2000 Graphics Engine
OpenGL version string: 2.1 2.0.1
OpenGL shading language version string: 1.20
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_fragment_program_shadow,
GL_ARB_fragment_shader, GL_ARB_imaging, GL_ARB_multisample,
GL_ARB_multitexture, GL_ARB_pixel_buffer_object, GL_ARB_shader_objects,
GL_ARB_texture_compression, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_non_power_of_two,
GL_ARB_texture_rectangle, GL_ARB_vertex_buffer_object,
GL_ARB_vertex_shader, GL_ARB_window_pos, GL_ATI_draw_buffers,
GL_ATI_element_array, GL_ATI_separate_stencil,
GL_ATI_texture_env_combine3, GL_ATI_vertex_array_object, GL_EXT_abgr,
GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_equation_separate,
GL_EXT_blend_func_separate, GL_EXT_color_table, GL_EXT_convolution,
GL_EXT_draw_buffers2, GL_EXT_draw_instanced, GL_EXT_draw_range_elements,
GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample,
GL_EXT_framebuffer_object, GL_EXT_histogram, GL_EXT_pixel_buffer_object,
GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_stencil_two_side,
GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D,
GL_EXT_texture_array, GL_EXT_texture_buffer_object,
GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map,
GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias,
GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_timer_query,
GL_EXT_vertex_array, GL_NV_texture_rectangle, GL_SGIS_generate_mipmap,
GL_SGIS_texture_lod, GL_SGI_color_matrix, WGL_ARB_extensions_string,
WGL_EXT_extensions_string, WGL_EXT_swap_control







Quote:

$ ldd `which glxinfo`
libGL.so.1 => /usr/lib/libGL.so.1 (0x40355000)
libX11.so.6 => /usr/lib/arm-linux-gnueabi/libX11.so.6 (0x40184000)
libc.so.6 => /lib/arm-linux-gnueabi/libc.so.6 (0x403a0000)
libXdamage.so.1 => /usr/lib/arm-linux-gnueabi/libXdamage.so.1 (0x400a5000)
libXfixes.so.3 => /usr/lib/arm-linux-gnueabi/libXfixes.so.3 (0x400af000)
libXext.so.6 => /usr/lib/arm-linux-gnueabi/libXext.so.6 (0x400bb000)
libpthread.so.0 => /lib/arm-linux-gnueabi/libpthread.so.0 (0x40038000)
libxcb.so.1 => /usr/lib/arm-linux-gnueabi/libxcb.so.1 (0x400ce000)
libdl.so.2 => /lib/arm-linux-gnueabi/libdl.so.2 (0x4001c000)
/lib/ld-linux.so.3 (0x40086000)
libXau.so.6 => /usr/lib/arm-linux-gnueabi/libXau.so.6 (0x4004f000)
libXdmcp.so.6 => /usr/lib/arm-linux-gnueabi/libXdmcp.so.6 (0x40027000)







Quote:

$ ldd /opt/viv_samples/vdk/tutorial3_es20
libVDK.so => /usr/lib/libVDK.so (0x401e0000)
libGAL.so => /usr/lib/libGAL.so (0x400f3000)
libEGL.so.1 => /usr/lib/libEGL.so.1 (0x401bd000)
libGLESv2.so.2 => /usr/lib/libGLESv2.so.2 (0x401ec000)
libpthread.so.0 => /lib/arm-linux-gnueabi/libpthread.so.0 (0x40001000)
libdl.so.2 => /lib/arm-linux-gnueabi/libdl.so.2 (0x40075000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabi/libstdc++.so.6 (0x40223000)
librt.so.1 => /lib/arm-linux-gnueabi/librt.so.1 (0x402ce000)
libm.so.6 => /lib/arm-linux-gnueabi/libm.so.6 (0x402dc000)
libgcc_s.so.1 => /lib/arm-linux-gnueabi/libgcc_s.so.1 (0x400a7000)
libc.so.6 => /lib/arm-linux-gnueabi/libc.so.6 (0x40348000)
libXdamage.so.1 => /usr/lib/arm-linux-gnueabi/libXdamage.so.1 (0x401d4000)
libXfixes.so.3 => /usr/lib/arm-linux-gnueabi/libXfixes.so.3 (0x40429000)
libXext.so.6 => /usr/lib/arm-linux-gnueabi/libXext.so.6 (0x400b8000)
libX11.so.6 => /usr/lib/arm-linux-gnueabi/libX11.so.6 (0x40435000)
/lib/ld-linux.so.3 (0x4002d000)
libxcb.so.1 => /usr/lib/arm-linux-gnueabi/libxcb.so.1 (0x4051c000)
libXau.so.6 => /usr/lib/arm-linux-gnueabi/libXau.so.6 (0x40015000)
libXdmcp.so.6 => /usr/lib/arm-linux-gnueabi/libXdmcp.so.6 (0x40534000)






_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org





--
Gabriel.
romain


Joined: 06 Nov 2013
Posts: 17
Here is the full output :

Quote:
$ dpkg -S gpu-viv-bin-mx6q
gpu-viv-bin-mx6q: /usr/share/doc/gpu-viv-bin-mx6q/changelog.gz
gpu-viv-bin-mx6q: /usr/share/doc/gpu-viv-bin-mx6q


Apparently the Vivante GC2000 GPU supports both OpenGL and GLES2, so SDL should be able to handle both, isn't it ?
I'm also playing with environment variables, but the manual isn't rich in what I should put in them (I tested with dummy/x11/opengl/software...)
SDL_RENDER_DRIVER
SDL_VIDEO_DRIVER
SDL2 + OpelGL ES2 + Freescale i.MX6
gabomdq


Joined: 28 Jul 2011
Posts: 495
Location: Argentina
I'm sorry, I pasted the wrong command Smile

Try: dpkg-query -L gpu-viv-bin-mx6q







2013/11/19 romain
Quote:
Here is the full output :




Quote:

$ dpkg -S gpu-viv-bin-mx6q
gpu-viv-bin-mx6q: /usr/share/doc/gpu-viv-bin-mx6q/changelog.gz
gpu-viv-bin-mx6q: /usr/share/doc/gpu-viv-bin-mx6q





Apparently the Vivante GC2000 GPU supports both OpenGL and GLES2, so SDL should be able to handle both, isn't it ?
I'm also playing with environment variables, but the manual isn't rich in what I should put in them (I tested with dummy/x11/opengl/software...)
SDL_RENDER_DRIVER
SDL_VIDEO_DRIVER


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org





--
Gabriel.
romain


Joined: 06 Nov 2013
Posts: 17
No problem Wink

Here it is :
Quote:
$ dpkg-query -L gpu-viv-bin-mx6q
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/gpu-viv-bin-mx6q
/usr/share/doc/gpu-viv-bin-mx6q/changelog.gz
/usr/include
/usr/include/vdk.h
/usr/include/CL
/usr/include/CL/cl_ext.h
/usr/include/CL/cl_platform.h
/usr/include/CL/cl_gl_ext.h
/usr/include/CL/opencl.h
/usr/include/CL/cl_gl.h
/usr/include/CL/cl.hpp
/usr/include/CL/cl.h
/usr/include/CL/cl_d3d10.h
/usr/include/GLES
/usr/include/GLES/glplatform.h
/usr/include/GLES/egl.h
/usr/include/GLES/gl.h
/usr/include/GLES/glunname.h
/usr/include/GLES/glrename.h
/usr/include/GLES/glext.h
/usr/include/HAL
/usr/include/HAL/gc_hal_version.h
/usr/include/HAL/aqHal.h
/usr/include/HAL/gc_hal_rename.h
/usr/include/HAL/gc_hal_raster.h
/usr/include/HAL/gc_hal_vg.h
/usr/include/HAL/gc_hal_options.h
/usr/include/HAL/gc_hal_enum.h
/usr/include/HAL/gc_hal_eglplatform.h
/usr/include/HAL/gc_hal_statistics.h
/usr/include/HAL/gc_hal_types.h
/usr/include/HAL/gc_hal_base.h
/usr/include/HAL/gc_hal_profiler.h
/usr/include/HAL/gc_hal_engine_vg.h
/usr/include/HAL/gc_hal_dump.h
/usr/include/HAL/gc_hal_eglplatform_type.h
/usr/include/HAL/gc_hal_engine.h
/usr/include/HAL/gc_hal_driver.h
/usr/include/HAL/gc_hal.h
/usr/include/HAL/gc_hal_driver_vg.h
/usr/include/EGL
/usr/include/EGL/egl.h
/usr/include/EGL/eglunname.h
/usr/include/EGL/eglrename.h
/usr/include/EGL/eglplatform.h
/usr/include/EGL/eglext.h
/usr/include/EGL/eglvivante.h
/usr/include/wayland-viv
/usr/include/wayland-viv/gc_wayland_protocol.h
/usr/include/wayland-viv/wayland-viv-server-protocol.h
/usr/include/wayland-viv/wayland-viv-client-protocol.h
/usr/include/gc_vdk_hal.h
/usr/include/gc_vdk_types.h
/usr/include/VG
/usr/include/VG/vgrename.h
/usr/include/VG/vgunname.h
/usr/include/VG/vgplatform.h
/usr/include/VG/vgu.h
/usr/include/VG/vgext.h
/usr/include/VG/openvg.h
/usr/include/KHR
/usr/include/KHR/khrplatform.h
/usr/include/KHR/khrvivante.h
/usr/include/GLES2
/usr/include/GLES2/gl2rename.h
/usr/include/GLES2/gl2unname.h
/usr/include/GLES2/gl2.h
/usr/include/GLES2/gl2ext.h
/usr/include/GLES2/gl2platform.h
/usr/include/gc_vdk.h
/usr/lib
/usr/lib/libGLESv2.so.2.0.0
/usr/lib/libwayland-viv.so.0.0.0
/usr/lib/libEGL-wl.so
/usr/lib/libEGL-fb.so
/usr/lib/libVDK.so
/usr/lib/libGLESv1_CL.so.1.1.0
/usr/lib/libEGL-x11.so
/usr/lib/libVIVANTE-dfb.so
/usr/lib/libGAL-dfb.so
/usr/lib/libOpenCL.so
/usr/lib/libVIVANTE-x11.so
/usr/lib/directfb-1.4-0
/usr/lib/directfb-1.4-0/gfxdrivers
/usr/lib/directfb-1.4-0/gfxdrivers/libdirectfb_gal.so
/usr/lib/libGL.so.1.2
/usr/lib/libGAL-wl.so
/usr/lib/libVIVANTE-wl.so
/usr/lib/libGAL-fb.so
/usr/lib/libgc_wayland_protocol.a
/usr/lib/libGLESv1_CM.so.1.1.0
/usr/lib/libGLES_CL.so
/usr/lib/libOpenVG_3D.so
/usr/lib/pkgconfig
/usr/lib/pkgconfig/wayland-egl.pc
/usr/lib/pkgconfig/wayland-viv.pc
/usr/lib/pkgconfig/gc_wayland_protocol.pc
/usr/lib/libEGL-dfb.so
/usr/lib/libGAL-x11.so
/usr/lib/libCLC.so
/usr/lib/libgc_wayland_protocol.la
/usr/lib/libwayland-viv.a
/usr/lib/libOpenVG_355.so
/usr/lib/libgc_wayland_protocol.so.0.0.0
/usr/lib/libwayland-viv.la
/usr/lib/libGLES_CM.so
/usr/lib/libOpenVG.so
/usr/lib/libVIVANTE-fb.so
/usr/lib/libGLSLC.so
/usr/lib/dri
/usr/lib/dri/vivante_dri.so
/usr/lib/libwayland-viv.so
/usr/lib/libGLESv2.so
/usr/lib/libgc_wayland_protocol.so.0
/usr/lib/libVIVANTE.so
/usr/lib/libGAL.so
/usr/lib/libGLESv1_CL.so
/usr/lib/libEGL.so
/usr/lib/libGLESv1_CL.so.1
/usr/lib/libwayland-viv.so.0
/usr/lib/libGL.so.1
/usr/lib/libGLESv1_CM.so
/usr/lib/libGL.so
/usr/lib/libGLESv2.so.2
/usr/lib/libgc_wayland_protocol.so
/usr/lib/libEGL.so.1
/usr/lib/libGLESv1_CM.so.1
SDL2 + OpelGL ES2 + Freescale i.MX6
gabomdq


Joined: 28 Jul 2011
Posts: 495
Location: Argentina
It seems there's no egl.pc, so the problem comes down to a buggy package, but maybe you can work around it. Try sticking these files in /usr/lib/pkgconfig : https://github.com/Freescale/meta-fsl-arm/tree/master/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q

You may need to play around with your system to find the solution that works for you, it's not something that can be fixed from the SDL side.



2013/11/19 romain
Quote:
No problem

Here it is :



Quote:

$ dpkg-query -L gpu-viv-bin-mx6q
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/gpu-viv-bin-mx6q
/usr/share/doc/gpu-viv-bin-mx6q/changelog.gz
/usr/include
/usr/include/vdk.h
/usr/include/CL
/usr/include/CL/cl_ext.h
/usr/include/CL/cl_platform.h
/usr/include/CL/cl_gl_ext.h
/usr/include/CL/opencl.h
/usr/include/CL/cl_gl.h
/usr/include/CL/cl.hpp
/usr/include/CL/cl.h
/usr/include/CL/cl_d3d10.h
/usr/include/GLES
/usr/include/GLES/glplatform.h
/usr/include/GLES/egl.h
/usr/include/GLES/gl.h
/usr/include/GLES/glunname.h
/usr/include/GLES/glrename.h
/usr/include/GLES/glext.h
/usr/include/HAL
/usr/include/HAL/gc_hal_version.h
/usr/include/HAL/aqHal.h
/usr/include/HAL/gc_hal_rename.h
/usr/include/HAL/gc_hal_raster.h
/usr/include/HAL/gc_hal_vg.h
/usr/include/HAL/gc_hal_options.h
/usr/include/HAL/gc_hal_enum.h
/usr/include/HAL/gc_hal_eglplatform.h
/usr/include/HAL/gc_hal_statistics.h
/usr/include/HAL/gc_hal_types.h
/usr/include/HAL/gc_hal_base.h
/usr/include/HAL/gc_hal_profiler.h
/usr/include/HAL/gc_hal_engine_vg.h
/usr/include/HAL/gc_hal_dump.h
/usr/include/HAL/gc_hal_eglplatform_type.h
/usr/include/HAL/gc_hal_engine.h
/usr/include/HAL/gc_hal_driver.h
/usr/include/HAL/gc_hal.h
/usr/include/HAL/gc_hal_driver_vg.h
/usr/include/EGL
/usr/include/EGL/egl.h
/usr/include/EGL/eglunname.h
/usr/include/EGL/eglrename.h
/usr/include/EGL/eglplatform.h
/usr/include/EGL/eglext.h
/usr/include/EGL/eglvivante.h
/usr/include/wayland-viv
/usr/include/wayland-viv/gc_wayland_protocol.h
/usr/include/wayland-viv/wayland-viv-server-protocol.h
/usr/include/wayland-viv/wayland-viv-client-protocol.h
/usr/include/gc_vdk_hal.h
/usr/include/gc_vdk_types.h
/usr/include/VG
/usr/include/VG/vgrename.h
/usr/include/VG/vgunname.h
/usr/include/VG/vgplatform.h
/usr/include/VG/vgu.h
/usr/include/VG/vgext.h
/usr/include/VG/openvg.h
/usr/include/KHR
/usr/include/KHR/khrplatform.h
/usr/include/KHR/khrvivante.h
/usr/include/GLES2
/usr/include/GLES2/gl2rename.h
/usr/include/GLES2/gl2unname.h
/usr/include/GLES2/gl2.h
/usr/include/GLES2/gl2ext.h
/usr/include/GLES2/gl2platform.h
/usr/include/gc_vdk.h
/usr/lib
/usr/lib/libGLESv2.so.2.0.0
/usr/lib/libwayland-viv.so.0.0.0
/usr/lib/libEGL-wl.so
/usr/lib/libEGL-fb.so
/usr/lib/libVDK.so
/usr/lib/libGLESv1_CL.so.1.1.0
/usr/lib/libEGL-x11.so
/usr/lib/libVIVANTE-dfb.so
/usr/lib/libGAL-dfb.so
/usr/lib/libOpenCL.so
/usr/lib/libVIVANTE-x11.so
/usr/lib/directfb-1.4-0
/usr/lib/directfb-1.4-0/gfxdrivers
/usr/lib/directfb-1.4-0/gfxdrivers/libdirectfb_gal.so
/usr/lib/libGL.so.1.2
/usr/lib/libGAL-wl.so
/usr/lib/libVIVANTE-wl.so
/usr/lib/libGAL-fb.so
/usr/lib/libgc_wayland_protocol.a
/usr/lib/libGLESv1_CM.so.1.1.0
/usr/lib/libGLES_CL.so
/usr/lib/libOpenVG_3D.so
/usr/lib/pkgconfig
/usr/lib/pkgconfig/wayland-egl.pc
/usr/lib/pkgconfig/wayland-viv.pc
/usr/lib/pkgconfig/gc_wayland_protocol.pc
/usr/lib/libEGL-dfb.so
/usr/lib/libGAL-x11.so
/usr/lib/libCLC.so
/usr/lib/libgc_wayland_protocol.la
/usr/lib/libwayland-viv.a
/usr/lib/libOpenVG_355.so
/usr/lib/libgc_wayland_protocol.so.0.0.0
/usr/lib/libwayland-viv.la
/usr/lib/libGLES_CM.so
/usr/lib/libOpenVG.so
/usr/lib/libVIVANTE-fb.so
/usr/lib/libGLSLC.so
/usr/lib/dri
/usr/lib/dri/vivante_dri.so
/usr/lib/libwayland-viv.so
/usr/lib/libGLESv2.so
/usr/lib/libgc_wayland_protocol.so.0
/usr/lib/libVIVANTE.so
/usr/lib/libGAL.so
/usr/lib/libGLESv1_CL.so
/usr/lib/libEGL.so
/usr/lib/libGLESv1_CL.so.1
/usr/lib/libwayland-viv.so.0
/usr/lib/libGL.so.1
/usr/lib/libGLESv1_CM.so
/usr/lib/libGL.so
/usr/lib/libGLESv2.so.2
/usr/lib/libgc_wayland_protocol.so
/usr/lib/libEGL.so.1
/usr/lib/libGLESv1_CM.so.1






_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org





--
Gabriel.
romain


Joined: 06 Nov 2013
Posts: 17
Thanks Gabriel. I tried that but it messed up the video and it ended with no display at reboot. I had to remove those files.
As you said, the problem is outside of SDL because even glxgears isn't working...

I'll get in contact with Utilite team and see if they have a solution.
Thanks !
romain


Joined: 06 Nov 2013
Posts: 17
Back from my contact with Utilite's team, I got an updated image to play with.
This image seems to implement an updated version of the driver from Vivante for the i.MX6 SoC, and trying to enable EGL support give the same result :
Code:
# apt-get install libegl1-mesa-dev
[...]
Unpacking libegl1-mesa-dev (from .../libegl1-mesa-dev_8.0.4-0ubuntu0.6_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/libegl1-mesa-dev_8.0.4-0ubuntu0.6_armel.deb (--unpack):
trying to overwrite '/usr/include/EGL/eglplatform.h', which is also in package gpu-viv-ubt0 13.04.01.oneiric.MX6DQ.4.0.0.RC3


From what I understand, EGL isn't platform dependant, and doesn't seem related to the GPU driver. Any suggestions on what I can do is welcome Smile
SDL2 + OpelGL ES2 + Freescale i.MX6
gabomdq


Joined: 28 Jul 2011
Posts: 495
Location: Argentina
2013/12/9 romain
Quote:
Back from my contact with Utilite's team, I got an updated image to play with.
This image seems to implement an updated version of the driver from Vivante for the i.MX6 SoC, and trying to enable EGL support give the same result :



Code:

# apt-get install libegl1-mesa-dev
[...]
Unpacking libegl1-mesa-dev (from .../libegl1-mesa-dev_8.0.4-0ubuntu0.6_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/libegl1-mesa-dev_8.0.4-0ubuntu0.6_armel.deb (--unpack):
trying to overwrite '/usr/include/EGL/eglplatform.h', which is also in package gpu-viv-ubt0 13.04.01.oneiric.MX6DQ.4.0.0.RC3




From what I understand, EGL isn't platform dependant, and doesn't seem related to the GPU driver. Any suggestions on what I can do is welcome






It looks like you are still having conflicts between dev packages, I would try not installing  libegl1-mesa-dev and seeing what happens. Or remove gpu-viv-ubt0 and install  libegl1-mesa-dev, or force an overwrite, or extract manually to some other directory, you know the usual crazy stuff you go through when cross compiling Smile


But, any of this combinations should work given semi sane headers end up being installed along with a usable pkgconfig file...while there are differences between EGL platforms, I think that to cross compile SDL it should all work out fine if you just nail the number of bits the processor uses (32 vs 64), and maybe not even that is required Smile


-- 

Gabriel.
SDL2 + OpelGL ES2 + Freescale i.MX6
Jonas Kulla
Guest

2013/12/9 romain
Quote:
Back from my contact with Utilite's team, I got an updated image to play with.
This image seems to implement an updated version of the driver from Vivante for the i.MX6 SoC, and trying to enable EGL support give the same result :



Code:

# apt-get install libegl1-mesa-dev
[...]
Unpacking libegl1-mesa-dev (from .../libegl1-mesa-dev_8.0.4-0ubuntu0.6_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/libegl1-mesa-dev_8.0.4-0ubuntu0.6_armel.deb (--unpack):
trying to overwrite '/usr/include/EGL/eglplatform.h', which is also in package gpu-viv-ubt0 13.04.01.oneiric.MX6DQ.4.0.0.RC3




From what I understand, EGL isn't platform dependant, and doesn't seem related to the GPU driver. Any suggestions on what I can do is welcome



No, the EGL _API_ is platform independent. The _implementation_ is very much platform
dependent as it handles all the little differences behind your back for you.
romain


Joined: 06 Nov 2013
Posts: 17
Thanks, I'll try to manually replace the files and force the package installation, but I agree with you gabomdq on the small chances of success...
I can direcly compile on the target, so I don't have to setup a cross compiling environment (for the moment).

Thanks Jonas for those infos. I found that Mesa does provide EGL. I'm not really sure of what Mesa is : is it "simply" libraries, or drivers too ?
Assuming the first case, I decided to follow this and to build EGL/Mesa (after all this seems to be all I need) : http://www.mesa3d.org/egl.html
But unfortunatly the configure ends with this error :
Code:
No package 'libdrm_intel' found

I don't see why an intel package is required here as I'm on an ARM platform... But I couldn't find a workaround...

Would you agree this could be a good lead ?