I am using a Fedora 12 linux distribution and trying to compile a sample hello world app that uses Gstreamer. I googled my error a bit but I could not figure out why my gst.h file seems to be missing. When I installed using yum install gstreamer, it says gstreamer already installed. Where is the dev package I need to get? Any pointers would be great..
gmake gcc `pkg-config gstreamer-0.10 --libs` `pkg-config gstreamer-0.10 --cflags` gst_hw.c Package gstreamer-0.10 was not found in the pkg-config search path. Perhaps you should add the directory containing `gstreamer-0.10.pc' to the PKG_CONFIG_PATH environment variable No package 'gstreamer-0.10' found Package gstreamer-0.10 was not found in the pkg-config search path. Perhaps you should add the directory containing `gstreamer-0.10.pc' to the PKG_CONFIG_PATH environment variable No package 'gstreamer-0.10' found gst_hw.c:1:21: error: gst/gst.h: No such file or directory |
On 28 Nov 2012, at 23:32, little_endian wrote:
> I am using a Fedora 12 linux distribution and trying to compile a sample > hello world app that uses Gstreamer. I googled my error a bit but I could > not figure out why my gst.h file seems to be missing. When I installed using > yum install gstreamer, it says gstreamer already installed. Where is the dev > package I need to get? Any pointers would be great.. On RedHat-based distros like Fedora, the development packages have a "-devel" suffix; so try "sudo yum install gstreamer-devel". You can also try "yum search gstreamer" to see all available gstreamer packages. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks a lot David, it was helpful. Now it can find the header file (but I had to do #include <gstreamer-0.10/gst/gst.h>) but it gives errors for the files included from gst.h like so below, any thoughts?
gmake gcc `pkg-config gstreamer --libs` `pkg-config gstreamer --cflags` gst_hw.c Package gstreamer was not found in the pkg-config search path. Perhaps you should add the directory containing `gstreamer.pc' to the PKG_CONFIG_PATH environment variable No package 'gstreamer' found Package gstreamer was not found in the pkg-config search path. Perhaps you should add the directory containing `gstreamer.pc' to the PKG_CONFIG_PATH environment variable No package 'gstreamer' found In file included from gst_hw.c:1: /usr/include/gstreamer-0.10/gst/gst.h:27:18: error: glib.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:29:29: error: gst/glib-compat.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:31:30: error: gst/gstenumtypes.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:32:28: error: gst/gstversion.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:34:24: error: gst/gstbin.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:35:27: error: gst/gstbuffer.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:36:31: error: gst/gstbufferlist.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:37:25: error: gst/gstcaps.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:38:31: error: gst/gstchildproxy.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:39:26: error: gst/gstclock.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:40:31: error: gst/gstdebugutils.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:41:28: error: gst/gstelement.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:42:26: error: gst/gsterror.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:43:26: error: gst/gstevent.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:44:29: error: gst/gstghostpad.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:45:26: error: gst/gstindex.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:46:33: error: gst/gstindexfactory.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:47:25: error: gst/gstinfo.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:48:30: error: gst/gstinterface.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:49:29: error: gst/gstiterator.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:50:28: error: gst/gstmarshal.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:51:28: error: gst/gstmessage.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:52:31: error: gst/gstminiobject.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:53:27: error: gst/gstobject.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:54:24: error: gst/gstpad.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:55:31: error: gst/gstparamspecs.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:56:29: error: gst/gstpipeline.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:57:27: error: gst/gstplugin.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:58:25: error: gst/gstpoll.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:59:27: error: gst/gstpreset.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:60:26: error: gst/gstquery.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:61:29: error: gst/gstregistry.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:62:28: error: gst/gstsegment.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:63:30: error: gst/gststructure.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:64:32: error: gst/gstsystemclock.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:65:28: error: gst/gsttaglist.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:66:30: error: gst/gsttagsetter.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:67:25: error: gst/gsttask.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:68:29: error: gst/gsttaskpool.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:69:26: error: gst/gsttrace.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:70:29: error: gst/gsttypefind.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:71:36: error: gst/gsttypefindfactory.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:72:24: error: gst/gsturi.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:73:26: error: gst/gstutils.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:74:26: error: gst/gstvalue.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:75:24: error: gst/gstxml.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:77:26: error: gst/gstparse.h: No such file or directory /usr/include/gstreamer-0.10/gst/gst.h:80:27: error: gst/gstcompat.h: No such file or directory In file included from gst_hw.c:1: /usr/include/gstreamer-0.10/gst/gst.h:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ /usr/include/gstreamer-0.10/gst/gst.h:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gst_init_check’ /usr/include/gstreamer-0.10/gst/gst.h:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /usr/include/gstreamer-0.10/gst/gst.h:90: error: expected ‘)’ before ‘*’ token /usr/include/gstreamer-0.10/gst/gst.h:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /usr/include/gstreamer-0.10/gst/gst.h:94: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gst_segtrap_is_enabled’ /usr/include/gstreamer-0.10/gst/gst.h:95: error: expected ‘)’ before ‘enabled’ /usr/include/gstreamer-0.10/gst/gst.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gst_registry_fork_is_enabled’ /usr/include/gstreamer-0.10/gst/gst.h:98: error: expected ‘)’ before ‘enabled’ /usr/include/gstreamer-0.10/gst/gst.h:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gst_update_registry’ gst_hw.c:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ gmake: *** [all] Error 1 |
In reply to this post by little_endian
Actually everything is fine now, thanks a lot for your help!!
|
Free forum by Nabble | Edit this page |