Results 1 to 5 of 5

Thread: gstreamer coming with ubuntu-desktop repository?

  1. #1
    Join Date
    Jul 2006
    Location
    Surrey, BC, Canada
    Beans
    255
    Distro
    Ubuntu

    gstreamer coming with ubuntu-desktop repository?

    Hi, all:

    I'm using Ubuntu 14.04.4 LTS, and it seems the default gstreamer coming with Ubuntu-desktop repository is a bit confusing?

    The structure of gstreamer source code is quite clear here
    Code:
     https://gstreamer.freedesktop.org/src/
    But in the Ubuntu repository, gstreamer-1.0 libstreamer-0.10 are all there, which make things messy (In my point of view).

    Also, I'm building the newest VLC-git, and it builds with gstreamer. I got the following ERROR messages:
    Code:
    jiapei@jiapei-GT72-6QE:~/Downloads/videoprocessing/vlc/vlc$ make >> 1.txt
    In file included from /usr/include/gstreamer-1.0/gst/gstallocator.h:26:0,
                     from codec/gstreamer/gstvlcpictureplaneallocator.c:27:
    /usr/include/gstreamer-1.0/gst/gstmemory.h:55:35: error: ‘GST_MINI_OBJECT_FLAG_LOCK_READONLY’ undeclared here (not in a function)
       GST_MEMORY_FLAG_READONLY      = GST_MINI_OBJECT_FLAG_LOCK_READONLY,
                                       ^
    /usr/include/gstreamer-1.0/gst/gstmemory.h:56:36: error: ‘GST_MINI_OBJECT_FLAG_LAST’ undeclared here (not in a function)
       GST_MEMORY_FLAG_NO_SHARE      = (GST_MINI_OBJECT_FLAG_LAST << 0),
                                        ^
    /usr/include/gstreamer-1.0/gst/gstmemory.h:152:3: error: unknown type name ‘GstMiniObject’
       GstMiniObject   mini_object;
       ^
    /usr/include/gstreamer-1.0/gst/gstmemory.h:172:23: error: ‘GST_LOCK_FLAG_READ’ undeclared here (not in a function)
       GST_MAP_READ      = GST_LOCK_FLAG_READ,
                           ^
    /usr/include/gstreamer-1.0/gst/gstmemory.h:173:23: error: ‘GST_LOCK_FLAG_WRITE’ undeclared here (not in a function)
       GST_MAP_WRITE     = GST_LOCK_FLAG_WRITE,
                           ^
    /usr/include/gstreamer-1.0/gst/gstmemory.h: In function ‘gst_memory_ref’:
    /usr/include/gstreamer-1.0/gst/gstmemory.h:309:3: error: implicit declaration of function ‘gst_mini_object_ref’ [-Werror=implicit-function-declaration]
       return (GstMemory *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (memory));
       ^
    /usr/include/gstreamer-1.0/gst/gstmemory.h:309:3: error: implicit declaration of function ‘GST_MINI_OBJECT_CAST’ [-Werror=implicit-function-declaration]
    /usr/include/gstreamer-1.0/gst/gstmemory.h:309:10: warning: cast from function call of type ‘int’ to non-matching type ‘struct GstMemory *’ [-Wbad-function-cast]
       return (GstMemory *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (memory));
              ^
    /usr/include/gstreamer-1.0/gst/gstmemory.h:309:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    /usr/include/gstreamer-1.0/gst/gstmemory.h: In function ‘gst_memory_unref’:
    /usr/include/gstreamer-1.0/gst/gstmemory.h:325:3: error: implicit declaration of function ‘gst_mini_object_unref’ [-Werror=implicit-function-declaration]
       gst_mini_object_unref (GST_MINI_OBJECT_CAST (memory));
       ^
    In file included from codec/gstreamer/gstvlcpictureplaneallocator.c:27:0:
    /usr/include/gstreamer-1.0/gst/gstallocator.h: At top level:
    /usr/include/gstreamer-1.0/gst/gstallocator.h:88:39: error: ‘GST_OBJECT_FLAG_LAST’ undeclared here (not in a function)
       GST_ALLOCATOR_FLAG_CUSTOM_ALLOC  = (GST_OBJECT_FLAG_LAST << 0),
                                           ^
    /usr/include/gstreamer-1.0/gst/gstallocator.h:107:3: error: unknown type name ‘GstObject’
       GstObject  object;
       ^
    /usr/include/gstreamer-1.0/gst/gstallocator.h:125:3: error: unknown type name ‘GstObjectClass’
       GstObjectClass object_class;
       ^
    In file included from /usr/include/gstreamer-1.0/gst/gstbuffer.h:27:0,
                     from /usr/include/gstreamer-1.0/gst/gstpad.h:65,
                     from /usr/include/gstreamer-1.0/gst/gstelement.h:57,
                     from /usr/include/gstreamer-1.0/gst/gstbin.h:27,
                     from /usr/include/gstreamer-1.0/gst/gst.h:34,
                     from codec/gstreamer/gstvlcpictureplaneallocator.h:30,
                     from codec/gstreamer/gstvlcpictureplaneallocator.c:29:
    /usr/include/gstreamer-1.0/gst/gstminiobject.h:229:17: error: conflicting types for ‘gst_mini_object_ref’
     GstMiniObject * gst_mini_object_ref  (GstMiniObject *mini_object);
                     ^
    In file included from /usr/include/gstreamer-1.0/gst/gstallocator.h:26:0,
                     from codec/gstreamer/gstvlcpictureplaneallocator.c:27:
    /usr/include/gstreamer-1.0/gst/gstmemory.h:309:24: note: previous implicit declaration of ‘gst_mini_object_ref’ was here
       return (GstMemory *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (memory));
                            ^
    In file included from /usr/include/gstreamer-1.0/gst/gstbuffer.h:27:0,
                     from /usr/include/gstreamer-1.0/gst/gstpad.h:65,
                     from /usr/include/gstreamer-1.0/gst/gstelement.h:57,
                     from /usr/include/gstreamer-1.0/gst/gstbin.h:27,
                     from /usr/include/gstreamer-1.0/gst/gst.h:34,
                     from codec/gstreamer/gstvlcpictureplaneallocator.h:30,
                     from codec/gstreamer/gstvlcpictureplaneallocator.c:29:
    /usr/include/gstreamer-1.0/gst/gstminiobject.h:230:17: warning: conflicting types for ‘gst_mini_object_unref’ [enabled by default]
     void            gst_mini_object_unref  (GstMiniObject *mini_object);
                     ^
    In file included from /usr/include/gstreamer-1.0/gst/gstallocator.h:26:0,
                     from codec/gstreamer/gstvlcpictureplaneallocator.c:27:
    /usr/include/gstreamer-1.0/gst/gstmemory.h:325:3: note: previous implicit declaration of ‘gst_mini_object_unref’ was here
       gst_mini_object_unref (GST_MINI_OBJECT_CAST (memory));
       ^
    cc1: some warnings being treated as errors
    make[4]: *** [codec/gstreamer/libgstdecode_plugin_la-gstvlcpictureplaneallocator.lo] Error 1
    make[3]: *** [all-recursive] Error 1
    make[2]: *** [all] Error 2
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2

    Now, I would like to remove the default gstreamer, and rebuild everything related to gstreamer from scratch, all by myself.
    However, whenever I tried to remove some gstreamer packages, Ubuntu-desktop needs to be removed at the same time, which is NOT what I expected.

    For me, gstreamer is NOT for desktop display at all, it's mostly for video/audio signal transmission protocols. Isn't it???

    Cheers
    Pei
    Welcome to Vision Open
    http://www.visionopen.com

  2. #2
    Join Date
    Mar 2016
    Beans
    13

    Re: gstreamer coming with ubuntu-desktop repository?

    Gstreamer is used by some "core" applications and so you should not remove it. But you can still build and install your own gstreamer in /usr/local or /opt or some other places like your user account and tell the vlc build system the location of your gstreamer include files and shared objects.

  3. #3
    Join Date
    Jun 2007
    Beans
    14,793

    Re: gstreamer coming with ubuntu-desktop repository?

    ubuntu-desktop is a "metapackage" (a package that depnds on other packages) and is safe to remove if you want to do a custom gstreamer install. It will not remove your desktop or anything like that.
    Depending on your use of VLC, it may be a lot easier/safer to simply disable gstreamer decoding support by using '--disable-gst-decode' option with configure.

  4. #4
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: gstreamer coming with ubuntu-desktop repository?

    Quote Originally Posted by jiapei100 View Post
    Hi, all:
    For me, gstreamer is NOT for desktop display at all, it's mostly for video/audio signal transmission protocols. Isn't it???

    Cheers
    Pei
    That is correct, gstreamer doesn't need the desktop.

    However that doesn't mean that the desktop stuff wouldn't need gstreamer. Dependencies are one-directional, for example a desktop music player can depend on gstreamer to play back audio, while gstreamer doesn't need the music player for anything.

  5. #5
    Join Date
    Mar 2016
    Beans
    13

    Re: gstreamer coming with ubuntu-desktop repository?

    Quote Originally Posted by mcduck View Post
    That is correct, gstreamer doesn't need the desktop.

    However that doesn't mean that the desktop stuff wouldn't need gstreamer. Dependencies are one-directional, for example a desktop music player can depend on gstreamer to play back audio, while gstreamer doesn't need the music player for anything.
    Yes if you remove gstreamer, you will probably lose:
    * the default music player Rhythmbox
    * the default video player totem
    * default Nautilus video thumb-nailer

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •