1 Apr 2011 01:39
Exported module missing symbols
Spencer G. <sgraffe <at> gmail.com>
2011-03-31 23:39:55 GMT
2011-03-31 23:39:55 GMT
I have what's called a Blizzard library which handles reading videos
by using FFmpeg. It's general use so a it can handle a huge variety of
formats. I was able to make the C code for the library, compile it as
libblizzard, wrap its header file using Cython, and make a python
BlizzardReader class using that library (also programmed in Cython).
That compiled just find and it created a blizzard.so file as it
should.
I made a test main.py which simply imports the blizzard library and
creates one BlizzardReader. But, when I ran it it gave me the
following error:
Traceback (most recent call last):
File "main.py", line 2, in <module>
import blizzard
ImportError: /home/spencer/blizzard_python/blizzard.so: undefined
symbol: blizzard_destroy
Here is the blizzard file:
cimport blizzard
cdef class BlizzardReader:
"""
An object responisble for reading a video file, grabbing frames from
it, and then destroying
itself properly when done.
"""
cdef blizzard.BlizzardReader* reader
(Continue reading)
RSS Feed