[gst-devel] Gstreamer And Eclipse
Michael Joachimiak
mjoachimiak at gmail.com
Fri Sep 3 13:45:22 CEST 2010
You shoul be able to setup additional include directories in Project
properties -> C/C++ Build -> Settings -> Tool settings tab ->directories.
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.
2010/9/3 Tim-Philipp Müller <t.i.m at zen.co.uk>
> On Tue, 2010-08-31 at 00:38 -0700, frknml wrote:
>
> > I have created a c++ project in my eclipse,and gstreamer-0.10 folder in
> my
> > /usr/include directory.
> >
> > I'm only trying to include <gstreamer-0.10/gst/gst.h> library but it
> gives
> > hundreds of errors :)
>
> That's not going to work, and not how it's supposed to work.
>
> You need to get the include paths to pass to the compiler using
>
> pkg-config --cflags gstreamer-0.10
>
> and then
>
> #include <gst/gst.h>
>
> How this has to be done exactly in Eclipse I don't know, but pkg-config
> is a pretty standard tool on linux so I'm sure there's a solution for
> this.
>
> (The reason this doesn't work is that there are includes in other
> directories as well - glib for example may have platform-specific
> headers in /usr/lib/glib-2.0/include that are needed).
>
> Cheers
> -Tim
>
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
--
Your Sincerely
Michael Joachimiak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100903/52e5bda5/attachment.htm>
More information about the gstreamer-devel
mailing list