Re: [Tracker] Building tracker and tracker apps from trunk



On 11/01/09 15:36, Ivan Frade wrote:
Hi!

Hi,

    1/ I also want to get the gui tools, but I either have missing
    dependencies or have used the wrong flags with autogen.sh (either is
    entirely possible - I'm not terribly familiar with the linux build
    tools).

    I've tried variants on:
    ./autogen.sh --enable-deskbar-applet --enable-tracker-search-tool
    --enable-tracker-preferences --enable-tracker-applet
    --enable-libtracker-gtk --prefix=/usr --sysconfdir=/etc

    but the build config summary reports only the deskbar-applet being
    enabled (see below).


Have you installed the development packages of "glib-2.0", "gtk+-2.0",
"dbus-1", "libgnome-2.0","libgnomeui-2.0" and "dbus-glib"?

When some of those packages are missing, those components are disabled
and the compilation doesn't fail. I think we should show an error if the
option --enable-X is used (the user explicitly enable that option) and
the required libraries are not present.

Yea, that's exactly how it _should_ work. Maybe it is broken.

    2/ I'm also have trouble with the dbus interface. I've tried to call
    the Text method of org.freedesktop.Tracker.Search interface but it
    returns with "can't find method in interface with args xxx" type
    error. (On the other hand I can call GetVersion method from
    org.freedesktop.Tracker interface). This was code that worked for
    the version of tracker that shipped with hardy (0.6.6), but doesn't
    work on trunk...


There is a small change in the DBus API. In 0.6.6, there were one
Tracker object with 5 interfaces. Now we have 5 objects with one
interface (per object). So, instead of connect to

Object: org.freedesktop.Tracker
Interface: org.freedesktop.Tracker.Search

You should use:
Object: org.freedesktop.Tracker.Search
Interface: org.freedesktop.Tracker.Search

The "Version" method is working because that interface keep the same
name and object.

To explore the DBus API of tracker, try d-feet
(https://fedorahosted.org/d-feet/). It helps a lot to check
objects/interfaces/methods/signatures.

This is good advise! :)
We use d-feet to test our interfaces too, so I can fully recommend it too.

--
Regards,
Martyn



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]