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

Building Python bindings #793

Closed mejusmajus closed 2 years ago

mejusmajus commented 2 years ago

I have installed the sdk as described in the readme for windos. Then I executed the given commands for creating the Python library. https://github.com/analogdevicesinc/aditof_sdk/tree/master/bindings/python After that I copied the aditofpython library and pasted it in the directory of the First Frame example script. However, the library cannot be opened in the Python script. Why can't the library be opened ? Is there anything i missed?

Thanks in advance

SeptimiuVana commented 2 years ago

Hello,

Can you copy the aditof.dll/so generated next to the script as well?

mejusmajus commented 2 years ago

I copied all files to the sample project first frame, but the library is still not found. image

I did the same thing on the raspberry pi, there it worked.

SeptimiuVana commented 2 years ago

Did you copy aditof.dll from aditof_sdk\build\sdk\Debug as well?

If so there might be a problem with the python versions, please verify if the version used to build the adaptor is the same as the one you use to run the script.

mejusmajus commented 2 years ago

ohh thank you very much copy the aditof.dll from aditof_sdk\build\sdk\Debug was the solution for my problem