Note that there are some explanatory texts on larger screens.

plurals
  1. POIssues linking against gstreamer libraries ubuntu 11.10
    primarykey
    data
    text
    <p>So I am starting a project that is going to make use of the gstreamer libraries. I am running the test project from the gstreamer documentation and am getting the following error.This program worked properly on archlinux but is erroring out on ubuntu</p> <pre><code>gcc `pkg-config --cflags --libs gstreamer-0.10` main.c -o player /tmp/cciFhGCe.o: In function `main': main.c:(.text+0x1e): undefined reference to `gst_init' main.c:(.text+0x36): undefined reference to `gst_version' collect2: ld returned 1 exit status make: *** [player] Error 1 </code></pre> <p>My code is the following which I got from the gstreamer documentation</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;gst/gst.h&gt; int main (int argc, char *argv[]) { const gchar *nano_str; guint major, minor, micro, nano; gst_init (&amp;argc, &amp;argv); gst_version (&amp;major, &amp;minor, &amp;micro, &amp;nano); if (nano == 1) nano_str = "(CVS)"; else if (nano == 2) nano_str = "(Prerelease)"; else nano_str = ""; printf ("This program is linked against GStreamer %d.%d.%d %s\n", major, minor, micro, nano_str); return 0; } </code></pre> <p>and the command I am using to compile is</p> <pre><code>gcc `pkg-config --cflags --libs gstreamer-0.10` main.c -o player </code></pre> <p>and the output of pkg-config</p> <pre><code>-pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lxml2 -lgthread-2.0 -lrt -lglib-2.0 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload