Compilation issue on Linux

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
pirogronian
Posts: 3
Joined: 05.01.2018
With us: 18 days 18 hours

Compilation issue on Linux

Post #1by pirogronian » 05.01.2018, 17:53

Hi.

My attempt to compilation of GIT version of celestia broken with several errors like this:

Code: Select all

src/celephem/scriptorbit.cpp:78:32: error: ‘LUA_GLOBALSINDEX’ was not declared in this scope
         lua_gettable(luaState, LUA_GLOBALSINDEX);


I searched whole project, and found definition of macro LUA_GLOBALSINDEX in
macosx/lua.h and
windows/inc/lua/lua.h


However, there seems to be no definition for Linux. Can You fix that?

Avatar
John Van Vliet
Posts: 2689
Joined: 28.08.2002
With us: 15 years 4 months

Post #2by John Van Vliet » 06.01.2018, 22:42

what github page did you use ?

i know that the qt5 version that i have on mine dose build using qmake-qt5 on my OpenSUSE 42.3 install

https://github.com/JohnVV/MyCelestiaBuild

i have not yet updated it with my working copy on my home system
-- to many bugs yet

this is a NAIF spice build
"cspice" needs to be installed
( see the readme files )

Topic author
pirogronian
Posts: 3
Joined: 05.01.2018
With us: 18 days 18 hours

Post #3by pirogronian » 07.01.2018, 19:54

I used oficial github repo: https://github.com/CelestiaProject/Celestia

Sounds interesting, however perhaps it won't replace the original one. However, I'll try to install cspice and compile Your version, then let You know.

Thanks!

Avatar
John Van Vliet
Posts: 2689
Joined: 28.08.2002
With us: 15 years 4 months

Post #4by John Van Vliet » 08.01.2018, 06:38

i really do not care for he Microsoft centric
https://github.com/CelestiaProject/Celestia

qt is cross platform , but i am right now focusing on Linux only
Now i might be merging the code base with a very similar VS 2013 build

just fallow the basic build instructions and have the devel rpm's or dev deb's installed for the prerequisites

if something is missing this will tell you from the error in the output

Code: Select all

qmake-qt5 prefix=/usr ..

Topic author
pirogronian
Posts: 3
Joined: 05.01.2018
With us: 18 days 18 hours

Post #5by pirogronian » 08.01.2018, 16:07

Hi John

Is the official Celestia repo Windows-centric? I remember, that Alexel also switch to Qt only, or maybe I'm wrong...

Anyway, I got the same error, while compiling Your sources:

Code: Select all

src/celephem/scriptorbit.cpp:78:32: error: ‘LUA_GLOBALSINDEX’ was not declared in this scope
         lua_gettable(luaState, LUA_GLOBALSINDEX);
                                ^~~~~~~~~~~~~~~~


So perhaps there is something not right with my system, but what?

Edit:
A described here, this is LUA version 5.1 -> 5.2 transition issue. Has Your system Lua 5.1?


Return to “Development”

Who is online

Users browsing this forum: 1 guest