Tuesday 12 July 2011

:: error: No rule to make target `/home/puneet/puneet/office/alkimia/alkquotes/backend/org.kde.quotebackend.keyusermanager.xml', needed by `backend/keyusermanageradaptor.cpp'. Stop.

I am getting this error a lot of times


That's usually because you don't have a file called keusermanager.cpp available to make. Check that:
  • that file exists.
  • you're in the right directory when you make.
Actuall I didnt knew that we have to make this file ourselves , So I searched a bit and found it that indeed we have to make this ourselves but can be done in a faster way with almost no errors using qdbuscpp2xml switches

qdbuscpp2xml

To generate the XML we will be using the qdbuscpp2xml command line tool that comes with Qt. This program takes a C++ source file and generates a D-Bus XML definition of the interface for us. It lets us to define which methods to export using the following command line switches:
qdbuscpp2xml switches
Switch Exports
-S all signals
-M all public slots
-P all properties
-A all exportable items
-s scriptable signals
-m scriptable public slots
-p scriptable properties
-a all scriptable items
In our example above we want to export all the public slots but only scriptable signals. Therefore we would use this command line:
$> qdbuscpp2xml -M -s background.h -o org.foo.Background.xml
This produces a file named org.foo.Background.xml which contains this:
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
  <interface name="org.foo.Background">
    <signal name="backgroundChanged">
    </signal>
    <method name="refreshBackground">
    </method>
    <method name="currentBackground">
      <arg type="s" direction="out"/>
    </method>
    <method name="setBackground">
      <arg type="b" direction="out"/>
      <arg name="name" type="s" direction="in"/>
    </method>
  </interface>
</node>
This file should be shipped with your project's source distribution.

    No comments:

    Post a Comment