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://anongit.kde.org/libmm-qt
. mkdir libmm-qt_build
. cd libmm-qt_build
. cmake -DCMAKE_INSTALL_PREFIX=$PREFIX ../libmm-qt
. make && make install

. git clone git://anongit.kde.org/libnm-qt
. 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://anongit.kde.org/networkmanagement
. mkdir networkmanagement_build
. cd networkmanagement_build
. cmake -DCMAKE_INSTALL_PREFIX=/usr ../networkmanagement
. make && make install

2 comments:

Think Different said...

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

Lamarque 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:

http://build.pub.meego.com/package/show?package=libnm-qt&project=Project%3AKDE%3ADevel