Hello devs! I was successfully building the new gstreamer-1.8.1 for raspbian wheezy. It works good so far. However when I try to build gst-python i get following output: make all-recursive make[1]: Entering directory '/home/pi/Downloads/gst-python-1.8.1' Making all in common make[2]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/common' Making all in m4 make[3]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/common/m4' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/common/m4' make[3]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/common' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/common' make[2]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/common' Making all in gi make[2]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/gi' Making all in overrides make[3]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/gi/overrides' CC _gi_gst_la-gstmodule.lo gstmodule.c: In function 'add_templates': gstmodule.c:151:12: error: 'PyGObject_Type' undeclared (first use in this function) gstmodule.c:151:12: note: each undeclared identifier is reported only once for each function it appears in Makefile:499: recipe for target '_gi_gst_la-gstmodule.lo' failed make[3]: *** [_gi_gst_la-gstmodule.lo] Error 1 make[3]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/gi/overrides' Makefile:397: recipe for target 'all-recursive' failed make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/gi' Makefile:469: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1' Makefile:400: recipe for target 'all' failed make: *** [all] Error 2 I tried different versions of PyGObject, which does not change the outcome. I can not find PyGObject_Type in /usr/include nor in /usr/local/include. It seems to be defined in the pygobject sources in "gi/pyobject-external.h", but this file does not to be installed anywhere. Do u have any ideas what could be the problem? Kind regards Johannes Bauer _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On Do, 2016-06-30 at 11:45 +0200, Johannes Bauer wrote:
> Hello devs! > > I was successfully building the new gstreamer-1.8.1 for raspbian wheezy. It works good so far. > However when I try to build gst-python i get following output: > > [...] > > I tried different versions of PyGObject, which does not change the outcome. > I can not find PyGObject_Type in /usr/include nor in /usr/local/include. > It seems to be defined in the pygobject sources in "gi/pyobject-external.h", but this file does not to be installed anywhere. > > Do u have any ideas what could be the problem? #define PyGObject_Type (*_PyGObject_API->object_type) This is with version 3.20.1. Which one do you use? -- Sebastian Dröge, Centricular Ltd · http://www.centricular.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (968 bytes) Download Attachment |
Sebastian, thank you very much for your answer. I use pygobject-3.0.0 and i also have a /usr/local/include/pygobject-3.0/pygobject.h, but it lacks the definition of PyGObject_Type. I also tried building 3.21.0, but it requires a higher version of gobject-introspection, which fails to build on my system. I compared the sources of pygobject-3.0.0 and 3.21.0 and it seems that they changed pygobject.h in version 3.7.91. So i downloaded gyobject-3.8.3 and was able to compile and install gyobject and gst-python-1.8.1. The problem is when I run my python script, stillmy older gst-python 1.2.0 version is used and not version 1.8.1. How can i tell python to use the new gi with gst 1.8.1? Kind regards JB 2016-06-30 12:10 GMT+02:00 Sebastian Dröge <[hidden email]>: On Do, 2016-06-30 at 11:45 +0200, Johannes Bauer wrote: _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Johannes Bauer
Sebastian,
thank you very much for your answer. I use pygobject-3.0.0 and i also have a /usr/local/include/pygobject-3.0/pygobject.h, but it lacks the definition of PyGObject_Type. I also tried building 3.21.0, but it requires a higher version of gobject-introspection, which fails to build on my system. I compared the sources of pygobject-3.0.0 and 3.21.0 and it seems that they changed pygobject.h in version 3.7.91. So i downloaded gyobject-3.8.3 and was able to compile and install gyobject and gst-python-1.8.1. The problem is when I run my python script, stillmy older gst-python 1.2.0 version is used and not version 1.8.1. How can i tell python to use the new gi with gst 1.8.1? Kind regards JB _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Try setting sys.path.append('path to new version libs') from Python.
Sent from my iPhone > On Jun 30, 2016, at 08:01, Johannes Bauer <[hidden email]> wrote: > > Sebastian, > > thank you very much for your answer. > > I use pygobject-3.0.0 and i also have a /usr/local/include/pygobject-3.0/pygobject.h, > but it lacks the definition of PyGObject_Type. > > I also tried building 3.21.0, but it requires a higher version of gobject-introspection, which fails to build on my system. > > I compared the sources of pygobject-3.0.0 and 3.21.0 and it seems that they changed pygobject.h in version 3.7.91. > So i downloaded gyobject-3.8.3 and was able to compile and install gyobject and gst-python-1.8.1. > > The problem is when I run my python script, stillmy older gst-python 1.2.0 version is used and not version 1.8.1. > > How can i tell python to use the new gi with gst 1.8.1? > > Kind regards > > JB > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hello Shishir! I really appreciate your input! I uninstalled the older gstreamer and gi version and added your suggestion to my py-script and now python finds gi but cannot find Gst. The "make check" on gst-python fails due to "Too many levels of symbolic links". gi/overrides/__init__.py is a link to itself. That seems to be the problem here. However I dont know if it is a problem for the installation. The "make install" puts Gst in /usr/local/lib/python2.7/site-packages/gi/overrides, whereas the rest of gi is installed to /usr/local/lib/python2.7/dist-packages/gi. I tried copying the content fron site-packages to dist-packages, but it did not help. Still I get the error msg: ERROR:root:Could not find any typelib for Gst Does anyone know how to resolve that issue? Kind regards JB 2016-06-30 19:17 GMT+02:00 Shishir Pokharel <[hidden email]>: Try setting sys.path.append('path to new version libs') from Python. _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
For some reason if you do make uninstall and clean "Too many levels of symbolic links".
will still persists on gst-python. Try uninstalling gst-python and re-extract from tar file and make install. ERROR:root:Could not find any typelib for Gst gi is not able to find Gst. Did you configure gstreamer with --enable-introspection=yes and do you have “.gir” files ? /Shishir From: gstreamer-devel [mailto:[hidden email]]
On Behalf Of Johannes Bauer Hello Shishir! I really appreciate your input! I uninstalled the older gstreamer and gi version and added your suggestion to my py-script and now python finds gi but cannot find Gst. The "make check" on gst-python fails due to "Too many levels of symbolic links". gi/overrides/__init__.py is a link to itself. That seems to be the problem here. However I dont know if it is a problem for the installation. The "make install" puts Gst in /usr/local/lib/python2.7/site-packages/gi/overrides, whereas the rest of gi is installed to /usr/local/lib/python2.7/dist-packages/gi. I tried copying the content fron site-packages to dist-packages, but it did not help. Still I get the error msg:
Does anyone know how to resolve that issue? Kind regards JB 2016-06-30 19:17 GMT+02:00 Shishir Pokharel <[hidden email]>:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hello! I recompiled gstreamer with --enable-introspection=yes, recompiled pygobject and gst-python. I have the gst-1.0.gir and other gst .gir files in /usr/local/share/gir-1.0/ Still the same error, that I already sent in the previous mail: ERROR:root:Could not find any typelib for Gst Here is the output of gst-python configure and make install (still same error without passing overrides dir): ./configure --with-pygi-overrides-dir=/usr/local/lib/python2.7/site-packages/gi/overrides Kind regards JB 2016-07-01 22:34 GMT+02:00 Shishir Pokharel <[hidden email]>:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Do you get the same error on Python cli if you do;
from gi.repository import Gst ?
Could you paste output of following command from python cli?
Import sys
Sys.path
Also check if you have Gst *.typelib available for gi.repository
Might be under;
/usr/lib64/girepository-1.0/Gst-1.0.typelib
From: "[hidden email]" <[hidden email]>
on behalf of Johannes Bauer <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>, "[hidden email]" <[hidden email]> Date: Monday, July 4, 2016 at 1:36 AM To: "[hidden email]" <[hidden email]> Subject: Re: gst-python-1.8.1 Hello!
I recompiled gstreamer with --enable-introspection=yes, recompiled pygobject and gst-python. I have the gst-1.0.gir and other gst .gir files in /usr/local/share/gir-1.0/
Still the same error, that I already sent in the previous mail:
ERROR:root:Could not find any typelib for Gst Here is the output of gst-python configure and make install (still same error without passing overrides dir):
./configure --with-pygi-overrides-dir=/usr/local/lib/python2.7/site-packages/gi/overrides Kind regards JB 2016-07-01 22:34 GMT+02:00 Shishir Pokharel
<[hidden email]>:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I do not believe that you can force gi to load its libraries by appending the typelib folder to your sys.path. You should use the environment variable GI_TYPELIB_PATH to point it to the correct folder (typically: /usr/lib/girepository-1.0)
|
Hey guys! Thanks for your answers!2016-07-08 13:54 GMT+02:00 Arjen Veenhuizen <[hidden email]>: I do not believe that you can force gi to load its libraries by appending the _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |