User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

ERROR: Could not initialize OpenGL / GLES library

Mon Oct 10, 2016 9:20 am

Hi everyone.

I'm trying to install Urho3D on RPi 3. (GPU = 768 MB)

I installed all the essential dependencies. All the steps went fine.
Until this error which occurred during the final make step:

Code: Select all

 [ 56%] Building CXX object Source/Urho3D/CMakeFiles/Urho3D.dir/Graphics/Skybox.cpp.o
    [ 57%] Building CXX object Source/Urho3D/CMakeFiles/Urho3D.dir/Graphics/Graphics.cpp.o
    In file included from /root/Urho3D/Source/Urho3D/Graphics/../Graphics/GraphicsImpl.h:29:0,
                     from /root/Urho3D/Source/Urho3D/Graphics/Graphics.cpp:34:
    /root/Urho3D/Source/Urho3D/Graphics/../Graphics/OpenGL/OGLGraphicsImpl.h:36:23: fatal error: GLES2/gl2.h: No such file or directory
     #include <GLES2/gl2.h>
                           ^
    compilation terminated.
    Source/Urho3D/CMakeFiles/Urho3D.dir/build.make:1916: recipe for target 'Source/Urho3D/CMakeFiles/Urho3D.dir/Graphics/Graphics.cpp.o' failed
    make[2]: *** [Source/Urho3D/CMakeFiles/Urho3D.dir/Graphics/Graphics.cpp.o] Error 1
    CMakeFiles/Makefile2:1198: recipe for target 'Source/Urho3D/CMakeFiles/Urho3D.dir/all' failed
    make[1]: *** [Source/Urho3D/CMakeFiles/Urho3D.dir/all] Error 2
    Makefile:137: recipe for target 'all' failed
    make: *** [all] Error 2
Any suggestions?
What should I do !?

User avatar
topguy
Posts: 6466
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Mon Oct 10, 2016 10:53 am

I think you have to add "/opt/vc/include" as one of the places where the compiler looks for header files.
Usually by adding: -I/opt/vc/include
at a strategic place in your makefile
(PS! that is a capital 'i', not a small 'L' )

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Mon Oct 10, 2016 11:03 am

topguy wrote:(PS! that is a capital 'i', not a small 'L' )
Could you have written that in a more confusing way ? :lol:
Maybe "That is capital "eye" (India) not a small "ell" (Lima)" is clearer !
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Mon Oct 10, 2016 12:05 pm

