Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMake building a library with ECM

Tags:

c++

cmake

I am trying to build this library https://github.com/KDE/pulseaudio-qt for a custom linux version for an embedded device created with yocto. The SDK yocto produces does not contain the extra-cmake-modules that the library needs to be build. After sourcing the environment setup script of the SDK I tried running cmake on the library:

-- Could NOT find ECM (missing: ECM_DIR)                                                              
--                                                                                                    
 * ECM (required version >= 5.44.0), Extra CMake Modules., <https://kde.org/products/frameworks/>     

CMake Error at /opt/board_sdk/0.6.0/sysroots/x86_64-boardsdk-linux/usr/share/cmake-3.12/Modules/FeatureSummary.cmake:459 (message):                                                                       
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake                            
  run.                                                                                                
Call Stack (most recent call first):                                                                  
  CMakeLists.txt:9 (feature_summary) 

After that I tried installing the ECM modules manually. They ended up in /usr/share/ECM, so I tried setting ECM_DIR to this location before running cmake with:

export ECM_DIR=/usr/share/ECM

But the same error still occurs. Can somebody assist me in this? I have not tucked into cmake at all at this point.

like image 518
Curunir Avatar asked Oct 27 '25 06:10

Curunir


1 Answers

The following got me past that error:

sudo apt install extra-cmake-modules
like image 118
BPS Avatar answered Oct 28 '25 20:10

BPS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!