title: GStreamer audio on Android
body: <p>I try to use GStreamer on Android via Qt and C++. I already use GStreamer on these platforms but now I have an issues with the plugins:</p>
  
  <pre><code>G_BEGIN_DECLS
  GST_PLUGIN_STATIC_DECLARE(coreelements);
  GST_PLUGIN_STATIC_DECLARE(audiotestsrc);
  GST_PLUGIN_STATIC_DECLARE(audioconvert);
  GST_PLUGIN_STATIC_DECLARE(androidmedia);
  GST_PLUGIN_STATIC_DECLARE(playback);
  G_END_DECLS
  void MainWindow::play(){
      GST_PLUGIN_STATIC_REGISTER(coreelements);
      GST_PLUGIN_STATIC_REGISTER(audiotestsrc);
      GST_PLUGIN_STATIC_REGISTER(audioconvert);
      GST_PLUGIN_STATIC_REGISTER(androidmedia);
      GST_PLUGIN_STATIC_REGISTER(playback);
  
      GstElement *pipeline;
      GError *error = NULL;
  
      pipeline = gst_parse_launch("audiotestsrc ! audioconvert ! androidmedia", &amp;error);
      if (!pipeline) {
          ui-&gt;label-&gt;setText("error");
          return;
      }
      if(error != NULL){
          qDebug("GST error: ");
          qDebug(error-&gt;message);
          qDebug("GST end.");
      }else{
          qDebug("GST without errors");
      }
  
  
      gst_element_set_state(pipeline, GST_STATE_PLAYING);
      ui-&gt;label-&gt;setText("Playing...");
  
  }
  </code></pre>
  
  <p>With this variant of code I get </p>
  
  <blockquote>
    <p>undefined reference to 'gst_preset_get_type'</p>
  </blockquote>
  
  <p>and I don't know with which library I need to link my app.</p>
  
  <p>How can I solve this problem?</p>