Bug 496647 - cmake during installation from source failed
Summary: cmake during installation from source failed
Status: RESOLVED NOT A BUG
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 24.11.80
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-24 22:22 UTC by muh2lintech
Modified: 2024-11-25 14:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
the entire terminal output (102.24 KB, text/plain)
2024-11-24 22:22 UTC, muh2lintech
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muh2lintech 2024-11-24 22:22:35 UTC
Created attachment 176093 [details]
the entire terminal output

I am running:
System:
  Kernel: 6.8.0-48-generic arch: x86_64 bits: 64 compiler: gcc v: 13.2.0 clocksource: tsc
  Desktop: Cinnamon v: 6.2.9 tk: GTK v: 3.24.41 wm: Muffin v: 6.2.0 vt: 7 dm: LightDM v: 1.30.0
    Distro: Linux Mint 22 Wilma base: Ubuntu 24.04 noble


I am trying to install KDEConnect from source, since the Debian Package Source shows an older version 23.08.5-0ubuntu5 that does not support iPhone. I am a total newbie at compiling/installing from source, however.

SUMMARY
I followed the instructions from this page:
https://community.kde.org/KDEConnect/Build_Linux#Installing_to_~/kde-prefix

But ended up with this error:

CMake Error at CMakeLists.txt:19 (find_package):
  Could not find a configuration file for package "ECM" that is compatible
  with requested version "6.0.0".

  The following configuration files were considered but not accepted:

    /usr/share/ECM/cmake/ECMConfig.cmake, version: 5.115.0



-- Configuring incomplete, errors occurred!

STEPS TO REPRODUCE
These are the commands I entered:

username@T520i:/etc/apt/sources.list.d$ apt update
[sudo] password for username:             
Ign:1 http://packages.linuxmint.com wilma InRelease
Hit:2 http://mirror.ca-tr.kamatera.com/ubuntu noble InRelease                  
Hit:3 http://packages.linuxmint.com wilma Release                              
Hit:4 http://mirror.ca-tr.kamatera.com/ubuntu noble-updates InRelease        
Hit:5 http://mirror.ca-tr.kamatera.com/ubuntu noble-backports InRelease      
Hit:6 http://security.ubuntu.com/ubuntu noble-security InRelease             
Reading package lists... Done                          
Building dependency tree... Done
Reading state information... Done
42 packages can be upgraded. Run 'apt list --upgradable' to see them.
username@T520i:/etc/apt/sources.list.d$ 

username@T520i:/etc/apt/sources.list.d$ sudo apt-get build-dep kdeconnect

***(The above command produced a very long list, but appeared to complete without error.)***

$ cd Documents/mydata/333\ apt\ IT\ docs\,\ info\,\ etc/my\ smartphones/kdeconnect/kdeconnect-kde-master/
$ su
$ mkdir build
$ cd build

username@T520i:~/Documents/mydata/333 apt IT docs, info, etc/my smartphones/kdeconnect/kdeconnect-kde-master/build$ sudo cmake -DCMAKE_INSTll_PREFIX=/usr ..
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:19 (find_package):
  Could not find a configuration file for package "ECM" that is compatible
  with requested version "6.0.0".

  The following configuration files were considered but not accepted:

    /usr/share/ECM/cmake/ECMConfig.cmake, version: 5.115.0



-- Configuring incomplete, errors occurred!
username@T520i:~/Documents/mydata/333 apt IT docs, info, etc/my smartphones/kdeconnect/kdeconnect-kde-master/build$ sudo cmake -DCMAKE_INSTll_PREFIX=/usr ..
CMake Error at CMakeLists.txt:19 (find_package):
  Could not find a configuration file for package "ECM" that is compatible
  with requested version "6.0.0".

  The following configuration files were considered but not accepted:

    /usr/share/ECM/cmake/ECMConfig.cmake, version: 5.115.0



-- Configuring incomplete, errors occurred!
username@T520i:~/Documents/mydata/333 apt IT docs, info, etc/my smartphones/kdeconnect/kdeconnect-kde-master/build$ cmake -DCMAKE_INSTll_PREFIX=/usr ..
CMake Error at CMakeLists.txt:19 (find_package):
  Could not find a configuration file for package "ECM" that is compatible
  with requested version "6.0.0".

  The following configuration files were considered but not accepted:

    /usr/share/ECM/cmake/ECMConfig.cmake, version: 5.115.0



-- Configuring incomplete, errors occurred!
CMake Error: Unable to open check cache file for write. /home/username/Documents/mydata/333 apt IT docs, info, etc/my smartphones/kdeconnect/kdeconnect-kde-master/build/CMakeFiles/cmake.check_cache
username@T520i:~/Documents/mydata/333 apt IT docs, info, etc/my smartphones/kdeconnect/kdeconnect-kde-master/build$ make
make: *** No targets specified and no makefile found.  Stop.

I think I am going to cry. Can anyone help?
I attached the entire output from the terminal.
Comment 1 Tobias Fella 2024-11-25 13:06:23 UTC
you need at least version 6.0 of extra-cmake-modules (and other KDE frameworks). You only have version 5.115 installed. You can either see if your distro has newer versions, or build them using kdesrc-build or kde-builder. See also https://community.kde.org/Get_Involved/development for some documentation
Comment 2 muh2lintech 2024-11-25 14:19:16 UTC
Hello Tobias,

It turns out my stupid distro (Mint 22) again doesn't have the current 
version. The latest version of extra-cmake-modules available in Debian 
Package Search is 5.115. Also, kdesrc-build and kde-builder appear to 
not exist at all.

Am I missing a repository?

Also, can you tell me what distribution you are using? I am seriously 
considering switching.

On 2024-11-25 08:06, Tobias Fella wrote:
> https://bugs.kde.org/show_bug.cgi?id=496647
>
> Tobias Fella <fella@posteo.de> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |fella@posteo.de
>           Resolution|---                         |NOT A BUG
>               Status|REPORTED                    |RESOLVED
>
> --- Comment #1 from Tobias Fella <fella@posteo.de> ---
> you need at least version 6.0 of extra-cmake-modules (and other KDE
> frameworks). You only have version 5.115 installed. You can either see if your
> distro has newer versions, or build them using kdesrc-build or kde-builder. See
> also https://community.kde.org/Get_Involved/development for some documentation
>