Comments (17)
Here is how I did it:
autoreconf -iv
./configure --with-glut --with-lua
make -j5
You will probably need some of the 9 patches from my (unfortunately independent) maintentance fork https://github.com/anordal/celestia/commits if your distro is newer than 2013…
I just discovered this project, so I'm hoping to reintegrate some fixes here!
from celestia.
4e947ef is the closest I can get to the last commit that actually builds on Linux:
Dependency instructions are deb/ubuntu specific but the rest should be roughly platform-independent
sudo apt install libgtk2.0-dev libgtkglext1-dev liblua5.1-0-dev freeglut3-dev
git clone https://github.com/CelestiaProject/Celestia
cd Celestia
git checkout 4e947ef387b554c68fc32da95a2a2bcdee3e1f78
autoreconf -iv
./configure --with-gtk
make
vim po/Makefile # set mkdir_p var at the top to "mkdir -p"
vim po2/Makefile # same
sudo make install
HTH
The most recent commit is broken and impossible to build. It apparently uses some proprietary windows-only fmod
library without wrapping it in an #ifdef _WIN32_
block, so it simply will not build on Linux. It's been this way since about March.
Never mind the fact that a proprietary library in a GPL project makes the entire thing nonfree.
from celestia.
Closed due to inactivity.
from celestia.
Building for Linux has not tested yet. Details about Celestia for Linux.
from celestia.
@anordal Your changes intersect with the changes that we made this year. Your changes intersect with the changes that we made this year. Do your changes give a stable version of Celestia for Linux along with Lua 5.3?
from celestia.
Yes, Celestia runs fine here with Lua 5.3.3 on Linux as far as I can tell (dunno what lua specific issues to look for).
I happen to also have Lua 5.2.4 and 5.1.5 installed, but 5.3.3 was the version I built against.
from celestia.
@anordal Please install Lua Edu Tools, check the correctness of its work and check several (any) CELX scripts.
Forum users reporded that Celestia with Lua 5.2 cannot run ScriptObit and ScriptRotation, neither can it work for CELX add-on(
from celestia.
That's some nice testing tips. I see the solution taken here (commit 0452b0a) is to bundle Lua 5.1.
Note that my Lua 5.2 patch was made by Fedora maintainers back in 2013… So if you're saying that doesn't work, then at least the Fedora packages have been broken for years! I would assume other distros have applied equally desperate patches to keep it compiling in this decade.
I patched it for Lua 5.3 because my distro (OpenSuse Tumbleweed) doesn't make devel packages for Lua < 5.3 anymore – if you have to build Lua to build Celestia, that makes building Celestia twice as hard, which I (like you) refused to accept.
I hope we figure it out, but I don't know how cool those scripts are. I don't have time, and I'm a happy camper even if I broke them.
from celestia.
@anordal Do you have full Celestia source code with Lua 5.2 or 5.3? We would like to get it to build for Windows for testing CELX scripts and LUA tools.
from celestia.
full Celestia source code
Only what I cloned myself, I haven't tried upgrading Lua in this project (yet).
from celestia.
Is support for Linux being dropped, then?
from celestia.
I'll keep my fork building anyway.
from celestia.
fyi:
qt5 builds (git main) for current openSUSE distros on obs
https://build.opensuse.org/package/show/home:munix9/celestia
https://software.opensuse.org//download.html?project=home:munix9&package=celestia
ciao
from celestia.
@munix9 Thanks, it works! My favourite distro. And qt5, wow! 🥇
Mouse interaction is very buggy in Xwayland though (unusable if the window is extended over two screens), but that might very well be a qt bug – my very stripped down version works fine.
from celestia.
ok.
bunch of issues in terminal in make, followed all recomendations #14 (comment) here and #14 (comment) there
xBase<OtherDerived>&) [with OtherDerived = Eigen::Product<const Eigen::Matrix<float, 4, 4>&, const Eigen::Matrix<float, 4, 4>&, 0>; _Scalar = float; int _Rows = 4; int _Cols = 4; int _Options = 2; int _MaxRows = 4; int _MaxCols = 4]’
../../thirdparty/Eigen/Eigen/src/Core/Product.h:204:30: required from ‘Eigen::Product<Lhs, Rhs, ProductMode>::Product(const Lhs&, const Rhs&) [with Lhs = Eigen::Product<const Eigen::Matrix<float, 4, 4>&, const Eigen::Matrix<float, 4, 4>&, 0>; Rhs = Eigen::Matrix<float, 4, 4>; LhsNested = Eigen::Matrix<float, 4, 4>; RhsNested = const Eigen::Matrix<float, 4, 4>&; int ProductMode = 0]’
../../thirdparty/Eigen/Eigen/src/Core/Product.h:298:60: required from ‘const typename Eigen::ProductReturnType<Derived, OtherDerived>::Type Eigen::MatrixBase<Derived>::operator*(const Eigen::MatrixBase<OtherDerived>&) const [with OtherDerived = Eigen::Matrix<float, 4, 4>; Derived = Eigen::Product<const Eigen::Matrix<float, 4, 4>&, const Eigen::Matrix<float, 4, 4>&, 0>; typename Eigen::ProductReturnType<Derived, OtherDerived>::Type = Eigen::Product<Eigen::Matrix<float, 4, 4>, const Eigen::Matrix<float, 4, 4>&, 0>]’
shadermanager.cpp:3419:92: required from here
../../thirdparty/Eigen/Eigen/src/Core/Product.h:260:14: warning: ignoring attributes on template argument ‘Eigen::MatrixBase<Eigen::Product<const Eigen::Matrix<float, 4, 4>&, const Eigen::Matrix<float, 4, 4>&, 0> >::PacketScalar {aka __vector(4) float}’ [-Wignored-attributes]
and more and more. is it ok?
from celestia.
i hope it will install...
why not distro in apt f debian?
from celestia.
ok, it works!!!!
from celestia.
Related Issues (20)
- Strating celestia-qt with URL crashes the program HOT 2
- Many question marks in Chinese enviroment HOT 2
- The pronunciation of Celestia
- Very distant objects don't display
- Pre-Windows 10 1903 versions of ICU HOT 2
- [Win32] Goto Object dialog ignores zeroes
- [Qt] Barycenters in star browser HOT 1
- CI: MacOS front-ends HOT 2
- setlocale is not thread safe, causing crash due to race HOT 2
- Classic star colors HOT 1
- Incorrect contexted string extracted from windows RC files
- Dubious test in shadermanager.cpp
- Could not read star database HOT 2
- Wasted data for ring systems
- Recent GTK changes cause build error HOT 6
- segfault when exiting celestia (qt5/qt6)
- std::binary_function is (deprecated in C++11) and (removed in C++17) HOT 1
- `ApplyShadow` result discarded during shader creation HOT 1
- Constellation lines beyond Solar System
- HUD translation contexts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from celestia.