You may want to backport the patch for qt 6.9 and for using system md4c. I have an updated PKGBUILD in [archlinuxcn] here:
https://github.com/archlinuxcn/repo/blob/master/archlinuxcn/stellarium/PKGBUILD
Git Clone URL: | https://aur.archlinux.org/stellarium.git (read-only, click to copy) |
---|---|
Package Base: | stellarium |
Description: | Software which renders realistic skies in real time with OpenGL |
Upstream URL: | https://stellarium.org |
Licenses: | GPL-2.0-or-later |
Submitter: | arojas |
Maintainer: | carlosal1015 |
Last Packager: | carlosal1015 |
Votes: | 75 |
Popularity: | 0.51 |
First Submitted: | 2022-04-01 18:43 (UTC) |
Last Updated: | 2025-03-30 14:51 (UTC) |
You may want to backport the patch for qt 6.9 and for using system md4c. I have an updated PKGBUILD in [archlinuxcn] here:
https://github.com/archlinuxcn/repo/blob/master/archlinuxcn/stellarium/PKGBUILD
Add
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
to PKGBUILD section build() right above the first occurance of -DCMAKE... directive and compile using makepkg
build for version stellarium-25.1-1
-- Using system-provided QXlsx 1.5.0
-- CPM: Adding package md4c@0.4.8 (0.4.8)
CMake Error at /home/archie/data/yay-cache/stellarium/src/build/_deps/md4c-src/CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
what can I do?
Indeed! Thanks.
@FMB After recompilation stellarium should work fine, also with libnlopt.so.1.
@FMB I had the same error and I got it working on Manjaro by creating a symbolic link from libnlopt.so.0 to libnlopt.so.1
I get this error when I launch stellarium : stellarium: error while loading shared libraries: libnlopt.so.0: cannot open shared object file: No such file or directory
The version of nlopt installed on my system is 2.10.0-2. These are the installed versions of libnlopt:
/usr/lib/libnlopt.so /usr/lib/libnlopt.so.1 /usr/lib/libnlopt.so.1.0.0
@vkulikov I suspect you may need to remove stellarium, than allow the upgrade that replaces qxlsx-qt6 with extra/qxlsx, and then reinstall stellarium which now has the new dependency
:: Replace qxlsx-qt6 with extra/qxlsx? [Y/n] resolving dependencies... looking for conflicting packages... error: failed to prepare transaction (could not satisfy dependencies) :: removing qxlsx-qt6 breaks dependency 'qxlsx-qt6' required by stellarium
Sorry for my broken English... Under Manjaro with QT6 installed I was able to compile by replacing the “qxlsx” dependency with “libqxp” in PKGBUILD. The program runs correctly, but I haven't explored in depth
Pinned Comments
carlosal1015 commented on 2022-11-01 05:22 (UTC)
Pre-built binaries of this package and its dependencies can be found in the arch4edu repository.
carlosal1015 commented on 2022-04-02 19:14 (UTC) (edited on 2022-07-07 16:46 (UTC) by carlosal1015)
Important note: Is recommended to receive the following key before to install:
Also is possible skip the verification, adding the flag for (e.g
makepkg
,yay
)--skippgpcheck
,--nopgpfetch
, respectively.