ImportError: [library_name] .so: undefined symbol: [function name]

I am expanding my Python program with the C module, which uses the GstPhotography interface for GStreamer. My C module compiles fine, but when I try to run it from Python, I get this error:

$python Program.py Traceback (most recent call last): File "Program.py", line 10, in <module> import MyPythonClass File "/path/MyPythonClass.py", line 19, in <module> import my_c_module ImportError: /path/my_c_module.so: undefined symbol: gst_photography_get_type 

I'm not sure what this means, because I never use gst_photography_get_type in my_c_module.cpp - this is a function implemented in the GstPhotography source code.

+6
python gstreamer importerror
source share
1 answer

This means that you did not link to enough libraries because it was not specified in the pkgconfig file, or you did not refer to the pkgconfig file at all.

0
source share

All Articles