topguy wrote:I think you have to add "/opt/vc/include" as one of the places where the compiler looks for header files.
Usually by adding: -I/opt/vc/include
at a strategic place in your makefile
(PS! that is a capital 'i', not a small 'L' )
Thanks @topguy for your reply.
Would you please explain how I can do this !?
(sorry, I'm a beginner in Linux!)

User avatar
topguy
Posts: 6466
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Mon Oct 10, 2016 12:24 pm

cmake is not something I know very well...but...

Did you use the "cmake_rpi.sh" script ? or did you just do "cmake ." as the general Linux tutorial said ?
I think using that script fixes this automatically.

User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Mon Oct 10, 2016 4:44 pm

topguy wrote:cmake is not something I know very well...but...

Did you use the "cmake_rpi.sh" script ? or did you just do "cmake ." as the general Linux tutorial said ?
I think using that script fixes this automatically.
Thanks again for your reply.

I did cmake . as the general linux tutorial said.
Actually, this error occurs after cmake. It happens during make.
I don't know if cmake_rpi.sh will solve this or not.
Here is its content:

Code: Select all

$(dirname $0)/cmake_generic.sh "$@" -DRPI=1
and these are the cmake_generic.sh :

Code: Select all

# Determine source tree and build tree
if [ "$1" ] && [[ ! "$1" =~ ^- ]]; then BUILD=$1; shift; elif [ -f $(pwd)/CMakeCache.txt ]; then BUILD=$(pwd); else caller=$$
SOURCE=$(cd ${0%/*}; pwd)
if [ "$BUILD" == "." ]; then BUILD=$(pwd); fi

# Define helpers
. "$SOURCE"/.bash_helpers.sh

# Detect CMake toolchains directory if it is not provided explicitly
[ "$TOOLCHAINS" == "" ] && TOOLCHAINS="$SOURCE"/CMake/Toolchains
[ ! -d "$TOOLCHAINS" -a -d "$URHO3D_HOME"/share/Urho3D/CMake/Toolchains ] && TOOLCHAINS="$URHO3D_HOME"/share/Urho3D/CMake/To$

# Default to native generator and toolchain if none is specified explicitly
IFS=#
OPTS=
for a in $@; do
    case $a in
        --fix-scm)
            FIX_SCM=1
            ;;
        Eclipse\ CDT4\ -\ Unix\ Makefiles)
            ECLIPSE=1
            ;;
        -DIOS=1)
            IOS=1
            ;;
        -DANDROID=1)
            ANDROID=1 && OPTS="-DCMAKE_TOOLCHAIN_FILE=$TOOLCHAINS/android.toolchain.cmake"
            ;;
        -DRPI=1)
            if [[ ! $(uname -m) =~ ^arm ]]; then OPTS="-DCMAKE_TOOLCHAIN_FILE=$TOOLCHAINS/raspberrypi.toolchain.cmake"; fi
            ;;
        -DARM=1)
            if [[ ! $(uname -m) =~ ^(arm|aarch64) ]]; then OPTS="-DCMAKE_TOOLCHAIN_FILE=$TOOLCHAINS/arm-linux.toolchain.cmak$
            ;;
        -DWIN32=1)
            OPTS="-DCMAKE_TOOLCHAIN_FILE=$TOOLCHAINS/mingw.toolchain.cmake"
            ;;
        -DWEB=1)
            OPTS="-DCMAKE_TOOLCHAIN_FILE=$TOOLCHAINS/emscripten.toolchain.cmake"
            ;;
    esac
done

# Create project with the chosen CMake generator and toolchain
cmake -E make_directory "$BUILD" && cmake -E chdir "$BUILD" cmake $OPTS $@ "$SOURCE" && post_cmake

User avatar
topguy
Posts: 6466
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Mon Oct 10, 2016 8:14 pm

I know its a "make" error but its caused by "cmake" becase cmake is the program that creates the "Makefile" which "make" builds from. So all compiler options, library paths etc. is decided by cmake based on your Linux installation and by some manually set build options. "-DRPI=1" is one such option which means "enable RPI"

Deeper down in the cmake files there is a test for the "RPI" and then it includes VIDEOCORE paths and that is "/opt/vc" so I'm pretty sure you should use "cmake_rpi.sh".

User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Tue Oct 11, 2016 1:41 pm

topguy wrote:I know its a "make" error but its caused by "cmake" becase cmake is the program that creates the "Makefile" which "make" builds from. So all compiler options, library paths etc. is decided by cmake based on your Linux installation and by some manually set build options. "-DRPI=1" is one such option which means "enable RPI"

Deeper down in the cmake files there is a test for the "RPI" and then it includes VIDEOCORE paths and that is "/opt/vc" so I'm pretty sure you should use "cmake_rpi.sh".
Thanks @topguy for your reply.

When I use the following command:

Code: Select all

. cmake_rpi.sh
it give this error:

Code: Select all

Usage: cmake_genereic.sh /path/to/build-tree [build-options]
What should I do !?

User avatar
topguy
Posts: 6466
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Tue Oct 11, 2016 1:51 pm

One of the benefits of using "cmake" in development is that it makes it easy to "build out of source".
If you want to do this you most likely just do.

Code: Select all

mkdir build
. cmake_rpi.h build
cd build
make
But if you dont want to do that then I expect

Code: Select all

. cmake_rpi.h .
also will do the job.

User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Tue Oct 11, 2016 2:00 pm

topguy wrote:One of the benefits of using "cmake" in development is that it makes it easy to "build out of source".
If you want to do this you most likely just do.

Code: Select all

mkdir build
. cmake_rpi.h build
cd build
make
But if you dont want to do that then I expect

Code: Select all

. cmake_rpi.h .
also will do the job.
Thanks @topguy for your quick reply.
I did the cmake process.
Now it's going through the make process which will take almost 90 minutes.
I'll let you know if it succeeded or not.
Thanks.

User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Tue Oct 11, 2016 3:52 pm

Well, the installation process finished.

But when I try to run the Urho3DPlayer or run an example (NinjaSnowWar.sh) it gives errors:

Code: Select all

root@raspberrypi:/home/pi/Urho3D/bin# . Urho3DPlayer

bash: .: Urho3DPlayer: cannot execute binary file

root@raspberrypi:/home/pi/Urho3D/bin# . NinjaSnowWar.sh

[Tue Oct 11 15:51:09 2016] INFO: Opened log file /root/.local/share/urho3d/logs/NinjaSnowWar.as.log
[Tue Oct 11 15:51:09 2016] INFO: Created 3 worker threads
[Tue Oct 11 15:51:09 2016] INFO: Added resource path /home/pi/Urho3D/bin/Data/
[Tue Oct 11 15:51:09 2016] INFO: Added resource path /home/pi/Urho3D/bin/CoreData/
[Tue Oct 11 15:51:09 2016] INFO: Added resource path /home/pi/Urho3D/bin/Autoload/LargeData/
[Tue Oct 11 15:51:09 2016] ERROR: Could not create window, root cause: ''
I don't know what the problem is :(

User avatar
Paeryn
Posts: 2952
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Tue Oct 11, 2016 3:59 pm

Your prompt shows that you are running the program when logged in as root and in all likelihood root hasn't got authority to open a window on the display (normally only the user that owns the display of the x server can open a window on it).

<Edit> Then again this doesn't look to be X related, if it isn't then ignore what I put above...
OMID-313 wrote:

Code: Select all

root@raspberrypi:/home/pi/Urho3D/bin# . Urho3DPlayer

bash: .: Urho3DPlayer: cannot execute binary file
. in bash means source, i.e. it will try and execute the file as a bash script. I think you meant

Code: Select all

./Urho3DPlayer
She who travels light — forgot something.

User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Tue Oct 11, 2016 4:15 pm

Paeryn wrote:Your prompt shows that you are running the program when logged in as root and in all likelihood root hasn't got authority to open a window on the display (normally only the user that owns the display of the x server can open a window on it).

<Edit> Then again this doesn't look to be X related, if it isn't then ignore what I put above...
OMID-313 wrote:

Code: Select all

root@raspberrypi:/home/pi/Urho3D/bin# . Urho3DPlayer

bash: .: Urho3DPlayer: cannot execute binary file
. in bash means source, i.e. it will try and execute the file as a bash script. I think you meant

Code: Select all

./Urho3DPlayer
Thanks @Paeryn for your reply.
I tried all methods of running including your suggestion. But no help.
It gives the same error. could not create window!!
Also I started the x with root. Again same Error.

Any suggestions !!?

User avatar
Paeryn
Posts: 2952
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Tue Oct 11, 2016 5:06 pm

Not sure why it's not working for you. I just finished building it and running it I get

Code: Select all

pi@rpi3:~/Public/Urho3D-1.6/build/bin $ ./Urho3DPlayer
[Tue Oct 11 18:01:16 2016] INFO: Opened log file /home/pi/.local/share/urho3d/logs/NinjaSnowWar.as.log
[Tue Oct 11 18:01:16 2016] INFO: Created 3 worker threads
[Tue Oct 11 18:01:16 2016] INFO: Added resource path /home/pi/Public/Urho3D-1.6/build/bin/Data/
[Tue Oct 11 18:01:16 2016] INFO: Added resource path /home/pi/Public/Urho3D-1.6/build/bin/CoreData/
[Tue Oct 11 18:01:16 2016] INFO: Added resource path /home/pi/Public/Urho3D-1.6/build/bin/Autoload/LargeData/
[Tue Oct 11 18:01:16 2016] INFO: Set screen mode 1920x1080 fullscreen
[Tue Oct 11 18:01:16 2016] INFO: Initialized input
[Tue Oct 11 18:01:16 2016] INFO: Initialized user interface
[Tue Oct 11 18:01:16 2016] INFO: Initialized renderer
[Tue Oct 11 18:01:16 2016] ERROR: Could not initialize audio output
[Tue Oct 11 18:01:16 2016] INFO: Initialized engine
[Tue Oct 11 18:01:17 2016] INFO: Compiled script module Scripts/NinjaSnowWar.as
[Tue Oct 11 18:01:17 2016] INFO: Loading scene from Scenes/NinjaSnowWar.xml
^C
Display opens up properly and everything is rendered until I quit it.
She who travels light — forgot something.

User avatar
Paeryn
Posts: 2952
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Tue Oct 11, 2016 9:22 pm

Looking through the source code, SDL is responsible for creating the window and that error happens when it failed. The only point in SDL's video driver for the RPi where it fails to set an error message looks to be if it fails the initial call to get the size of the display (the call to graphics_get_display_size()).

I just edited that bit of the video driver and forced the call to fail, it then does as you say, fails to open the window and doesn't give a root cause. Are you by any chance using the experimental OpenGL driver? I've not tried it but that may affect things as the method of opening a window is likely to be different to what SDL is expecting.
She who travels light — forgot something.

User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Thu Oct 13, 2016 5:42 am

Paeryn wrote:Looking through the source code, SDL is responsible for creating the window and that error happens when it failed. The only point in SDL's video driver for the RPi where it fails to set an error message looks to be if it fails the initial call to get the size of the display (the call to graphics_get_display_size()).

I just edited that bit of the video driver and forced the call to fail, it then does as you say, fails to open the window and doesn't give a root cause. Are you by any chance using the experimental OpenGL driver? I've not tried it but that may affect things as the method of opening a window is likely to be different to what SDL is expecting.
Thanks @Paeryn fpr your reply.
I don't know whether I'm using experimental OpenGL or what else!

This is how I installed it in RPi :

Code: Select all

apt-get update
apt-get install build-essential
apt-get install freeglut3 freeglut3-dev
apt-get install unixodbc-dev

apt-get install libevdev2

apt-get install libasound2-dev
apt-get install libaudio-dev
apt-get install libesd0-dev
apt-get install libpulse-dev
apt-get install libroar-dev
apt-get install libreadline6-dev

apt-get install git cmake make

git clone https://github.com/urho3d/Urho3D
cd Urho3D
./cmake_rpi.sh /home/pi/Urho3D
make
Is this method right !?
What is my mistake !?
How should I solve this problem !!?

User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Thu Oct 13, 2016 6:17 am

Paeryn wrote:Looking through the source code, SDL is responsible for creating the window and that error happens when it failed. The only point in SDL's video driver for the RPi where it fails to set an error message looks to be if it fails the initial call to get the size of the display (the call to graphics_get_display_size()).

I just edited that bit of the video driver and forced the call to fail, it then does as you say, fails to open the window and doesn't give a root cause. Are you by any chance using the experimental OpenGL driver? I've not tried it but that may affect things as the method of opening a window is likely to be different to what SDL is expecting.
I enabled GL driver op RPi via raspi-config. Should I disable that !?

User avatar
topguy
Posts: 6466
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Thu Oct 13, 2016 8:24 am

Yes this is the "experimental OpenGL driver", but why ask, why not just test it.

User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Thu Oct 13, 2016 11:03 am

I reinstalled Raspbian Jessie OS.
Then reinstalled Urho3D (experimental OpenGL disabled, and GPU=768 MB.)

Now after cmake and make, when I run ./Urho3DPlayer , it gives the following:

Code: Select all

[Thu Oct 13 10:56:17 2016] INFO: Opened log file /home/pi/.local/share/urho3d/logs/NinjaSnowWar.as.log
[Thu Oct 13 10:56:17 2016] INFO: Created 3 worker threads
[Thu Oct 13 10:56:17 2016] INFO: Added resource path /home/pi/Urho3D/bin/Data/
[Thu Oct 13 10:56:17 2016] INFO: Added resource path /home/pi/Urho3D/bin/CoreData/
[Thu Oct 13 10:56:17 2016] INFO: Added resource path /home/pi/Urho3D/bin/Autoload/LargeData/
[Thu Oct 13 10:56:17 2016] ERROR: Could not create window, root cause: 'Could not initialize OpenGL / GLES library'
Now what should I do !!?

User avatar
Paeryn
Posts: 2952
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Thu Oct 13, 2016 2:27 pm

I can't see anything that should be causing the loading of the EGL/OpenGLES libraries to fail. Can you run any other OpenGLES program like the example in /opt/vc/src/hello_world/hello_triangle (it needs compiling first with either make or sudo make, ctrl-c to quit it)?

The only thing that looks odd is you say you have set the GPU memory to 768MB, that is a tiny bit excessive, it only leaves 256MB for Linux and your programs so unless you really need that much graphics memory I'd suggest lowering it. Though I just tried setting it that high on mine and it still runs Urho3D fine.
She who travels light — forgot something.

User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Thu Oct 13, 2016 3:01 pm

Paeryn wrote:I can't see anything that should be causing the loading of the EGL/OpenGLES libraries to fail. Can you run any other OpenGLES program like the example in /opt/vc/src/hello_world/hello_triangle (it needs compiling first with either make or sudo make, ctrl-c to quit it)?

The only thing that looks odd is you say you have set the GPU memory to 768MB, that is a tiny bit excessive, it only leaves 256MB for Linux and your programs so unless you really need that much graphics memory I'd suggest lowering it. Though I just tried setting it that high on mine and it still runs Urho3D fine.
Thanks @Paeryn for your reply.

I compiled the hello_triangle program with sudo make, and then running ./hello_triangle.bat worked perfectly.
But unfortunately running ./Urho3DPlayer or ./NinjaSnowWar.sh give the same errors.
Even lowering the GPU to 512 MB and rebooting didn't solve the problem.

Did I miss anything related to OpenGL or Graphics in the installation process !?
What shall I do !?

User avatar
Paeryn
Posts: 2952
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Thu Oct 13, 2016 3:45 pm

Well there's no problems running OpenGLES. The only time that error message gets printed is when SDL attempts to load EGL (and OpenGLES with it) and fails. As long as you configured the build with cmake_rpi.sh then it should work. I was going to suggest posting on their forum but I see you already have, hopefully somebody there who is familiar with it will have an idea.

It shouldn't have a direct effect, but on your post on their forum you say you used sudo on the git, ./cmake_rpi.sh and make commands. None of those commands should require root privileges (although once you used it on git then you made the others require it as all the files and directories created would be owned by root).
She who travels light — forgot something.

User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Thu Oct 13, 2016 5:14 pm

Paeryn wrote:Well there's no problems running OpenGLES. The only time that error message gets printed is when SDL attempts to load EGL (and OpenGLES with it) and fails. As long as you configured the build with cmake_rpi.sh then it should work. I was going to suggest posting on their forum but I see you already have, hopefully somebody there who is familiar with it will have an idea.

It shouldn't have a direct effect, but on your post on their forum you say you used sudo on the git, ./cmake_rpi.sh and make commands. None of those commands should require root privileges (although once you used it on git then you made the others require it as all the files and directories created would be owned by root).
Thanks again @Paeryn for your reply.

Well, what else should I do to solve this problem !?
I'm ready to install everything from the beginning. Would you please give me step-by-step instructions on how to do this !?
Because you've done this on RPi, and you're my only hope.
So I would really appreciate it if you help me with exact guidelines from the very beginning.

Thanks a lot.

User avatar
Paeryn
Posts: 2952
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Thu Oct 13, 2016 5:52 pm

OMID-313 wrote:
Paeryn wrote:Well there's no problems running OpenGLES. The only time that error message gets printed is when SDL attempts to load EGL (and OpenGLES with it) and fails. As long as you configured the build with cmake_rpi.sh then it should work. I was going to suggest posting on their forum but I see you already have, hopefully somebody there who is familiar with it will have an idea.

It shouldn't have a direct effect, but on your post on their forum you say you used sudo on the git, ./cmake_rpi.sh and make commands. None of those commands should require root privileges (although once you used it on git then you made the others require it as all the files and directories created would be owned by root).
Thanks again @Paeryn for your reply.

Well, what else should I do to solve this problem !?
I'm ready to install everything from the beginning. Would you please give me step-by-step instructions on how to do this !?
Because you've done this on RPi, and you're my only hope.
So I would really appreciate it if you help me with exact guidelines from the very beginning.
Thanks a lot.
After getting the code I just ran

Code: Select all

cd Urho3D-1.6
mkdir build
./cmake_rpi.h build
cd build
make
Creating and using a build directory just helps keep the build files separate from the source, it should still work without doing that I think.
She who travels light — forgot something.

User avatar
OMID-313
Posts: 141
Joined: Tue Jan 20, 2015 4:45 pm

Re: Fatal Error: GLES2/gl2.h: No such file or directory

Fri Oct 14, 2016 8:50 pm

Paeryn wrote: After getting the code I just ran

Code: Select all

cd Urho3D-1.6
mkdir build
./cmake_rpi.h build
cd build
make
Creating and using a build directory just helps keep the build files separate from the source, it should still work without doing that I think.
Thanks again @Paeryn for your reply.
I'll try these soon.
But a few questions:

1. Which libraries and dependencies did you install before building with cmake and make? Anything else than those I listed above? Or maybe I shouldn't install them !!?
2. Which commands do I have to run with sudo and which ones without sudo !?
3. Did you use Raspbian Jessie as the OS !?
4. Do I have to enable or install any special library or package about graphics or OpenGL !?

Thank you very much for your time and help. I do really appreciate it.

Return to “OpenGLES”