Catkin_make on a Raspberry Pi 4 gives error with ros-i2cpwmboard
This is a follow up from my previous question, about geometry_msgs not being found in catkin_ws, after I had installed ROS Noetic on a Raspberry Pi 4 Model B. The previous thread can be found here
I was able to get geometry_msgs by downloading common_msgs from the ROS Github page - though for some reason I couldn't download only the geometry_msgs folder and had to download the entire common_msgs package. However, catkin_make still does not work. I added geometry_msgs to the dependencies in the package.xml folder for the ros-i2cpwmboard package, and to the two lines in the CMakeList.txt for that package (which lines are specified in the previous thread). I end up getting this error:
/home/pi/catkin_ws/src/ros-i2cpwmboard/src/i2cpwm_controller.cpp:422:15:
error: ‘i2c_smbus_read_byte_data’ was not declared in this scope
oldmode = i2c_smbus_read_byte_data (_controller_io_handle, __MODE1);
^~~~~~~~~~~~~~~~~~~~~~~~
I looked at a similar thread with Opencv, but I don't think that thread applies to this package. Anyone know what could be the problem?