Search This Blog

Sunday, November 20, 2011

Installing libnm-qt in a different prefix

Some people have some problems installing libmm-qt and libnm-qt in a different prefix than /usr. Today I have finished to implement pkgconfig support and now you can install libmm-qt and libnm-qt in a different prefix:

. PREFIX="/opt"
. export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/lib32/pkgconfig:$PREFIX/lib64/pkgconfig"

. git clone git://
. mkdir libmm-qt_build
. cd libmm-qt_build
. cmake -DCMAKE_INSTALL_PREFIX=$PREFIX ../libmm-qt
. make && make install

. git clone git://
. mkdir libnm-qt_build
. cd ../libnm-qt_build
. cmake -DCMAKE_INSTALL_PREFIX=$PREFIX ../libnm-qt
. make && make install

Compiling master branch is still the same:

. git clone git://
. mkdir networkmanagement_build
. cd networkmanagement_build
. cmake -DCMAKE_INSTALL_PREFIX=/usr ../networkmanagement
. make && make install


Think Different said...

Hi Lamarque, is it possible to cross compile libnm-qt for embedded linux platform?

Lamarque Souza said...

Probably yes, but I have never tried that. If your platform is arm based you can try installing the package (or extracting the binary) used in Plasma Active: