GNOME Bugzilla – Bug 709145
mpegts: Can't link against mpegts
Last modified: 2013-10-01 07:08:08 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 >
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.
Seems correct. Will tackle it later.
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