-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Error compiling SDK Raspberry Pi 4 #9962
Comments
I get stuck on the part when trying to install the realsense sdk: cd ~/librealsense I get to make -j1 and run into the error when its 80% done |
Hi @xandrei2772 You may have a smoother build experience if you use a more recent version of protobuf, such as 3.14 git clone --depth=1 -b v3.14.0 https://github.com/google/protobuf.git Using the -j make instruction can also cause random crashes during the build process on low-power devices. So you could try simply inputting make without the -j1 part, though the build time may be longer. |
Have made the changes you suggested and im still getting the same error. |
|
I have not seen these latomic errors on Raspberry Pi installations since 2019. An example case that discusses the subject is #4950 The most commonly suggested solution for the latomic errors was the following two steps:
sudo apt-get install libatomic-ops-dev
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -latomic") |
I've made the suggested changes and still getting the same error.
I installed libatomic-ops-dev and added in |
As mentioned earlier, latomic is a rare error that mostly has not been seen since 2019. This suggests that something may have gone wrong during following the Acrobotic installation guide. Sometimes if an installation is not working and you have tried every known fix, just wiping everything and re-installing from the very beginning can cause it to suddenly work. Before doing that though, you could see whether the libuvc backend method (the predecessor of RSUSB) in the link below works for you. https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md |
Hi @MartyG-RealSense , I'm having the same problem here. I've wiped everything twice. Just for info, I'm using protobuf 3.10 as told in #5092 and the flag Couple of weeks ago I did the same process on a smaller SD card (not changing a cmd line) and it came out clean. It is possible that this is a problem of the latest release? |
Hello Again, I've just started my pi from scratch, installed rasbian again and tried following the guide instructions for installing the realsense camera. Unfortunately I ran into the same issue https://imgur.com/a/vGiFWMB |
Also had the same issue downgrading the librealsense to 2.49.0 and upgrading protobuf to 3.14.0. |
please let me know if you find a solution |
Until now, couldn't solve cmake problem. I wrote What is strange is that, just two weeks ago, all the commands were working fine. Have no idea which lib updated and crashed the build setup. |
Would it be practical for you to attempt a Pi installation with Ubuntu Server 20.04 instead of Raspian OS using the information referenced in IntelRealSense/realsense-ros#1724 or is Raspbian a requirement of your projects? |
Another RealSense user with a Pi was having similar installation errors with the new Raspbian OS Bullseye on SDK 2.49.0 in the recent case #9943 They were able to compile the SDK in Raspian Buster and then copy 2 binary files to Bullseye, as described in #9943 (comment) and attributed their compilation problems to their gcc version. |
As I said, I managed to workaround copying an old SD card image (with pyrealsense already compiled from two weeks ago). But this doesn't solve the building problem for Raspbian OS. |
Hi @xandrei2772 Do you have any positive progress to report, please? Thanks! |
Hi i've installed ubuntu and now currently installing all the packages for the camera, will let you know how i get on in a bit. |
Thanks very much - good luck! |
Hello, I ran into the same issue a few days ago too. I also copied an earlier compiled version of the RealSense SDK to my Raspberry Pi as workaround. Today I installed the Raspberry Pi OS 64 Bit (as far as I know in Beta state) version on my Raspberry Pi to do some tests. Fortunately the RealSense SDK compiled without any error. Maybe it was by chance and the issue with a package is fixed already but maybe this issue only affects the 32 Bit version of Raspberry Pi OS? Another difference between the two builds was that I used the lite version of the Raspberry Pi OS 64 Bit. For 32 bit is used the version with desktop environment (but not "full"). I hope this will help to fix the issue. |
Hey so im trying to install it on ubuntu and everything was going fine until i ran the following command: I got a lot of errors:
|
Hi @xandrei2772 Does it make any difference if you install pyopengl_accelerate without specifying a version? sudo -H pip3 install pyopengl_accelerate This version of the command is used by Intel's official RealSense Raspbian installation guide for Pi 3. |
thats perfect thanks, i went ahead and ran that command worked perfectly! running into a different error now, im trying to enable OpenGL by going into raspi-config > advanced opentiosn > GL driver > GL (Fake KMS) soon as i open gl driver tab i get a message saying "Driver and kernel not present on your system. please update." cant seem to find much written about this online |
Before opening the GL driver tab, did you install raspi-config with the instruction below? sudo raspi-config |
yes i ran sudo raspi-config error pic: http://prntscr.com/20xbrkh |
One person who had this error on Pi resolved it by updating their kernel. A procedure for updating a Pi is below.
|
just after trying out the 2 commands you suggested and im still encountering the same issue |
found a forum where someone had the same issue but im having a hard time understanding the solution, |
I could not determine a clear solution from the linked page either, though as it is related to Mender ("an open source over-the-air (OTA) software updater for embedded Linux devices"), the advice on that page may not be relevant to our particular case. Next, could you try installing the OpenGL graphics drivers and then try opening the GL driver tab again afterwards.
|
Hi @waversrijan Which guide for installing the SDK on Raspbian are you using, please? |
this one: |
@waversrijan Have you tried the libuvc backend installation method yet? https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md |
@MartyG-RealSense yes I did. It resulted in the same error. I reinstalled the OS and am trying again. Will update if there’s any progress. |
@MartyG-RealSense it didn’t work. Still the same error. |
There was a RealSense user with these three undefined reference errors (load, store. fetch) at alexa/avs-device-sdk#1404 (comment) who resolved them by updating their gcc version to gcc-5. This gcc update process is also described in Intel's installation documentation in the link below. |
Hi @waversrijan Do you require further assistance with this case, please? Thanks! |
No |
@waversrijan Thanks very much for the update! @xandrei2772 As the creator of this case, do you still have a problem that needs to be resolved, please? #9962 (comment) was the most recent message that I sent you. Thanks! |
It didn’t work. I will be trying a different pi and os to see if there will be progress. |
Hi @waversrijan Do you have an update about this case that you can provide, please? Thanks! |
Having the same issue ? Can anyone provide any update on this ? |
I’ve put the project on pause for now. No progress. |
Okay, thanks very much @waversrijan for the update. I'm sorry that you haven't achieved the hoped-for outcome so far. |
@MartyG-RealSense @zainmehdi I got it to work. I downloaded the preloaded sd card img and went into the build directory and started installation. |
I'm pleased that you found a working solution, @waversrijan :) |
I appreciate your help. |
So I've been hitting the (git cloned the repo in my home dir, installed protobufs, etc per normal instructions) Hope this helps the original issue creator and/or others who are battling this issue on the Raspberry Pi right now. |
@devenjarvis Thanks alot you are a life saver. Worked for me too. :D |
Thanks so much @devenjarvis for your helpful advice to this discussion! |
@xandrei2772 Can you confirm whether you were able to achieve a solution on this case, please? Otherwise, the case will be closed after a week from the time of writing this if we do not hear from you. Thanks! |
Case closed due to no further comments received. |
@devenjarvis This solution worked for me as well. Thanks! |
@devenjarvis Thanks a lot, this worked for me! Just make sure to start with an empty build directory. I had an issue that was caused by some cached files laying around. |
@mathklk Do you have the code you used to do the correct installation? I'm still having the problem mentioned above. |
@jeojeda Have a look at this guide I created https://github.com/mathklk/realsense_raspberry_pi4 |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
Trying to follow this installation guide for the realsense camera guide
I keep running into this error, wondering if anyone knows how to fix this?
Error
The text was updated successfully, but these errors were encountered: