Git Product home page Git Product logo

Comments (17)

anordal avatar anordal commented on July 18, 2024 4

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.

scottmmjackson avatar scottmmjackson commented on July 18, 2024 2

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.

 avatar commented on July 18, 2024 2

Closed due to inactivity.

from celestia.

 avatar commented on July 18, 2024

Building for Linux has not tested yet. Details about Celestia for Linux.

from celestia.

 avatar commented on July 18, 2024

@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.

anordal avatar anordal commented on July 18, 2024

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.

 avatar commented on July 18, 2024

@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.

anordal avatar anordal commented on July 18, 2024

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.

 avatar commented on July 18, 2024

@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.

anordal avatar anordal commented on July 18, 2024

full Celestia source code

Only what I cloned myself, I haven't tried upgrading Lua in this project (yet).

from celestia.

scottmmjackson avatar scottmmjackson commented on July 18, 2024

Is support for Linux being dropped, then?

from celestia.

anordal avatar anordal commented on July 18, 2024

I'll keep my fork building anyway.

from celestia.

 avatar commented on July 18, 2024

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.

anordal avatar anordal commented on July 18, 2024

@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.

nortikin avatar nortikin commented on July 18, 2024

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.

nortikin avatar nortikin commented on July 18, 2024

i hope it will install...
why not distro in apt f debian?

from celestia.

nortikin avatar nortikin commented on July 18, 2024

ok, it works!!!!

from celestia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.