Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_pyfreenect2.so: undefined symbol: _ZN12libfreenect29Freenect2D1Ev #9

Open
m1lhaus opened this issue Feb 27, 2016 · 5 comments
Open

Comments

@m1lhaus
Copy link

m1lhaus commented Feb 27, 2016

Today I downloaded and built fresh libfreenect2 and this Python wrapper. I managed to compile and install libraries (libfreenect2 works). To install pyfreenect I had to modify setup.py like this:

libfreenect2_module = Extension("_pyfreenect2",
    libraries=["/home/milan/Programy/libfreenect2/install/lib/libfreenect2.so"],
    sources=["pyfreenect2.cpp",
        "src/Frame.cpp",
        "src/FrameMap.cpp",
        "src/Freenect2.cpp",
        "src/Freenect2Device.cpp",
        "src/Registration.cpp",
        "src/SyncMultiFrameListener.cpp"],
        extra_compile_args = ["-fpermissive"],
    include_dirs=[numpy.get_include(), "/home/milan/Programy/libfreenect2/install/include"],
    define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")])

But when I want run pyfreenect2, I am getting this error:

Traceback (most recent call last):
  File "test.py", line 6, in <module>
    import pyfreenect2
  File "/home/milan/Stažené/pyfreenect2-master/pyfreenect2.py", line 1, in <module>
    import _pyfreenect2
  File "build/bdist.linux-x86_64/egg/_pyfreenect2.py", line 7, in <module>
  File "build/bdist.linux-x86_64/egg/_pyfreenect2.py", line 6, in __bootstrap__
ImportError: /home/milan/.python-eggs/pyfreenect2-0.0.0-py2.7-linux-x86_64.egg-tmp/_pyfreenect2.so: undefined symbol: _ZN12libfreenect29Freenect2D1Ev

Any ideas? Thanks

@GitKraug
Copy link

Any results on this??? Have the same problem myself!

@AStorus
Copy link

AStorus commented Nov 15, 2016

Where did the installer write your libfreenect2.so file to? Or does the installer instead only write out a libfreenect2-0.0.0-py2.7.linux-x86_64.egg file?

@Myzhencai
Copy link

@m1lhaus ,I have the similar problem as you .Have you solved the issue?
/usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning: /home/gaofei/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)
Traceback (most recent call last):
File "test.py", line 6, in
import pyfreenect2
File "/home/gaofei/pyfreenect2/pyfreenect2.py", line 1, in
import _pyfreenect2
File "build/bdist.linux-x86_64/egg/_pyfreenect2.py", line 7, in
File "build/bdist.linux-x86_64/egg/_pyfreenect2.py", line 6, in bootstrap
ImportError: /home/gaofei/.python-eggs/pyfreenect2-0.0.0-py2.7-linux-x86_64.egg-tmp/_pyfreenect2.so: undefined symbol: _Z25getSPFrameMapFromFrameMapPSt3mapIN12libfreenect25Frame4TypeEPS1_St4lessIS2_ESaISt4pairIKS2_S3_EEE

@m1lhaus
Copy link
Author

m1lhaus commented Jan 4, 2018

@Myzhencai No, I ended up using C++ library. But from error name, I would recommend you check you _pyfreenect2.so library for getSPFrameMapFromFrameMap symbol name (just use whatever highperformace text editor you have - not gedit :D). Maybe method fingerprint changed or wrong binary version you are using.

@Myzhencai
Copy link

@m1lhaus I will try it ,many thanks .Have a nice day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants