Stellarium


38 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: 151
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
Moderator
Posts: 10568
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
Moderator
Posts: 10568
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
Moderator
Posts: 10568
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
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Moderator
Moderator
Posts: 2204
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
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Moderator
Moderator
Posts: 2204
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
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Moderator
Moderator
Posts: 2204
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by w8iss » Sat Oct 26, 2013 8:40 pm
Has anyone had any luck yet with getting stellarium running?

I am still getting the openGL error message when I try.

Wanted to have this for presentations at the local high school observatory plus using the pi would make my travels to local observing events easier.
Posts: 1
Joined: Sat Oct 26, 2013 8:24 pm
by tony1tf » Mon Feb 24, 2014 4:46 pm
Just downloaded Stellarium - the log file shows it as version 0.11.3. Tried running and got the OpenGL not supported message. Then saw the post from Jamesh suggesting to try running from outside the desktop - used my Mac and "startlxde" command. Great, Stellarium runs - get a lot of messages on the text terminal such as "Satellites: could not update orbital elements for '.....' "
Having problems getting to the bottom of the graphics screen on my Mac to access the off switch for Stellarium - had to use sudo reboot from the Pi login screen. It was daytime, so I cant see stars, but clicking on various parts of the graphics screen brings up entries for stars updating in real time. Main problem so far is that various menus dont have text on them - just 'blocky' characters - could just guess at the top right hand corner window dismiss button.

Anyway - it looks very promising when the bugs get fixed - is it still being worked on?
Tony
Posts: 32
Joined: Tue Jul 03, 2012 12:33 pm