×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Kstars RPi cmake error: missing ECM?

  • Posts: 3
  • Thank you received: 1
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?
1 year 7 months ago #85586

Please Log in or Create an account to join the conversation.

  • Posts: 1185
  • Thank you received: 370
Try out
sudo apt install libecm-dev
1 year 7 months ago #85587

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 1
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?
Last edit: 1 year 7 months ago by Lotad.
1 year 7 months ago #85588

Please Log in or Create an account to join the conversation.

  • Posts: 1185
  • Thank you received: 370
Is it possible that the supplied version is older than requested?

And btw, a RPi zero won’t be fun with KStars. Better use a RPi with at least 1GB RAM.
1 year 7 months ago #85597

Please Log in or Create an account to join the conversation.

  • Posts: 421
  • Thank you received: 102
Try
sudo apt install extra-cmake-modules
1 year 7 months ago #85613

Please Log in or Create an account to join the conversation.

  • Posts: 1309
  • Thank you received: 226
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.

Next I installed ECM from the KDE source on GIT
github.com/KDE/extra-cmake-modules

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.

Please help. Thank you.
1 year 6 months ago #86506

Please Log in or Create an account to join the conversation.

  • Posts: 421
  • Thank you received: 102
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.
1 year 6 months ago #86508

Please Log in or Create an account to join the conversation.

  • Posts: 1309
  • Thank you received: 226
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.
1 year 6 months ago #86510

Please Log in or Create an account to join the conversation.

  • Posts: 421
  • Thank you received: 102
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.
1 year 6 months ago #86512

Please Log in or Create an account to join the conversation.

  • Posts: 1309
  • Thank you received: 226
Thanks I might try that soon.
I found a thorough looking guide on how to do it here.
ostechnix.com/upgrade-to-debian-11-bulls...om-debian-10-buster/
1 year 6 months ago #86513

Please Log in or Create an account to join the conversation.

Time to create page: 1.032 seconds