-
-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional cmake fixes over #2006 #2049
Conversation
tested on macOS 12
https://gitlab.kitware.com/cmake/cmake/-/issues/20878 describes a similar case. It seems there is no solution in this particular case. WSL users should certainly install the correct package as documented in the build instructions. The standalone CI systems should work, hopefully. I will try RPi4 next. |
@gzotti do you use Qt 5.12 or 5.15 in WSL? |
I run Ubuntu 20.04.3 LTS, where cmake finds Qt5.12.8. The problem is described above. |
I think this is OK for now. Few people will run Stellarium on WSL, and compilation now creates a crash-safe application (OK, at least it does not crash over this issue...). I would merge when CI runs have completed without issues. |
Hello @gzotti! Please check the fresh version (development snapshot) of Stellarium: |
Hello @gzotti! Please check the latest stable version of Stellarium: |
Description
#2006 was merged too early. We must make sure that the program can be compiled even on systems where QtWebEngine does not exist (esp. ARM platform, but also a few others.)
This here attempts to
Note
There is a problem seen in the test system used: cmake on WSL/Ubuntu with qtwebengine5-dev not installed sees the installed Qt libraries in /mnt/c/qt (This is C:\Qt in the Windows file hierarchy and obviously the wrong place to access from WSL) when it does not find the really appropriate libraries in /usr. I hope this is a so radically absurd setting that CI and other ways of self-building deployment finds no problem with that. Else I need to know a way to specify that cmake must never access the wrong Qt installations.
The next issue on WSL is that building with QtWebEngine enabled results in a system where the OnlineQueries plugin fails to launch:
So it's better to detect WSL with cmake and disable using QtWebEngine in this case.
Fixes #2006 (issue)
Screenshots (if appropriate):
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: