Hello. I have just received my new Arducam ToF camera. My RPi4 detect it correctly but I get this when trying to compile the cam software:
[email protected]:~/Arducam_tof_camera $ ./compile.sh
– Configuring done
– Generating done
– Build files have been written to: /home/pi/Arducam_tof_camera/example/build
[ 20%] Built target test_c
[ 40%] Built target capture_raw
[ 60%] Built target preview_usb
[ 80%] Built target select_video_preview
[100%] Built target preview_depth
Unable to init server: No se pudo conectar: Conexión rehusada
terminate called after throwing an instance of ‘cv::Exception’
what(): OpenCV(4.5.1) …/modules/highgui/src/window_gtk.cpp:624: error: (-2:Unspecified error) Can’t initialize GTK backend in function ‘cvInitSystem’
I appreciate your help to fix this problem.
Thanks in advance!