[gst-devel] python2.7 bindings

Antoine Martin antoine at nagafix.co.uk
Wed Nov 10 11:28:43 CET 2010


On 11/10/2010 04:59 PM, Antoine Martin wrote:
> On 11/10/2010 04:43 PM, Andoni Morales wrote:
>> 2010/11/10 Antoine Martin <antoine at nagafix.co.uk>:
>>> Hi list,
>>>
>>> Are there any plans to release some python2.7 bindings using ossbuild?
>>> (any approximate release schedule?)
>>> Are there any known issues? Is building documented anywhere I've missed?
>>>
>>> I tried loading the project into VS2008 and after adding all the include
>>> paths, I eventually stopped at:
>>> "LINK : fatal error LNK1104: cannot open file 'glib-2.0D.lib'"
>>> Does this mean I have to build the whole of gstreamer+glib+... using VS?
>> Hi antoine,
>>
>> You don't need to rebuild everything. We provide pre-compiled binaries
>> for all the external dependencies and a SDK with all the headers and a
>> the import libraries needed to link against gstreamer and its
>> dependencies. If you look close at the error, there is typo in
>> 'glib-2.0D.lib', with and extra 'D' :)
> I was aware of the "typo" but since I didn't type anything, it must have
> been generated by something in the VS build files. Which means they
> don't work as-is, right?
I fixed a bunch of libraries that were misnamed in the project file: the
glib-2.0D.lib and a bunch more had libfoo.lib (unix style) instead of
foo.lib
Eventually the build went a little further, but it still failed with:

gstmodule.obj : error LNK2019: unresolved external symbol
_pygst_add_constants referenced in function _init_gst

Is this of any use to you? If so, do you want it in the bug report?

Cheers
Antoine

*********************
Full build log below:

------ Build started: Project: libgstpython, Configuration: Debug Win32
------
Compiling...
gst-argtypes.c
gst.c
gstmodule.c
interfaces.c
interfacesmodule.c
pygstexception.c
pygstiterator.c
pygstminiobject.c
pygstvalue.c
Generating Code...
Compiling manifest to resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Linking...
   Creating library .\Debug/libgstpython.lib and object
.\Debug/libgstpython.exp
gstmodule.obj : error LNK2019: unresolved external symbol
_pygst_add_constants referenced in function _init_gst
gstmodule.obj : error LNK2019: unresolved external symbol
_pygst_register_classes referenced in function _init_gst
pygstvalue.obj : error LNK2001: unresolved external symbol
__imp___Py_Dealloc
gstmodule.obj : error LNK2019: unresolved external symbol
__imp___Py_Dealloc referenced in function _init_gst
interfacesmodule.obj : error LNK2001: unresolved external symbol
__imp___Py_Dealloc
pygstexception.obj : error LNK2001: unresolved external symbol
__imp___Py_Dealloc
pygstminiobject.obj : error LNK2001: unresolved external symbol
__imp___Py_Dealloc
pygstvalue.obj : error LNK2001: unresolved external symbol
__imp___Py_NegativeRefcount
gstmodule.obj : error LNK2019: unresolved external symbol
__imp___Py_NegativeRefcount referenced in function _init_gst
interfacesmodule.obj : error LNK2001: unresolved external symbol
__imp___Py_NegativeRefcount
pygstexception.obj : error LNK2001: unresolved external symbol
__imp___Py_NegativeRefcount
pygstminiobject.obj : error LNK2001: unresolved external symbol
__imp___Py_NegativeRefcount
pygstminiobject.obj : error LNK2001: unresolved external symbol
__imp___Py_RefTotal
pygstvalue.obj : error LNK2001: unresolved external symbol
__imp___Py_RefTotal
gstmodule.obj : error LNK2001: unresolved external symbol
__imp___Py_RefTotal
interfacesmodule.obj : error LNK2001: unresolved external symbol
__imp___Py_RefTotal
pygstexception.obj : error LNK2001: unresolved external symbol
__imp___Py_RefTotal
pygstiterator.obj : error LNK2001: unresolved external symbol
__imp___Py_RefTotal
gstmodule.obj : error LNK2019: unresolved external symbol
__imp__Py_InitModule4TraceRefs referenced in function _init_gst
interfacesmodule.obj : error LNK2001: unresolved external symbol
__imp__Py_InitModule4TraceRefs
gstmodule.obj : error LNK2001: unresolved external symbol _pygst_functions
interfacesmodule.obj : error LNK2019: unresolved external symbol
_pyinterfaces_add_constants referenced in function _initinterfaces
interfacesmodule.obj : error LNK2019: unresolved external symbol
_pyinterfaces_register_classes referenced in function _initinterfaces
interfacesmodule.obj : error LNK2001: unresolved external symbol
_pyinterfaces_functions
pygstiterator.obj : error LNK2019: unresolved external symbol
__imp___PyObject_DebugFree referenced in function _pygst_iterator_dealloc
pygstminiobject.obj : error LNK2001: unresolved external symbol
__imp___PyObject_DebugFree
pygstiterator.obj : error LNK2019: unresolved external symbol
__imp___PyObject_DebugMalloc referenced in function _pygst_iterator_new
.\Debug/libgstpython.dll : fatal error LNK1120: 12 unresolved externals
Build log was saved at
"file://d:\gst-python-0.10.19\win32\vs6\Debug\BuildLog.htm"
libgstpython - 28 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========








> 
>> Regarding python2.7, could you please open a new issue for that? I'll
>> try to have it ready in couple of days.
> Here you go:
> https://bugzilla.gnome.org/show_bug.cgi?id=634493
> 
> Thanks
> Antoine
> 
>>
>> andoni
>>>
>>> Every other bit of software that I use either provides a python 2.7
>>> installer or can be installed with minimum fuss via setuptools or
>>> distutils. pygst is the last missing piece of the puzzle...
>>>
>>> Thanks
>>> Antoine
>>>
>>> ------------------------------------------------------------------------------
>>> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
>>> David G. Thomson, author of the best-selling book "Blueprint to a
>>> Billion" shares his insights and actions to help propel your
>>> business during the next growth cycle. Listen Now!
>>> http://p.sf.net/sfu/SAP-dev2dev
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>
>>
>>
>>
> 





More information about the gstreamer-devel mailing list