Compilation Error

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
chips24
Posts: 2
Joined: 12.07.2017
With us: 7 years 7 months

Compilation Error

Post #1by chips24 » 12.07.2017, 20:29

After switching back to Ubuntu after not using it in nearly two years, I was pretty disappointed to find that it wasn't in the repositories.
There is a download option for linux, but the package extention .package isn't really usable by any linux distribution I have ever used.
So, I went through the trouble of trying to compile it from source, spending hours trying to find and install missing dependencies and I finally managed to get it to configure. But when I got to the make step, I got this error:

Code: Select all

make  all-recursive
make[1]: Entering directory '/home/caleb/Downloads/celestia-1.6.1'
Making all in src
make[2]: Entering directory '/home/caleb/Downloads/celestia-1.6.1/src'
Making all in celutil
make[3]: Entering directory '/home/caleb/Downloads/celestia-1.6.1/src/celutil'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/caleb/Downloads/celestia-1.6.1/src/celutil'
Making all in celmath
make[3]: Entering directory '/home/caleb/Downloads/celestia-1.6.1/src/celmath'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/caleb/Downloads/celestia-1.6.1/src/celmath'
Making all in cel3ds
make[3]: Entering directory '/home/caleb/Downloads/celestia-1.6.1/src/cel3ds'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/caleb/Downloads/celestia-1.6.1/src/cel3ds'
Making all in celtxf
make[3]: Entering directory '/home/caleb/Downloads/celestia-1.6.1/src/celtxf'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/caleb/Downloads/celestia-1.6.1/src/celtxf'
Making all in celengine
make[3]: Entering directory '/home/caleb/Downloads/celestia-1.6.1/src/celengine'
g++ -DHAVE_CONFIG_H -I. -I../.. -I..     -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -O2 -ffast-math -fexpensive-optimizations -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common  -MT libcelengine_a-cmdparser.o -MD -MP -MF .deps/libcelengine_a-cmdparser.Tpo -c -o libcelengine_a-cmdparser.o `test -f 'cmdparser.cpp' || echo './'`cmdparser.cpp
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:39:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533,
                 from /usr/include/c++/7/utility:68,
                 from /usr/include/c++/7/algorithm:60,
                 from cmdparser.cpp:12:
/usr/include/features.h:183:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
In file included from ../celutil/bigfix.h:19:0,
                 from ../celengine/univcoord.h:17,
                 from ../celengine/astro.h:18,
                 from cmdparser.cpp:29:
../celutil/basictypes.h:34:0: warning: "INT64_MAX" redefined
 #define INT64_MAX 9223372036854775807LL
 
In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9:0,
                 from ../celutil/basictypes.h:30,
                 from ../celutil/bigfix.h:19,
                 from ../celengine/univcoord.h:17,
                 from ../celengine/astro.h:18,
                 from cmdparser.cpp:29:
/usr/include/stdint.h:134:0: note: this is the location of the previous definition
 # define INT64_MAX  (__INT64_C(9223372036854775807))
 
In file included from cmdparser.cpp:30:0:
../celestia/celx.h:26:10: fatal error: lua.h: No such file or directory
 #include "lua.h"
          ^~~~~~~
compilation terminated.
Makefile:975: recipe for target 'libcelengine_a-cmdparser.o' failed
make[3]: *** [libcelengine_a-cmdparser.o] Error 1
make[3]: Leaving directory '/home/caleb/Downloads/celestia-1.6.1/src/celengine'
Makefile:536: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/caleb/Downloads/celestia-1.6.1/src'
Makefile:599: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/caleb/Downloads/celestia-1.6.1'
Makefile:474: recipe for target 'all' failed
make: *** [all] Error 2

Any idea what to make of this and what I can do to correct this problem? I have no idea what any of this means or how to even begin to correct it.

Edit: I do have lua development files installed!
Last edited by chips24 on 17.01.2018, 03:10, edited 2 times in total.

Topic author
chips24
Posts: 2
Joined: 12.07.2017
With us: 7 years 7 months

Post #2by chips24 » 17.01.2018, 03:03

Bump

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 5 months
Location: NY, USA

Post #3by selden » 17.01.2018, 08:20

See the most recent post at the bottom of the thread at https://github.com/CelestiaProject/Celestia/issues/16
Selden

Avatar
John Van Vliet
Posts: 2946
Joined: 28.08.2002
With us: 22 years 5 months

Post #4by John Van Vliet » 17.01.2018, 17:18

also this fork builds on linux without errors ( well on OpenSUSE )
warnings but no errors
cspice will need to be installed and it uses qt5 and qmake5

the code on my git page has the spice files listed and if you do not use them it will still work using the default celestia ssc and orbit files

https://github.com/JohnVV/MyCelestiaBuild


Return to “Help Central”