Git Product home page Git Product logo

Comments (8)

 avatar commented on July 18, 2024

I forgot to submit some adjustments. Concerns openSUSE, but may also be useful for other penguins:

diff -ruNp a/src/celestia/qt/QtAudioManager.cpp b/src/celestia/qt/QtAudioManager.cpp
--- a/src/celestia/qt/QtAudioManager.cpp
+++ b/src/celestia/qt/QtAudioManager.cpp
@@ -35,7 +35,11 @@ void QtAudioManager::createChannel(int i
     setChannelLoop(id, looped);
     setChannelFile(id, path);
     setChannelNoPause(id, nopause);
+#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
     connect(player, QOverload<QMediaPlayer::Error>::of(&QMediaPlayer::error), this, &QtAudioManager::logError);
+#else
+    connect(player, SIGNAL(error(QMediaPlayer::Error)), this, SLOT(logError(QMediaPlayer::Error)));
+#endif
 }
 
 void QtAudioManager::playChannel(int channel, double vol, bool looped, const char *f, bool nopause) {
diff -ruNp a/src/celestia/qt/QtCelestiaCoreApplication.h b/src/celestia/qt/QtCelestiaCoreApplication.h
--- a/src/celestia/qt/QtCelestiaCoreApplication.h
+++ b/src/celestia/qt/QtCelestiaCoreApplication.h
@@ -5,7 +5,9 @@
 #include <src/celestia/CelestiaCoreApplication.h>
 
 namespace CelestiaQt {
+#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
     Q_NAMESPACE
+#endif
 
     class RenderFlag : public QObject {
         Q_OBJECT

https://build.opensuse.org/package/show/home:munix9:unstable/celestia
https://software.opensuse.org/download.html?project=home:munix9:unstable&package=celestia

from celestia.

pirogronian avatar pirogronian commented on July 18, 2024

I added Q_NAMSPACE when I though it is needed, however later I realized it isn,t but forgot to remove it. Sorry for that.

from celestia.

Alexell avatar Alexell commented on July 18, 2024

In any case, we use QT 5.9 to compile Celestia, so it's not important.

from celestia.

375gnu avatar 375gnu commented on July 18, 2024

You use 5.9 but there are still a lot of systems which use older versions. Debian 9 is a current stable and will be supported for the next ~4 years, Ubuntu 16.04 (EOS in 2021) uses 5.5, Ubuntu 14.04 uses 5.2 (EOS in next year). I don't know about other OSes.

So if your target is only you and some of your friends then you may not care about older OSes but if you target it for wider audience then you should care about other systems.

from celestia.

Alexell avatar Alexell commented on July 18, 2024

@375gnu If all this is so, then you are right.
I work only on Windows and for me there is no problem installing any version of QT.
I hope that @pirogronian will fix the problem.

from celestia.

Alexell avatar Alexell commented on July 18, 2024

@375gnu @pirogronian I will soon have a new computer and I think I will not install QT 5.9.2 (Windows), if this is not really necessary.
Can I compile Celestia on previous versions? Which version do you recommend to me?
So I can also notice if there are compatibility problems in the future.

from celestia.

375gnu avatar 375gnu commented on July 18, 2024

I'd like to say that support for Ubuntu 14.04 & Debian 8 shipping 5.2.x and 5.3.x Qt version, but their compilers don't support C++ 11 fully, and we have 2 stable releases for Ubuntu and 1 for Debian, so 5.5 or 5.7 as lowest supported version is a good start. RedHat 7 and Suse 12 have 5.6.2.

I don't know exactly but suspect that OSX users can install any version like Windows users.

So to be sure that Celestia works on Ubuntu 16 (I suppose it's the most popular version) you should have 5.5.x.

from celestia.

Alexell avatar Alexell commented on July 18, 2024

@375gnu Goog. Then on the new computer I install QT 5.5 and will report if there are problems with the compilation. Thanks!

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.