analogdevicesinc / aditof_sdk

Analog Devices 3D ToF software suite
https://analogdevicesinc.github.io/aditof_sdk/
BSD 3-Clause "New" or "Revised" License
72 stars 49 forks source link

`undefined symbol` error on loading aditofpython with a fresh RPi image #805

Open equus71rzero opened 1 year ago

equus71rzero commented 1 year ago

1) I've installed a fresh image for RPi from https://swdownloads.analog.com/cse/aditof/raspberrypi-fxtof1-latest-image.tar.xz 2) I've plugged the camera according to the steps at https://wiki.analog.com/resources/eval/user-guides/ad-fxtof1-ebz/ug_rpi 3) I've started interactive python and at the attempt to load aditofpython I'm getting the undefined symbol error.

pi@raspberrypi:~ $ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import aditofpython as tof
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/python3.7/dist-packages/aditofpython.cpython-37m-arm-linux-gnueabihf.so: undefined symbol: _ZN6aditof6System10initializeEv

I have not modified the system (except configuring network). It is a fresh install. Should I install older image, install SDK manually, etc?

oNevs commented 1 year ago

You have to build the SDK with cmake parameter -DWITH_PYTHON=On Follow these instructions and add the parameter