Thank you very much Kris. I found the problem.<div><br></div><div>I have installed the development pkg gst-plugins-base-app-dev but forgot to install the main pkg gst-plugins-base-app.</div><div><br></div><div>Now I learned how to debug Gstreamer so thanks again</div>
<div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 5, 2012 at 4:06 PM, Krzysztof Konopko <span dir="ltr"><<a href="mailto:krzysztof.konopko@youview.com" target="_blank">krzysztof.konopko@youview.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tarek,<br>
<div class="im"><br>
On 05/12/12 15:33, Tarek El-Sherbiny wrote:<br>
> To verify that my application is linking to libgstapp I did the following:<br>
><br>
> #cat /proc/2017/maps // 2017=My app PID<br>
><br>
> Output has:<br>
> 2aab1000-2aabb000 r-xp 00000000 00:0d 1639505<br>
> /usr/lib/libgstapp-0.10.so.0.25.0<br>
> 2aabb000-2aac3000 ---p 0000a000 00:0d 1639505<br>
> /usr/lib/libgstapp-0.10.so.0.25.0<br>
> 2aac3000-2aac4000 rw-p 0000a000 00:0d 1639505<br>
> /usr/lib/libgstapp-0.10.so.0.25.0<br>
><br>
</div><div class="im">> I think I'm linking to the correct library.<br>
><br>
<br>
</div>Indeed, looks like your app is linked correctly.<br>
<div class="im"><br>
> Can you please share the config.log output file from your gst-plugins-base<br>
> build?<br>
<br>
</div>I'm afraid I can't afford spending time on filtering config logs (my<br>
client might be unhappy about publishing them) nor cross-compiling<br>
GStreamer in isolation just to see the logs.<br>
<br>
But instead, what in particular are you looking in gst-plugin-base<br>
config.log?<br>
<br>
Have your tried your app on PC to get the ARM platform out of the equation?<br>
<br>
Can you run your app with GST_DEBUG=4 and see if something indicates a<br>
failure to create appsrc element?<br>
<br>
Kris<br>
<div class="HOEnZb"><div class="h5"><br>
> Thanks<br>
> Tarek<br>
><br>
><br>
> On Wed, Dec 5, 2012 at 3:12 PM, Krzysztof Konopko <<br>
> <a href="mailto:krzysztof.konopko@youview.com">krzysztof.konopko@youview.com</a>> wrote:<br>
><br>
>> PKG_CONFIG_PATH is an environment variable. It should point to a<br>
>> directory containing *.pc files for a given platform/configuration.<br>
>><br>
>> See man pkg-config.<br>
>><br>
>> If you build your app manually then you have to set this variable<br>
>> manually. Otherwise it depends on your build system.<br>
>><br>
>> If you pass libraries directly with -l then don't bother with<br>
>> pkg-config. Just make sure that -L points to the correct directory.<br>
>><br>
>> You can also check whether your final binary has proper dependencies:<br>
>> - on your host<br>
>> # to make sure you're inspecting the right binary (see if it's a binary<br>
>> for your target architecture)<br>
>> file <your binary><br>
>> readelf -d <your binary> | grep libgstapp<br>
>><br>
>> - on your target platform (if you have ldd available)<br>
>> ldd <your binary | grep libgstapp<br>
>><br>
>> Please bear in mind that I'm not saying that potentially missing<br>
>> dependency on libgstapp is the cause of your problem. I'm not sure about<br>
>> that. All I know is that my apps depend on it and they work with<br>
>> appsrc/appsink on PC and embedded platform.<br>
>><br>
>> Kris<br>
>><br>
>> On 05/12/12 15:01, Tarek El-Sherbiny wrote:<br>
>>> Hi Kris,<br>
>>><br>
>>> This is what I'm passing to gcc:<br>
>>><br>
>>> $(pkg-config --cflags --libs gstreamer-0.10 gstreamer-app-0.10)<br>
>>> -lgstapp-0.10 -lgstinterfaces-0.10<br>
>>><br>
>>> Is there a configuration option for seting up the PKG_CONFIG_PATH ?<br>
>>><br>
>>> Thanks,<br>
>>> Tarek<br>
>>><br>
>>> On Wed, Dec 5, 2012 at 2:49 PM, Krzysztof Konopko <<br>
>>> <a href="mailto:krzysztof.konopko@youview.com">krzysztof.konopko@youview.com</a>> wrote:<br>
>>><br>
>>>> PKG_CONFIG_PATH<br>
>>><br>
>><br>
>><br>
><br>
<br>
</div></div></blockquote></div><br></div>