Stellarium


36 posts   Page 2 of 2   1, 2
by reggie » Mon Aug 13, 2012 11:12 pm
Which version of qt is it using? If you'd like to share your compile command, I'll take a look, see if we can figure it out?
Posts: 150
Joined: Fri Aug 26, 2011 11:51 am
by bgirardot » Mon Oct 29, 2012 7:31 am
Just curious if anyone has gotten Stellarium running yet.
Posts: 517
Joined: Wed Oct 10, 2012 6:20 am
Location: Switzerland
by astroland » Thu Dec 20, 2012 8:17 pm
Hi

I managed to figure out how to compile Stellarium (0.11.4) on the RasPi and found a way around the compile error messages ericskiff mentioned a few posts ago.
The key lies in the files /usr/include/GL/glext.h and /opt/vc/include/GLES2/gl2.h.

Before you all start cheering, Stellarium still fails to work.
When I run the executable I get the error message that OpenGL is not supported.

Here's the logfile it generates:
Code: Select all
2012-12-20T20:55:24
Linux version 3.2.27+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #250 PREEMPT Thu Oct 18 19:03:02 BST 2012
Compiled using GCC 4.6.3
Qt runtime version: 4.8.2
Qt compilation version: 4.8.2
Addressing mode: 32-bit
stellarium
 -------------------------------------------------------
[ This is Stellarium 0.11.4 - http://www.stellarium.org ]
[ Copyright (C) 2000-2012 Fabien Chereau et al          ]
 -------------------------------------------------------
Writing log file to: "/home/pi/.stellarium/log.txt"
File search paths:
  0 .  "/home/pi/.stellarium"
  1 .  "/usr/local/share/stellarium"
Config file is:  "/home/pi/.stellarium/config.ini"
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLTempContext: No GL capable X visuals available.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLShaderProgram::uniformLocation( projectionMatrix ): shader program is not linked
QGLShaderProgram::uniformLocation( color ): shader program is not linked
QGLShaderProgram::attributeLocation( vertex ): shader program is not linked
QGLShaderProgram::uniformLocation( projectionMatrix ): shader program is not linked
QGLShaderProgram::attributeLocation( texCoord ): shader program is not linked
QGLShaderProgram::attributeLocation( vertex ): shader program is not linked
QGLShaderProgram::uniformLocation( texColor ): shader program is not linked
QGLShaderProgram::uniformLocation( tex ): shader program is not linked
QGLShaderProgram::uniformLocation( projectionMatrix ): shader program is not linked
QGLShaderProgram::attributeLocation( texCoord ): shader program is not linked
QGLShaderProgram::attributeLocation( vertex ): shader program is not linked
QGLShaderProgram::attributeLocation( color ): shader program is not linked
QGLShaderProgram::uniformLocation( tex ): shader program is not linked
QGLContext::makeCurrent(): Cannot make invalid context current.


Also starting stellarium with the --safe-mode switch or adding use_glshaders=false in the config file doesn't help.
Stellarium is compiled using cmake -DOPENGL_MODE=ES2

Anyone out there who has an idea what could be the cause?
Posts: 4
Joined: Mon Nov 19, 2012 2:15 pm
Location: The Netherlands
by jamesh » Thu Dec 20, 2012 11:38 pm
Hmmm. Stellarium worked for me with those compile flags set, and some removed stuff to do with architecture. But was very slow. And that was on a proto board. THis was also before hard float.
Moderator
Posts: 6385
Joined: Sat Jul 30, 2011 7:41 pm
by jamesh » Thu Dec 20, 2012 11:42 pm
Ah, are you running from within X? I think the binding from X to accelerated GLES isn't there yet? Can you run from outside a desktop?
Moderator
Posts: 6385
Joined: Sat Jul 30, 2011 7:41 pm
by astroland » Fri Dec 21, 2012 9:36 am
jamesh wrote:Ah, are you running from within X? I think the binding from X to accelerated GLES isn't there yet? Can you run from outside a desktop?


I am running from within X (standard LXDE).
When I start from the command prompt (X not started) I get the message that stellarium couldn't connect to a X Server.
Posts: 4
Joined: Mon Nov 19, 2012 2:15 pm
Location: The Netherlands
by jamesh » Fri Dec 21, 2012 10:38 am
It's so long since I tried this, I cannot remember what I did. I've checked my notes but nothing relevant.
Moderator
Posts: 6385
Joined: Sat Jul 30, 2011 7:41 pm
by texy » Fri Dec 21, 2012 11:20 am
How do you compile this on the pi. 'cmake' is a directory, not a command ?
Perhaps I,ve downloaded the wrong package........
Texy
"!.8inch TFT LCD + Switch Shield" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=59&t=40674
50p goes to the Foundation ;-)
Moderator
Posts: 1258
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by astroland » Fri Dec 21, 2012 11:34 am
texy wrote:How do you compile this on the pi. 'cmake' is a directory, not a command ?

Texy


install cmake with: sudo apt-get install cmake

There's some more stuff you need to compile Stellarium and some edits/hacks in files here and there.
If you followed this thread a bit, you might understand there are some problems compiling it out-of-the-box (in other words, it fails to compile).
Before I can write down a proper tutorial how to install Stellarium on your Pi, I need to get my head around that OpenGL problem.
I think I'm quite close to solve the problem.

@jamesh : think hard! :D
Posts: 4
Joined: Mon Nov 19, 2012 2:15 pm
Location: The Netherlands
by texy » Fri Dec 21, 2012 11:43 am
OK. Look forward to the tut ;)

Texy
"!.8inch TFT LCD + Switch Shield" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=59&t=40674
50p goes to the Foundation ;-)
Moderator
Posts: 1258
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by texy » Fri Dec 21, 2012 3:06 pm
astroland wrote:Hi

I managed to figure out how to compile Stellarium (0.11.4) on the RasPi and found a way around the compile error messages ericskiff mentioned a few posts ago.
The key lies in the files /usr/include/GL/glext.h and /opt/vc/include/GLES2/gl2.h.


...so how did you fix this?
I,m getting this error at 45% :

Code: Select all
/home/shares/public/stellarium-0.11.4/src/core/StelSkyDrawer.cpp:21:24: fatal error: GLES2/gl2.h: No such file or directory
compilation terminated.
make[2]: *** [src/CMakeFiles/stellarium.dir/core/StelSkyDrawer.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/stellarium.dir/all] Error 2
make: *** [all] Error 2


Texy
"!.8inch TFT LCD + Switch Shield" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=59&t=40674
50p goes to the Foundation ;-)
Moderator
Posts: 1258
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England