aditof_sdk
aditof_sdk copied to clipboard
"No cameras found" when I launch the first-frame example
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
How can I solve it? It says the camera is not found but the demo works correctly.
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)