I figured out. I compiled the code in the different shell, which does not know package config path.<br>The code was compiled okay after adding the &quot;PKG_CONFIG_PATH=/usr/local/lib/pkgconfig&quot;<br>However, the executable does not work, even though the code is exactly the same as example code, appsink-src.c.<br>
<br>The example, which is under the plug-in source tree, was compiled ok and worked perfectly. Why the code I compiled did not work? Do I have to add more linker options? <br><br>My makefile looks like below:<br><br>CC=g++<br>
GST_LIBS=`pkg-config --libs gstreamer-0.10 gstreamer-app-0.10`<br>GST_CFLAGS= `pkg-config --cflags gstreamer-0.10 gstreamer-app-0.10` <br>CFLAGS=-Wall -g<br>BINS=appsinktest<br><br>OBJS=main.o <br>all: $(BINS)<br>main.o: main.cc <br>
    $(CC) $(CFLAGS) $(GST_CFLAGS) $(GST_LIBS) -c main.cc<br>appsinktest: $(OBJS)<br>    $(CC) $(CFLAGS) $(GST_CFLAGS) $(GST_LIBS)  $+ -o $(BINS)<br>clean:<br>    rm -rf $(OBJS)<br>    rm -rf $(BINS)<br><br><br><div class="gmail_quote">
On Tue, Jul 21, 2009 at 12:04 PM, joh <span dir="ltr">&lt;<a href="mailto:joh.vlcdev@gmail.com">joh.vlcdev@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
HI!<br><br>I was using gstreamer standard distributions from fedora repository, but needed to update them from source code to use latest version of appsrc/sink .<br>My problem is when I link the application against libgstapp with the option of -lgstapp-0.10, I got some link errors. It seems like I am linking to old version of gst-plugins-base library.  Error messages are as follows: ( oops! almost forgot to mentiion this. the code in main.cc is copy of exmplae code &quot;appsink-src.c&quot;);<br>

<br>---------------------------------------------------------------------------------------------------<br>g++ -Wall -g `pkg-config --cflags gstreamer-0.10` `pkg-config --libs gstreamer-0.10` -lgstapp-0.10 -lgstinterfaces-0.10 -c main.cc<br>

g++ -Wall -g `pkg-config --cflags gstreamer-0.10` `pkg-config --libs gstreamer-0.10` -lgstapp-0.10 -lgstinterfaces-0.10  main.o -o appsinktest<br>/usr/local/lib/libgstbase-0.10.so.0: undefined reference to `gst_util_seqnum_next&#39;<br>

/usr/local/lib/libgstbase-0.10.so.0: undefined reference to `gst_message_set_seqnum&#39;<br>/usr/local/lib/libgstbase-0.10.so.0: undefined reference to `gst_event_set_seqnum&#39;<br>/usr/local/lib/libgstbase-0.10.so.0: undefined reference to `gst_event_get_seqnum&#39;<br>

collect2: ld returned 1 exit status<br>make: *** [appsinktest] Error 1<br>---------------------------------------------------------------------------------------------------<br><br>Is there any specific way to install the gstreamer package from source code?<br>

<br>The package I installed from source:<br>1. gstreamer-0.10.23<br>2. gst-plugins-base-0.10.23<br>3. gst-plugins-good-0.10.15  <br>4. gst-plugins-bad-0.10.13<br>5. gst-plugins-ugly-0.10.12<br>6. gst-ffmpeg-0.10.8          <br>

<br><br>Once I did &quot;export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig&quot; <br>What I did for every source package:<br><br>1. &quot;./configure&quot;<br>2. &quot;make&quot;<br>3. &quot;sudo make install&quot;<br><br>
Everything was okay. <br>
<br>Am I missing something?<br><br>Thank you in advance!<br><br>Justin<br><br><br><br><br>
</blockquote></div><br>