solid/networkmanager compile problem
Joseph Wenninger
jowenn at kde.org
Mon Jun 2 13:46:09 BST 2008
Hi
On Monday 02 June 2008 10:43:01 Matthias Kretz wrote:
[...]
> As I learned from Alex the order of dirs as cmake outputs them is not
> ordered as needed but needs to be manually ordered. Which is what automoc4
> does if you have the latest version.
>
> I just committed another change to automoc4: it'll now print the moc
> command line when you compile with VERBOSE=1. Please do that and check that
> the includes passed to moc are in the correct order. Same for elkrammer.
>
> Oh, and please take a look at your
> workspace/libs/solid/control/ifaces/networkinterface.h file, that it's not
> a QObject and has the Q_DECLARE_INTERFACE macro...
The header file looks okay, what looks wrong is that
-I/home/jowenn/development/kde/svn/kdebase/workspace/libs
appears after
-I/home/jowenn/fromsources/KDE/include
The "fromsources/KDE" directory is my installation directory. Below is the
full output generated by VERBOSE=1 for the failing file.
As said, if I delete my old installation directory (or move it to another
place) the built runs flawless.
Kind regards
Joseph Wenninger
Generating /home/jowenn/development/kde/build/kdebase/workspace/solid/networkmanager-0.6/NetworkManager-wirelessnetwork.moc
from /home/jowenn/development/kde/svn/kdebase/workspace/solid/networkmanager-0.6/NetworkManager-wirelessnetwork.h
/home/jowenn/fromsources/qt-copy/bin/moc -I/home/jowenn/development/kde/build/kdebase -I/home/jowenn/development/kde/build/kdebase/workspace -I/home/jowenn/development/kde/svn/kdebase -I/home/jowenn/fromsources/KDE/include -I/home/jowenn/fromsources/KDE/include/KDE -I/home/jowenn/fromsources/qt-copy/include/QtWebKit -I/home/jowenn/fromsources/qt-copy/include/QtHelp -I/home/jowenn/fromsources/qt-copy/include/QtAssistant -I/home/jowenn/fromsources/qt-copy/include/QtDBus -I/home/jowenn/fromsources/qt-copy/include/QtTest -I/home/jowenn/fromsources/qt-copy/include/QtUiTools -I/home/jowenn/fromsources/qt-copy/include/QtScript -I/home/jowenn/fromsources/qt-copy/include/QtSvg -I/home/jowenn/fromsources/qt-copy/include/QtXml -I/home/jowenn/fromsources/qt-copy/include/QtSql -I/home/jowenn/fromsources/qt-copy/include/QtOpenGL -I/home/jowenn/fromsources/qt-copy/include/QtNetwork -I/home/jowenn/fromsources/qt-copy/include/QtDesigner -I/home/jowenn/fromsources/qt-copy/include/Qt3Support -I/home/jowenn/fromsources/qt-copy/include/QtGui -I/home/jowenn/fromsources/qt-copy/include/QtCore -I/home/jowenn/fromsources/qt-copy/include/Qt -I/home/jowenn/fromsources/qt-copy/mkspecs/default -I/home/jowenn/fromsources/qt-copy/include -I/usr/include -I/home/jowenn/development/kde/svn/kdebase/workspace/kdm -I/home/jowenn/development/kde/svn/kdebase/workspace/libs -I/home/jowenn/development/kde/svn/kdebase/workspace/libs/kworkspace -I/usr/include/NetworkManager -I/home/jowenn/development/kde/svn/kdebase/workspace/solid/networkmanager-0.6/../control -o /home/jowenn/development/kde/build/kdebase/workspace/solid/networkmanager-0.6/NetworkManager-wirelessnetwork.moc /home/jowenn/development/kde/svn/kdebase/workspace/solid/networkmanager-0.6/NetworkManager-wirelessnetwork.h
/home/jowenn/development/kde/svn/kdebase/workspace/solid/networkmanager-0.6/NetworkManager-networkmanager.h:32:
Error: Undefined interface
automoc4: process
for /home/jowenn/development/kde/build/kdebase/workspace/solid/networkmanager-0.6/NetworkManager-networkmanager.moc
failed: Unknown error
pid to wait for: 0
processes in queue: 4
/home/jowenn/development/kde/svn/kdebase/workspace/solid/networkmanager-0.6/NetworkManager-networkinterface.h:95:
Warning: Class NMNetworkInterface inherits from two QObject subclasses
QObject and Solid::Control::Ifaces::NetworkInterface. This is not supported!
returning failed..
make[2]: ***
[workspace/solid/networkmanager-0.6/solid_networkmanager_automoc.cpp] Fehler
1
make[2]: Leaving directory `/home/jowenn/development/kde/build/kdebase'
make[1]: ***
[workspace/solid/networkmanager-0.6/CMakeFiles/solid_networkmanager.dir/all]
Fehler 2
make[1]: Leaving directory `/home/jowenn/development/kde/build/kdebase'
make: *** [all] Fehler 2
More information about the kde-core-devel
mailing list