After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709145 - mpegts: Can't link against mpegts
mpegts: Can't link against mpegts
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.2.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-09-30 22:48 UTC by Brendan Long
Modified: 2013-10-01 07:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add mpegts pkg-config file (5.23 KB, patch)
2013-09-30 23:09 UTC, Brendan Long
none Details | Review

Description Brendan Long 2013-09-30 22:48:58 UTC
I tried linking a very basic file:

    #define GST_USE_UNSTABLE_API
    #include <gst/mpegts/mpegts.h>

    int main(int argc, char** argv) {
        gst_message_parse_mpegts_section(0);
        return 0;
    }

But even though it can find the header, it can't find the library:

> $ libtool --mode=link gcc `gst-git pkg-config --cflags --libs gstreamer-plugins-bad-1.0` -o test test.c  
> libtool: link: gcc -pthread -I/home/blong/gst/git/gstreamer -I/home/blong/gst/git/gstreamer/libs -I/home/blong/gst/git/gst-plugins-bad/gst-libs -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include /home/blong/gst/git/gstreamer/gst/.libs/libgstreamer-1.0.so -o test test.c  -L/home/blong/gst/git/gst-plugins-bad/gst-libs/gst/basecamerabinsrc -L/home/blong/gst/git/gst-plugins-bad/gst-libs/gst/codecparsers -L/home/blong/gst/git/gst-plugins-bad/gst-libs/gst/egl -L/home/blong/gst/git/gst-plugins-bad/gst-libs/gst/insertbin -L/home/blong/gst/git/gst-plugins-bad/gst-libs/gst/interfaces -L/home/blong/gst/git/gst-plugins-bad/gst-libs/gst/signalprocessor -L/home/blong/gst/git/gst-plugins-bad/gst-libs/gst/video -lgobject-2.0 -lglib-2.0 -pthread
/tmp/ccJ9E0Sm.o:test.c:function main: error: undefined reference to 'gst_message_parse_mpegts_section'  
> collect2: error: ld returned 1 exit status

>
Comment 1 Brendan Long 2013-09-30 23:09:20 UTC
Created attachment 256148 [details] [review]
Add mpegts pkg-config file

Here's one option to make this work, but I'm not sure if it's the approach you want to take.
Comment 2 Edward Hervey 2013-10-01 06:20:43 UTC
Seems correct. Will tackle it later.
Comment 3 Edward Hervey 2013-10-01 07:08:08 UTC
Pushed to both master and 1.2

commit 10e86f8101eee76c0979ac9f08eb4283724c61d3
Author: Brendan Long <b.long@cablelabs.com>
Date:   Mon Sep 30 15:32:55 2013 -0600

    Add gstreamer-mpegts pkg-config file.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709145