How to make cmake find installed packages

Posted on

Problem :

I am trying to use cmake to compile a program and it needs to use lxc, I run the cmakelist with cmake .. and it returns — checking for module ‘lxc’ — package ‘lxc’ not found. However, if I run apt-get install lxc, it says that lxc is not only installed but at the newest version as well. Any ideas here? Any help is appreciated.

Using debian jessie

Solution :

You need a dev version of lxc package. Install lxc-dev

there is dbus c++, but it still returns as it can’t find it

All packages for development / compiling must be (lib)[name]-dev :

apt install libdbus-c++-dev

Leave a Reply

Your email address will not be published. Required fields are marked *