Re: <gstmm.h> include errors
- From: "Milosz Derezynski" <internalerror gmail com>
- To: "José Alburquerque" <jaalburquerque cox net>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: <gstmm.h> include errors
- Date: Sun, 18 Nov 2007 00:10:51 +0100
Hey José,
Sorry for getting back so late.
As for the problem with instantiating an element, i'm not sure where
the actual problem lies; the code for doing that is very simple, and
unless there is a reference counting problem it should just work;
could you try whether creating an element the C way on your box in the
same program works? E.g.
GstElement * element = gst_element_factory_make("filesrc", NULL);
-- Milosz
2007/11/16, José Alburquerque <jaalburquerque cox net>:
> Hi Milosz. I built gstmm and installed it on my system. I tried to use
> it in a c++ program by including the main "gstmm.h" file and got the
> following errors, so I made some changes to "gstmm.h" (see the diff):
>
> [04:49][jose sweety:~/Projects/Programming/C++/Tests]$ g++
> gstreamer-test.cc `pkg-config --cflags --libs gstmm-1.0`
> In file included from gstreamer-test.cc:1:
> /usr/include/gstmm-1.0/gstmm.h:4:28: error: gstmm/gstclock.h: No such
> file or directory
> /usr/include/gstmm-1.0/gstmm.h:5:30: error: gstmm/gstelement.h: No such
> file or directory
> /usr/include/gstmm-1.0/gstmm.h:6:28: error: gstmm/gsterror.h: No such
> file or directory
> /usr/include/gstmm-1.0/gstmm.h:7:29: error: gstmm/gstformat.h: No such
> file or directory
> /usr/include/gstmm-1.0/gstmm.h:8:31: error: gstmm/gstiterator.h: No such
> file or directory
> /usr/include/gstmm-1.0/gstmm.h:9:29: error: gstmm/gstobject.h: No such
> file or directory
> /usr/include/gstmm-1.0/gstmm.h:10:26: error: gstmm/gstpad.h: No such
> file or directory
> /usr/include/gstmm-1.0/gstmm.h:11:32: error: gstmm/gststructure.h: No
> such file or directory
> /usr/include/gstmm-1.0/gstmm.h:12:34: error: gstmm/gstsystemclock.h: No
> such file or directory
> [04:50][jose sweety:~/Projects/Programming/C++/Tests]
>
> Also, would anyone know how to debug libraries wrapped with gmmproc
> (like gstreamermm) (Is it even possible)? I tried something basic like
> creating a Gst::Element unsuccessfully with the following short code
> which always outputs the failure message:
>
> #include <iostream>
> #include <gstmm.h>
>
> using namespace std;
>
> int main (int argc, char* argv[]) {
> Gst::init(argc, argv);
>
> Glib::RefPtr<Gst::Element> element =
> Gst::Element::create("fakesrc", "source");
>
> if (!element) {
> cout << "Failed to created gst element." << endl;
> }
> }
>
> Thanks.
>
> -Jose
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]