Search This Blog

Sunday, October 23, 2011

Plasma NM: master branch

I have just converted master branch to contain the Plasma NM code for NM-0.9 ported to libnm-qt and libmm-qt. The branch compiles but I have not tested it yet, I will do it tomorrow (it's very late at night here in Brasil).

Anybody willing to help to stabilize this version do the following:

1. Compile libmm-qt and libnm-qt in this order (libmm-qt is a dependency of libnm-qt). Update 27/10/2011: read new instructions:

. git clone git://
. mkdir libnm-qt/{libnm-qt_build,libmm-qt_build}
. cd libnm-qt/libmm-qt_build
. cmake -DCMAKE_INSTALL_PREFIX=/usr ../libmm-qt
. make && make install

. cd ../libnm-qt_build
. cmake -DCMAKE_INSTALL_PREFIX=/usr ../libnm-qt
. make && make install

2. Compile Plasma NM's master branch:

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

Have fun... or not :-)


Xerdomii said...

For me it doesn't compile (libmm-qt and libnm-qt build fine, but not networkmanagement), I get following error:

/home/xerdomii/Builds/networkmanagement-git/src/networkmanagement/libs/internals/connection.cpp: In static member function 'static Knm::Connection::Type Knm::Connection::typeFromSolidType(const NetworkManager::Device*)':
/home/xerdomii/Builds/networkmanagement-git/src/networkmanagement/libs/internals/connection.cpp:104:39: error: 'const class NetworkManager::ModemDevice' has no member named 'subType'

Have I done something wrong?

Lamarque said...

@Xerdomii, you did not do anything wrong, I did. Git pull networkmanagement and it will compile now. Thanks for helping me stabilize Plasma NM.

Xerdomii said...

That one is fixed now, but there is still a problem:

Linking CXX executable qdbusfornm
[ 34%] [ 34%] Building CXX object libs/ui/CMakeFiles/knmui.dir/bluetoothwidget.o
Building CXX object libs/ui/CMakeFiles/knmui.dir/pppwidget.o
CMakeFiles/qdbusfornm.dir/qdbusfornm.o: In function `printArg(QVariant const&)':
qdbusfornm.cpp:(.text+0x1d8e): undefined reference to `operator>>(QDBusArgument const&, QMap&)'
collect2: ld returned 1 exit status
make[2]: *** [tests/qdbusfornm] Error 1
make[1]: *** [tests/CMakeFiles/qdbusfornm.dir/all] Error 2

After commenting out the following lines in tests/CMakeLists.txt it compiles:

kde4_add_executable(qdbusfornm qdbusfornm.cpp )
target_link_libraries(qdbusfornm knminternals ${QT_QTDBUS_LIBRARY} ${QT_QTXML_LIBRARY}

Another thing I noticed is that it only works without openconnect installed. With openconnect it doesn't compile.

Thanks for your work.

Lamarque said...

@Xerdomii, I cannot reproduce this first problem, qdbusfornm compiles normally here. I fixed the second problem. Thanks for reporting them.

Xerdomii said...

After your commit
to libnm-qt qdbusfornm now compiles for me.

Thanks, will report to if something doesn't work for me.