Issue with ./compile.sh with the ArduCam ToF camera with Raspberry Pi 4 with Ubuntu Version 20

Hello,

On the microSD card, I flashed Ubuntu Version 20.04.5 for 64 bit and I am using a Raspberry Pi 4. I successfully installed ROS Noetic on it because I want to use rosbags. Now, 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, 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:

/home/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.
make[3]: *** [example/c/CMakeFiles/preview_depth_c.dir/build.make:63: example/c/CMakeFiles/preview_depth_c.dir/preview_depth.c.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:160: example/c/CMakeFiles/preview_depth_c.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:167: example/c/CMakeFiles/preview_depth_c.dir/rule] Error 2
make: *** [Makefile:118: preview_depth_c] Error 2
== Build failed

Thank you!

Hi,
We are updating the SDK for the TOF camera. As a result, the camera may not work with ROS for now. But don’t worry, we will get it sorted out ASAP.

Hello,
Any update on this? Getting same error without ROS.

I think so. First, I no longer use Ubuntu Version 20.0, I think the best is to use Ubuntu Version 22.0
As well, for the .sh file, if you are using a Raspberry Pi and Ubuntu system, do not use ./install_dependencies.sh, use the Jetson one. I got errors for both.
However, I opened the actual .sh file and individually installed each library or dependency listed in there. After that, everything worked for me, just make sure to read and go through the file carefully.
Then, run ./compile.sh. Not sure what your goal is in particular, but I assume it’s to run the camera module. If this doesn’t work, don’t use ./compile.sh, just use their Python script to run the camera module instead, which is in their documentation.

1 Like