ArduCAM / Arducam_tof_camera

53 stars 21 forks source link

Running camera module and interface on Raspberry Pi 4 with Ubuntu Version 22 Desktop #87

Open maureen-sun-0812 opened 3 months ago

maureen-sun-0812 commented 3 months ago

Hello!

On the microSD card, I flashed Ubuntu Version 22.04.5 for 64 bit and I am using a Raspberry Pi 4. All I need to do is turn on the camera module and record my findings. I have followed the official documentation and the module was working on the default Raspberry Pi OS Interface (link: https://docs.arducam.com/Raspberry-Pi-Camera/Tof-camera/Getting-Started/) But now, I am getting the same error over and over again. I have re-cloned the repo, started over many times, but keep getting this error. When I try to run ./compile.sh, it just gives me this error:

raspberrypi@raspberrypi:~/Arducam_tof_camera$ ./compile.sh
workpath: /home/msun/Arducam_tof_camera
CMake Warning at pcl_preview/CMakeLists.txt:33 (message):
  PCL point cloud preview need libpcl!

-- Configuring done
-- Generating done
-- Build files have been written to: /home/msun/Arducam_tof_camera/build
Consolidate compiler generated dependencies of target example
[100%] Built target example
[ 50%] Building C object example/c/CMakeFiles/preview_depth_c.dir/preview_depth.c.o
/home/msun/Arducam_tof_camera/example/c/preview_depth.c:1:10: fatal error: ArducamDepthCamera.h: No such file or directory
    1 | #include "ArducamDepthCamera.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[3]: *** [example/c/CMakeFiles/preview_depth_c.dir/build.make:76: example/c/CMakeFiles/preview_depth_c.dir/preview_depth.c.o] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:155: example/c/CMakeFiles/preview_depth_c.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:162: example/c/CMakeFiles/preview_depth_c.dir/rule] Error 2
gmake: *** [Makefile:124: preview_depth_c] Error 2
== Build failed

I have tried pip3 install opencv-python ArducamDepthCamera and it says that it is properly installed, but I am still getting the same errors above. I am also getting this error so it might be a firmware issue, but I can't find anything to solve it either! :

raspberrypi@raspberrypi:~/B0410_Tof_Firmware/aarch64/b0410_tof_firmware$ dmesg | grep arducam
dmesg: read kernel buffer failed: Operation not permitted

please help! thank you.

zoldaten commented 2 months ago

have you checked pyhton version ? is it working ?

*sudo dmesg | grep arducam - check if arducam installed