Re: rygel no plugin found



On Mi, 2012-07-04 at 19:32 +0800, Soho Soho123 wrote:
> Dears,
> 
> I un-tar a original tarboll of rygel, and do configure again with new option.
> rygel still get no plugin yet.
> 
> I install librygel-gst-launch.so, and librygel-playbin.so in the path
> /usr/lib/rygel-1.0
> I install rygel config file in the path
> /etc
> I install shared-mime-info in the path
> /usr/share/locale
> /usr/share/mime
> 
> the plugin can not detect by rygel.
> and the comment that you mentioned:
> "Wherever your copy of glib expects it to be",
> how about the meaning?
> for example :
> in locale folder:
> af/LC_MESSAGES/glib20.mo
> af/LC_MESSAGES/rygel.mo
> af/LC_MESSAGES/shared-mime-info.mo, they should be put together, right?

You can basically ignore those, they are translations. the folder
after /locale/ is the language.

> 
> but
> shared-mime-info do not have /locale/af, it has /locale/ar.
> it is different with glib
> 
> do you have any idea about rygel can not find plugin?

If you compile the attached program and run it on your target device
(sm-info /usr/lib/rygel-1.0/*) what is the output?

Also, can you run rygel with -g 5 and include that output?

> 
> Thanks!
> 
> 
> 
> 
> 
> 
> 
> 2012/7/4 Jens Georg <mail jensge org>:
> > On Mi, 2012-07-04 at 16:21 +0800, Soho Soho123 wrote:
> >> Dears,
> >>
> >> about shared-mime-info issue:
> >> I do not know which part is necessary for rygel.
> >> for example:
> >>
> >> when shared-mime-info-1.0 is finish install procedure, then which
> >> folder is necessary to install to our embedd platform file system?
> >
> > Wherever your copy of glib expects it to be. usally that's /usr/share,
> > yes.
> >
> >>
> >> I have install
> >> /share/mime
> >> /share/locale
> >> to our embedd platform file system
> >> /usr/share, then we have the content in root file system:
> >> /usr/share/mime
> >> /usr/share/locale
> >>
> >> Is it correct install shared-mime-info?
> >> thanks
> >>
> >>
> >> 2012/7/4 Jens Georg <mail jensge org>:
> >> > On Mi, 2012-07-04 at 15:07 +0800, Soho Soho123 wrote:
> >> >> Dears,
> >> >>
> >> >> I am new in Rygel.
> >> >> I have problem about:
> >> >> I have install
> >> >> librygel-playbin.so
> >> >> librygel-gst-launch.so to /etc/rygel-1.0/Rygel
> >> >
> >> > This is the wrong directory, depending on how Rygel was built, the
> >> > plugins need to go to ${prefix}/lib/rygel-1.0, so /usr/lib/rygel-1.0
> >> > or /usr/local/lib/rygel-1.0
> >> >
> >> >
> >> >> But when I start rygel by "rygel" command in terminal
> >> >> I got the message :
> >> >> Rygel-WARNING **: No plugins found in 5 seconds; giving up..
> >> >>
> >> >> Does anyone have idea about this message?
> >> >> I see the short faq, that describes "shared-mime-info" should be
> >> >> install well such that plugin detect will work fine.
> >> >> But I donot know how to install "shared-mime-info",
> >> >> My platform is an embedded platform for media render application.
> >> >>
> >> >> Does anyone have idea about install shared-mime-info?
> >> >
> >> > That depends on your platform. Its sources seem to be available at
> >> > http://people.freedesktop.org/~hadess/
> >> >
> >> >
> >> > _______________________________________________
> >> > rygel-list mailing list
> >> > rygel-list gnome org
> >> > https://mail.gnome.org/mailman/listinfo/rygel-list
> >>
> >
> >
> 

/* Compile with gcc -o sm-info $(pkg-config --cflags gio-2.0) sm-info.c $(pkg-config --libs gio-2.0) */

#include <gio/gio.h>

int main (int argc, char *argv[])
{
    int i;

    g_type_init ();

    if (argc == 1) {
        g_print ("Usage: %s file1 [file2 file 3 ]\n", argv[0]);

        return 1;
    }

    for (i = 1; i < argc; i++) {
        GFile *file;
        GFileInfo *info;
        GError *error = NULL;

        file = g_file_new_for_commandline_arg (argv[i]);
        info = g_file_query_info (file,
                                  G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
                                  G_FILE_QUERY_INFO_NONE,
                                  NULL,
                                  &error);
        if (error != NULL) {
            g_print ("Error getting information for %s: %s\n",
                     argv[i],
                     error->message);
            g_error_free (error);

            goto out;
        }

        g_print ("%s: %s\n", argv[i], g_file_info_get_content_type (info));
out:
        g_object_unref (file);
        if (info != NULL) {
            g_object_unref (info);
        }
    }

    return 0;
}


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