aditof_sdk icon indicating copy to clipboard operation
aditof_sdk copied to clipboard

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

Open equus71rzero opened this issue 2 years ago • 1 comments

  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?

equus71rzero avatar Oct 11 '22 10:10 equus71rzero

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

oNevs avatar Oct 27 '22 06:10 oNevs