reggie
Posts: 151
Joined: Fri Aug 26, 2011 11:51 am

Re: Stellarium

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?

bgirardot
Posts: 517
Joined: Wed Oct 10, 2012 6:20 am
Location: Switzerland

Re: Stellarium

Mon Oct 29, 2012 7:31 am

Just curious if anyone has gotten Stellarium running yet.

astroland
Posts: 4
Joined: Mon Nov 19, 2012 2:15 pm
Location: The Netherlands
Contact: Website

Re: Stellarium

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+ ([email protected]) (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?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23958
Joined: Sat Jul 30, 2011 7:41 pm

Re: Stellarium

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.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23958
Joined: Sat Jul 30, 2011 7:41 pm

Re: Stellarium

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?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

astroland
Posts: 4
Joined: Mon Nov 19, 2012 2:15 pm
Location: The Netherlands
Contact: Website

Re: Stellarium

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.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23958
Joined: Sat Jul 30, 2011 7:41 pm

Re: Stellarium

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.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Stellarium

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
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

astroland
Posts: 4
Joined: Mon Nov 19, 2012 2:15 pm
Location: The Netherlands
Contact: Website

Re: Stellarium

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

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Stellarium

Fri Dec 21, 2012 11:43 am

OK. Look forward to the tut ;)

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Stellarium

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
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

w8iss
Posts: 1
Joined: Sat Oct 26, 2013 8:24 pm

Re: Stellarium

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.

User avatar
tony1tf
Posts: 53
Joined: Tue Jul 03, 2012 12:33 pm

Re: Stellarium

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

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Stellarium

Sat Mar 19, 2016 4:36 pm

Stellarium installed from the repositories (currently version 0.13.1) runs smoothly with the new GL drivers, however the text is corrupt.
I couldn't work out how to compile from source as cmake complains :

Code: Select all

CMake Error at CMakeLists.txt:213 (FIND_PACKAGE):
  By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
  
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

gzotti
Posts: 7
Joined: Wed Mar 23, 2016 6:19 pm

Re: Stellarium

Tue Mar 29, 2016 9:27 am

There are building dependencies. Please see the other thread, I also worked around the broken on-screen text:

viewtopic.php?p=940655#p940655

Best regards,
Georg Zotti (Stellarium Team)

Return to “General discussion”