Comments (8)
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.
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.
In any case, we use QT 5.9 to compile Celestia, so it's not important.
from celestia.
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.
@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.
@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.
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.
@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)
- 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.