Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while building raspicam_node package on ros noetic in rpi with 64 bit raspbian OS #130

Open
SaailN opened this issue Aug 26, 2022 · 7 comments

Comments

@SaailN
Copy link

SaailN commented Aug 26, 2022

I tried building the package from source with ros noetic in rpi4 with 64 bit, downloaded all dependencies and libraries but while building catkin_make it builds completely but giving following error at the end:
/usr/bin/ld: /opt/vc/lib/libmmal.so: error adding symbols: file in wrong format
Also libmmal library is installed.
error

Also while running launch file i am getting the following error:
ERROR: cannot launch node of type [raspicam_node/raspicam_node]: Cannot locate node of type [raspicam_node] in package [raspicam_node]. Make sure file exists in package path and permission is set to executable (chmod +x)

@anfederman
Copy link

anfederman commented Aug 26, 2022 via email

@SaailN
Copy link
Author

SaailN commented Aug 27, 2022

instructions attached to build mmal library

On Fri, Aug 26, 2022 at 1:17 PM SaailN @.> wrote: I tried building the package from source on ros noetic in rpi4 with 64 bit, downloaded all dependencies and libraries but while building catkin_make it builds completely but given following error at the end: /usr/bin/ld: /opt/vc/lib/libmmal.so: error adding symbols: file in wrong format Also libmmal library is installed. [image: error] https://user-images.githubusercontent.com/40292489/186983895-9ddd768f-bb85-40d2-b320-c7c1da95ad8f.png Also while running launch file i am getting the following error: ERROR: cannot launch node of type [raspicam_node/raspicam_node]: Cannot locate node of type [raspicam_node] in package [raspicam_node]. Make sure file exists in package path and permission is set to executable (chmod +x) — Reply to this email directly, view it on GitHub <#130>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHZ37376AR6VEHZI4KKS6DV3EQ6DANCNFSM57X4M5YA . You are receiving this because you are subscribed to this thread.Message ID: @.>

@anfederman Could u tell where are the instructions?
libmmal library is already installed and its executable is present in /opt/vc/lib.
As per my findings( ref: raspberrypi/firmware#1558 (comment)) libmmal is not supported on rpi 64 bit, and libcamera is the supported solution.

@anfederman
Copy link

anfederman commented Aug 27, 2022 via email

@anfederman
Copy link

anfederman commented Aug 27, 2022 via email

@SaailN
Copy link
Author

SaailN commented Aug 27, 2022

If everything was built, then you should be able to run raspistill. If not, Raspicam won't work. Make sure that the vclib that gets built in snap gats copied to /opt. I have Raspicam working on a pi4 in both ARM32 and ARM64 Ubuntu 20.04 Noetic. It took me many months to get it to work on 64. Please be aware that Raspicam node will be deprecated and won't work on Ubuntu 22.

On Fri, Aug 26, 2022, 10:34 PM SaailN @.> wrote: instructions attached to build mmal library … <#m_872756034751677723_> On Fri, Aug 26, 2022 at 1:17 PM SaailN @.> wrote: I tried building the package from source on ros noetic in rpi4 with 64 bit, downloaded all dependencies and libraries but while building catkin_make it builds completely but given following error at the end: /usr/bin/ld: /opt/vc/lib/libmmal.so: error adding symbols: file in wrong format Also libmmal library is installed. [image: error] https://user-images.githubusercontent.com/40292489/186983895-9ddd768f-bb85-40d2-b320-c7c1da95ad8f.png https://user-images.githubusercontent.com/40292489/186983895-9ddd768f-bb85-40d2-b320-c7c1da95ad8f.png Also while running launch file i am getting the following error: ERROR: cannot launch node of type [raspicam_node/raspicam_node]: Cannot locate node of type [raspicam_node] in package [raspicam_node]. Make sure file exists in package path and permission is set to executable (chmod +x) — Reply to this email directly, view it on GitHub <#130 <#130>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHZ37376AR6VEHZI4KKS6DV3EQ6DANCNFSM57X4M5YA https://github.com/notifications/unsubscribe-auth/ABHZ37376AR6VEHZI4KKS6DV3EQ6DANCNFSM57X4M5YA . You are receiving this because you are subscribed to this thread.Message ID: @.> @anfederman https://github.com/anfederman Could u tell where are the instructions? libmmal library is already installed and its executable is present in /opt/vc/lib. As per my findings( ref: raspberrypi/firmware#1558 (comment) <raspberrypi/firmware#1558 (comment)>) libmmal is not supported on rpi 64 bit, and libcamera is the supported solution. — Reply to this email directly, view it on GitHub <#130 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHZ3752RPGSQ7SC6M6GHELV3GSF5ANCNFSM57X4M5YA . You are receiving this because you were mentioned.Message ID: @.**>

I am using raspbian os 64 bit. raspistill is not working with 64bit version. (ref: https://forums.raspberrypi.com/viewtopic.php?t=285868). Also rpi cam v2 is working fine with libcamera-hello command and picamera2 python module.

@anfederman
Copy link

I built on started with Ubuntu ARM64 server, not Raspian. I will translate my instructions to text and send the build from scratch instructions.

@anfederman
Copy link

anfederman commented Aug 28, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants