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

Problem with the aditofpython library #715

Open
ishopovs opened this issue Jul 17, 2024 · 3 comments
Open

Problem with the aditofpython library #715

ishopovs opened this issue Jul 17, 2024 · 3 comments

Comments

@ishopovs
Copy link

I followed the steps for manually building the SDK on Windows with examples and Python bindings, and the provided C++ examples work. I am testing the installation on Windows 10 with Python 3.12.4, using Visual Studio 2022, CMake 3.30.0, and pybind11 for Python bindings. The version of my SDK is 2.1.1 because it is compatible with the ToF module we have (ADTF3175 Crosby).

However, when I want to test the Python examples, the aditofpython library is not recognized. The setup.py script does not seem to install the aditofpython library correctly. Could you please provide some guidance on how to install aditofpython?

@SeptimiuVana
Copy link
Collaborator

Hello,

That script is for linux only. You should be able to run the scripts from the build folder.
The path should be build/bindings/python/examples.

All the binaries needed should be automatically copied right next to the script that you want to run.

Regards,
Septimiu.

@ishopovs
Copy link
Author

Hi,
Thank you for the explanation. After building the project in Visual Studio, I still do not find the binaries copied in the directories of the Python example scripts. In build/bindings/Release there are three files: aditofpython.exp, aditofpython.lib and aditofPythonNone. I tried copying them next to the scripts but it didn't help. Do you have any suggestions?

@SeptimiuVana
Copy link
Collaborator

Hello,

Please check if the python bindings are enabled in your cmake files.
You can set this parameter to on and rebuild the project if not:
https://github.com/analogdevicesinc/ToF/blob/main/CMakeLists.txt#L23

Regards,
Septimiu.

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

2 participants