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

"No cameras found" when I launch the first-frame example #812

Open saimonseas opened 1 year ago

saimonseas commented 1 year ago

Good morning, I am using an AD-FXTOF1-EBZ together with a Raspberry Pi 3. I installed the image and set up the system as described in:

https://wiki.analog.com/resources/eval/user-guides/ad-fxtof1-ebz/ug_rpi

"aditof-demo.sh" works correctly.

I downloaded the "aditof_sdk-master" folder from Github and put it in the Downloads folder of the Raspberry.

Inside this folder I created a "build" folder, entered the folder from the terminal by typing:

cd /home/pi/Downloads/aditof_sdk-master/build

and then

cmake -DUSE_FXTOF1=1 -DWITH_PYTHON=on -DWITH_EXAMPLES=on -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" .. cmake --build . --target install

at this point I enter the "first-frame" folder with the following command:

cd /home/pi/Downloads/aditof_sdk-master/build/examples/first-frame

And from inside the folder I launch the executable:

sudo ./first-frame

I get the following error WhatsApp Image 2023-06-01 at 10 58 08

How can I solve it? It says the camera is not found but the demo works correctly.

rbudai98 commented 1 year ago

Hi @saimonseas! Thanks for reaching out to us! During the build of the downloaded SDK, could you please try adding the -DRASPBERRYPI=1 flag to the cmake command? (Similar to this: https://github.com/analogdevicesinc/aditof_sdk/blob/master/doc/raspberrypi3/build_instructions.md#ad-fxtof1-ebz)