You shoul be able to setup additional include directories in Project properties -> C/C++ Build -> Settings -> Tool settings tab ->directories.<br>Libraries you can add at the same tab but look to the cross g++ linker -> libraries. On the right you'll have libraries (-l) and library search path. Put there what pkg-config gives you for the library you need.<br>
<br><div class="gmail_quote">2010/9/3 Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, 2010-08-31 at 00:38 -0700, frknml wrote:<br>
<br>
> I have created a c++ project in my eclipse,and gstreamer-0.10 folder in my<br>
> /usr/include directory.<br>
><br>
> I'm only trying to include <gstreamer-0.10/gst/gst.h> library but it gives<br>
> hundreds of errors :)<br>
<br>
</div>That's not going to work, and not how it's supposed to work.<br>
<br>
You need to get the include paths to pass to the compiler using<br>
<br>
pkg-config --cflags gstreamer-0.10<br>
<br>
and then<br>
<br>
#include <gst/gst.h><br>
<br>
How this has to be done exactly in Eclipse I don't know, but pkg-config<br>
is a pretty standard tool on linux so I'm sure there's a solution for<br>
this.<br>
<br>
(The reason this doesn't work is that there are includes in other<br>
directories as well - glib for example may have platform-specific<br>
headers in /usr/lib/glib-2.0/include that are needed).<br>
<br>
Cheers<br>
<font color="#888888"> -Tim<br>
</font><div><div></div><div class="h5"><br>
<br>
------------------------------------------------------------------------------<br>
This SF.net Dev2Dev email is sponsored by:<br>
<br>
Show off your parallel programming skills.<br>
Enter the Intel(R) Threading Challenge 2010.<br>
<a href="http://p.sf.net/sfu/intel-thread-sfd" target="_blank">http://p.sf.net/sfu/intel-thread-sfd</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Your Sincerely<br>Michael Joachimiak<br>