Ask Your Question

raspberry pi cam node for melodic ubuntu 18.04 server

asked 2020-07-02 07:28:04 -0600

kallivalli gravatar image

updated 2020-07-03 05:12:11 -0600


I installed a fresh Ubuntu server 64-bit os with ubuntu melodic. I have raspberry pi camera v1.3, Is there any alternative of raspicam_node for melodic.

I tried to git clone raspicam_node on raspberry pi 4 but CMake error[ could not find mmal libraries ]

any suggestion what to do?

error :

image description

edit retag flag offensive close merge delete


Might help if you post the text of the error.

jordan gravatar image jordan  ( 2020-07-02 08:58:18 -0600 )edit

2 Answers

Sort by » oldest newest most voted

answered 2022-01-08 19:42:39 -0600

billnava gravatar image

sudo apt install libraspberrypi-dev libraspberrypi0 may help.

edit flag offensive delete link more

answered 2020-07-02 14:30:09 -0600

jordan gravatar image

I too had problems with raspicam_node on Pi4. So I fall back to trying to install similar to:




I then did the following step-by-step commands:

cd src/
git clone
cd userland/
git checkout 64bit_mmal
./buildme –aarch64
ls /opt/vc/bin/

find . -name

This now runs:

LD_PRELOAD=”/opt/vc/lib/ /opt/vc/lib/ /opt/vc/lib/ /opt/vc/lib/” /opt/vc/bin/raspistill -o cam.jpg

Which is a step closer. After fixing the runtime errors, it works.

Enable ROS raspicam_node

To enable rapicam_node, do the following steps:

cd catkin_ws/src/
git clone raspicam
cd ..
source devel/setup.bash
export LD_PRELOAD=”/opt/vc/lib/ /opt/vc/lib/ /opt/vc/lib/ /opt/vc/lib/”

rosrun raspicam raspicam_node _height:=1280 _width:=960

In another terminal:

rosservice call /camera/start_capture

There are more details here:

edit flag offensive delete link more


i had an error after ./buildme -arch64 in userland sectioninterface/khronos/CMakeFiles/khrn_client.dir/build.make:134: recipe for target 'interface/khronos/CMakeFiles/khrn_client.dir/common/khrn_int_hash_asm.s.o' failed so what to do it didnt compiled successfully

kallivalli gravatar image kallivalli  ( 2020-07-03 01:22:34 -0600 )edit

You might need to start with a fresh install of Ubuntu/ROS, as per:

It worked for me.

jordan gravatar image jordan  ( 2020-07-03 08:11:41 -0600 )edit

I dropped the plan of using raspicam_node, instead used usb_cam now it worked

kallivalli gravatar image kallivalli  ( 2020-07-15 23:12:46 -0600 )edit

There is a typo, it should be

./buildme --aarch64

double dash Then it compiles

Wintermute gravatar image Wintermute  ( 2020-08-14 05:12:07 -0600 )edit

I get this error for every command I type in the terminal after following the instructions /usr/bin/clear_console: error while loading shared libraries: cannot open shared object file: No such file or directory

I am using rasp4 with ubuntu 18.04 arm64

rezenders gravatar image rezenders  ( 2021-05-06 13:40:02 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-07-02 07:28:04 -0600

Seen: 2,124 times

Last updated: Jul 03 '20