Stellarium on Raspberry Pi : GLES2/gl2.h : No such file or directory

Asked by Anthony_Coro

Hi!

I am trying to install Stellarium software on my Raspberry Pi. I have followed the instructions of the following wiki:
http://stellarium.org/wiki/index.php/Compilation_on_Linux and I meet issues at the "make" steps. I observe the following error message:

[ 37%] Building CXX object src/CMakeFiles/stellarium.dir/core/OctahedronPolygon.cpp.o
In file included from /home/pi/Stellarium/stellarium-0.12.4/src/core/OctahedronPolygon.cpp:22:0:
/home/pi/Stellarium/stellarium-0.12.4/src/core/external/glues_stel/source/glues.h:41:24: fatal error: GLES2/gl2.h: No such file or directory
compilation terminated.
make[2]: *** [src/CMakeFiles/stellarium.dir/core/OctahedronPolygon.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/stellarium.dir/all] Error 2
make: *** [all] Error 2

I suspected that Raspberry Pi does not have Open GL2 but OPEN GL ES could be the root cause of this issue. However, following the instructions of this link (http://stellarium.org/wiki/index.php/Configuring_Build_Options#Make_targets) I changed OPENGL_MODE from Desktop to ES2 and I observed the same behaviour.

I am convinced that I am not the first trying to install Stellarium on Raspberry Pi. If you could help me, feel free to contact me.

Thanks a lot.

Question information

Language:
English Edit question
Status:
Answered
For:
Stellarium Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alexander Wolf (alexwolf) said :
#1

Looks like your operating system on Raspberry Pi doesn't have OpenGL ES2 headers.

Revision history for this message
Anthony_Coro (corolleur-anthony-draft) said :
#2

Yes you are right, I konw the PATH to this file in the Raspberry.
Do you know which environment variable or file might be updated to add this PATH?
Thanks a lot,
Best Regards,

Revision history for this message
Alexander Wolf (alexwolf) said :
#3

What about export PATH=/path/to/headers:$PATH ?

Revision history for this message
Anthony_Coro (corolleur-anthony-draft) said :
#4

Hi Alexander!

I solved my first issue by changing directly the PATH of OPEN GL ES2 in the src/CMakeFiles/stellarium.dir/core/OctahedronPolygon.cpp.o file .

With this change, I could build all the project without error.
But when I launch stellarium I have the following issue :

pi@raspberrypi ~/Stellarium/stellarium-0.12.4 $ stellarium
Using default graphics system specified at build time: raster
 -------------------------------------------------------
[ This is Stellarium 0.12.4 - http://www.stellarium.org ]
[ Copyright (C) 2000-2013 Fabien Chereau et al ]
 -------------------------------------------------------
Writing log file to: "/home/pi/.stellarium/log.txt"
File search paths:
  0 . "/home/pi/.stellarium"
  1 . "."
Attempting to use an existing older config file.
Config file is: "/home/pi/.stellarium/config.ini"
Oops... This system does not support OpenGL.

Do you know what could be my mistake?
Thanks a lot,
Best Regards.

Revision history for this message
Alexander Wolf (alexwolf) said :
#5

You can disable check for OpenGL support in main.cpp file.

Revision history for this message
gzotti (georg-zotti) said :
#6

Have you tried recently, 0.13 series with Qt5?
If yes, how did you build Qt5 on/for your Raspberry, or did you try 0.12.4 with Qt4 only?

I was able to build and launch it, but have trouble with EGLFS not allowing more than 1 window, so Splash screen is all I have seen so far. Not sure how to correctly build/use QtWayland.

Can you help with this problem?

Provide an answer of your own, or ask Anthony_Coro for more information if necessary.

To post a message you must log in.