I am trying to build Kstars/Ekos on a Raspberry Pi Zero W running Raspberry Pi OS Bullseye. I am for the most part using the
AstroPi3
setup routines. I have successfully compiled/installed the INDI library and 3rd party drivers. However, when I go to do the same for Kstars, it throws the following error:
CMake Error at CMakeLists.txt:70(find_package):
Could not find a package configuration file provided by "ECM" (requested version 5.68.0) with any of the following names:
ECMConfig.cmake
ecm-config.cmake
Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR" to a directory containing one of the above files. If "ECM" provides a separate development package or SDK, be sure it has been installed.
It seems I need
extra-cmake-modules
, but I have not been able to figure out the right way to point Kstars' cmake at ECM. Can anyone advise?
I was able to apt install that package successfully. I then rebooted, but cmake is still throwing the same error about ECM. Do I need to tell it where to look for the libecm-dev package?
I am also having this issue.
For context, I perform my compilation with the help of AstroPi 3 script on a Raspberry Pi 4. Running Raspberry OS Buster.
Today I saw this error during the KStars compile
CMake Error at CMakeLists.txt:70(find_package):
Could not find a configuration file for package "ECM" that is compatible
with requested version "5.68.0".
The following configuration files were considered but not accepted:
/usr/share/ECM/cmake/ECMConfig.cmake, version: 5.54.0
I attempted to update it, but am told I have the latest version already.
The result is I am now getting a similar error but for QT5
CMake Error at CMakeLists.txt:108(find_package):
Could not find a configuration file for package "Qt5" that is compatible
with requested version "5.12.8".
The following configuration files were considered but not accepted:
/usr/lib/aarch64-linux-gnu/cmake/Qt5/Qt5Config.cmake, version: 5.11.3
Again I can not upgrade QT5, as I am told it is also the latest version.
I believe the latest KStars needs Raspbian Bullseye to build. If you don't want to upgrade to Bullseye, you can try building an older version of KStars.
That's a pretty annoying development.
But I actually did try to do a full-upgrade. But it didn't do anything, so still on Buster. And I'm not thrilled at the prospect of setting everything up again from a clean installation.
You might be able to do an in-place upgrade from buster to bullseye. You need to edit /etc/apt/sources.list (and any files in /etc/apt/sources.list.d) and replace "buster" with "bullseye", then do the usual sudo apt update followed by sudo apt full-upgrade
The Raspbian people don't recommend in-place upgrades, they recommend installing from scratch, but it's worth a try. Make a backup of your SD card first.