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

Error compiling SDK Raspberry Pi 4 #9962

Closed
xandrei2772 opened this issue Nov 14, 2021 · 61 comments
Closed

Error compiling SDK Raspberry Pi 4 #9962

xandrei2772 opened this issue Nov 14, 2021 · 61 comments

Comments

@xandrei2772
Copy link

  • 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 :)


Required Info
Camera Model { R200 / F200 / SR300 / ZR300 / D400 }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version {Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform PC/Raspberry Pi/ NVIDIA Jetson / etc..
SDK Version { legacy / 2.. }
Language {C/C#/labview/nodejs/opencv/pcl/python/unity }
Segment {Robot/Smartphone/VR/AR/others }

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

@xandrei2772
Copy link
Author

I get stuck on the part when trying to install the realsense sdk:

cd ~/librealsense
mkdir build && cd build
cmake .. -DBUILD_EXAMPLES=true -DCMAKE_BUILD_TYPE=Release -DFORCE_LIBUVC=true
make -j1
sudo make install

I get to make -j1 and run into the error when its 80% done

@MartyG-RealSense
Copy link
Collaborator

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.

@xandrei2772
Copy link
Author

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.

@xandrei2772
Copy link
Author

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.

[ 56%] Linking CXX executable rs-hello-realsense /usr/bin/ld: ../../librealsense2.so.2.50.0: undefined reference to __atomic_load_8'
/usr/bin/ld: ../../librealsense2.so.2.50.0: undefined reference to __atomic_store_8' /usr/bin/ld: ../../librealsense2.so.2.50.0: undefined reference to __atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[2]: *** [examples/hello-realsense/CMakeFiles/rs-hello-realsense.dir/build.make:110: examples/hello-realsense/rs-hello-realsense] Error 1
make[1]: *** [CMakeFiles/Makefile2:1240: examples/hello-realsense/CMakeFiles/rs-hello-realsense.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
`

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Nov 15, 2021

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:

  1. Input the command below:

sudo apt-get install libatomic-ops-dev

  1. Add this line to the top of the CMakeLists.txt file:

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -latomic")

@xandrei2772
Copy link
Author

xandrei2772 commented Nov 15, 2021

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:

  1. Input the command below:

sudo apt-get install libatomic-ops-dev

  1. Add this line to the top of the CMakeLists.txt file:

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -latomic")

I've made the suggested changes and still getting the same error.

[ 56%] Linking CXX executable rs-hello-realsense
/usr/bin/ld: ../../librealsense2.so.2.50.0: undefined reference to `__atomic_load_8'
/usr/bin/ld: ../../librealsense2.so.2.50.0: undefined reference to `__atomic_store_8'
/usr/bin/ld: ../../librealsense2.so.2.50.0: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[2]: *** [examples/hello-realsense/CMakeFiles/rs-hello-realsense.dir/build.make:110: examples/hello-realsense/rs-hello-realsense] Error 1
make[1]: *** [CMakeFiles/Makefile2:1240: examples/hello-realsense/CMakeFiles/rs-hello-realsense.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

I installed libatomic-ops-dev and added in set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -latomic") to CMakeLists.txt which is located in the librealsense folder

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Nov 16, 2021

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

@debOliveira
Copy link

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 -DFORCE_LIBUVC=true like the Raspbian guide.

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?

@xandrei2772
Copy link
Author

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

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

@debOliveira
Copy link

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

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.
So that's not a release issue.

@xandrei2772
Copy link
Author

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

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. So that's not a release issue.

please let me know if you find a solution

@debOliveira
Copy link

please let me know if you find a solution

Until now, couldn't solve cmake problem. I wrote -latomic in all build lines in root, example, and wrapper folder. As for now, I'm working on an old image I saved from that SD card a couple of weeks ago.

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.

@MartyG-RealSense
Copy link
Collaborator

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?

@MartyG-RealSense
Copy link
Collaborator

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.

@debOliveira
Copy link

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.

@MartyG-RealSense
Copy link
Collaborator

Hi @xandrei2772 Do you have any positive progress to report, please? Thanks!

@xandrei2772
Copy link
Author

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

@MartyG-RealSense
Copy link
Collaborator

Thanks very much - good luck!

@hervst
Copy link

hervst commented Nov 24, 2021

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.

@xandrei2772
Copy link
Author

Thanks very much - good luck!

Hey so im trying to install it on ubuntu and everything was going fine until i ran the following command:
sudo -H pip3 install pyopengl_accelerate==3.1.3rc1

I got a lot of errors:

(name)@(name)-desktop:~/Work/librealsense/build$ sudo -H pip3 install pyopengl_accelerate==3.1.3rc1
Collecting pyopengl_accelerate==3.1.3rc1
  Using cached PyOpenGL-accelerate-3.1.3rc1.tar.gz (532 kB)
Building wheels for collected packages: pyopengl-accelerate
  Building wheel for pyopengl-accelerate (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-m3zg89pv
       cwd: /tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c/
  Complete output (175 lines):
  Unable to import numpy, skipping numpy extension building
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.9
  creating build/lib.linux-aarch64-3.9/OpenGL_accelerate
  copying OpenGL_accelerate/__init__.py -> build/lib.linux-aarch64-3.9/OpenGL_accelerate
  running build_ext
  building 'OpenGL_accelerate.wrapper' extension
  creating build/temp.linux-aarch64-3.9
  creating build/temp.linux-aarch64-3.9/src
  aarch64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c/.. -I/tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c/src -I/tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c -I/usr/include/python3.9 -c src/wrapper.c -o build/temp.linux-aarch64-3.9/src/wrapper.o
  src/wrapper.c: In function ‘__Pyx_modinit_type_init_code’:
  src/wrapper.c:24653:56: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24653 |   __pyx_type_17OpenGL_accelerate_7wrapper_cArgConverter.tp_print = 0;
        |                                                        ^
  src/wrapper.c:24674:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24674 |   __pyx_type_17OpenGL_accelerate_7wrapper_pyArgConverter.tp_print = 0;
        |                                                         ^
  src/wrapper.c:24695:61: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24695 |   __pyx_type_17OpenGL_accelerate_7wrapper_cArgumentConverter.tp_print = 0;
        |                                                             ^
  src/wrapper.c:24716:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24716 |   __pyx_type_17OpenGL_accelerate_7wrapper_returnConverter.tp_print = 0;
        |                                                          ^
  src/wrapper.c:24737:64: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24737 |   __pyx_type_17OpenGL_accelerate_7wrapper_CArgCalculatorElement.tp_print = 0;
        |                                                                ^
  src/wrapper.c:24758:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24758 |   __pyx_type_17OpenGL_accelerate_7wrapper_CArgCalculator.tp_print = 0;
        |                                                         ^
  src/wrapper.c:24769:65: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24769 |   __pyx_type_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement.tp_print = 0;
        |                                                                 ^
  src/wrapper.c:24790:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24790 |   __pyx_type_17OpenGL_accelerate_7wrapper_PyArgCalculator.tp_print = 0;
        |                                                          ^
  src/wrapper.c:24801:62: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24801 |   __pyx_type_17OpenGL_accelerate_7wrapper_CArgumentCalculator.tp_print = 0;
        |                                                              ^
  src/wrapper.c:24814:62: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24814 |   __pyx_type_17OpenGL_accelerate_7wrapper_CallFuncPyConverter.tp_print = 0;
        |                                                              ^
  src/wrapper.c:24847:60: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24847 |   __pyx_type_17OpenGL_accelerate_7wrapper_DefaultCConverter.tp_print = 0;
        |                                                            ^
  src/wrapper.c:24866:50: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24866 |   __pyx_type_17OpenGL_accelerate_7wrapper_Wrapper.tp_print = 0;
        |                                                  ^
  src/wrapper.c:24878:56: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24878 |   __pyx_type_17OpenGL_accelerate_7wrapper_getPyArgsName.tp_print = 0;
        |                                                        ^
  src/wrapper.c:24891:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24891 |   __pyx_type_17OpenGL_accelerate_7wrapper_returnPyArgument.tp_print = 0;
        |                                                           ^
  src/wrapper.c:24904:64: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24904 |   __pyx_type_17OpenGL_accelerate_7wrapper_returnPyArgumentIndex.tp_print = 0;
        |                                                                ^
  src/wrapper.c:24917:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24917 |   __pyx_type_17OpenGL_accelerate_7wrapper_returnCArgument.tp_print = 0;
        |                                                          ^
  src/wrapper.c:24926:54: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  24926 |   __pyx_type_17OpenGL_accelerate_7wrapper_MultiReturn.tp_print = 0;
        |                                                      ^
  src/wrapper.c: In function ‘__Pyx_ParseOptionalKeywords’:
  src/wrapper.c:25572:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  25572 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                     ^
  In file included from /usr/include/python3.9/unicodeobject.h:1026,
                   from /usr/include/python3.9/Python.h:106,
                   from src/wrapper.c:4:
  /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  src/wrapper.c:25572:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
  25572 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                     ^
  In file included from /usr/include/python3.9/unicodeobject.h:1026,
                   from /usr/include/python3.9/Python.h:106,
                   from src/wrapper.c:4:
  /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
    580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
        |                                             ^~~~~~~~~~~~~~~~~~~
  src/wrapper.c:25572:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  25572 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                     ^
  In file included from /usr/include/python3.9/unicodeobject.h:1026,
                   from /usr/include/python3.9/Python.h:106,
                   from src/wrapper.c:4:
  /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  src/wrapper.c:25572:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  25572 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                     ^
  In file included from /usr/include/python3.9/unicodeobject.h:1026,
                   from /usr/include/python3.9/Python.h:106,
                   from src/wrapper.c:4:
  /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  src/wrapper.c:25572:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
  25572 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                     ^
  In file included from /usr/include/python3.9/unicodeobject.h:1026,
                   from /usr/include/python3.9/Python.h:106,
                   from src/wrapper.c:4:
  /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
    580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
        |                                             ^~~~~~~~~~~~~~~~~~~
  src/wrapper.c:25572:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  25572 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                     ^
  In file included from /usr/include/python3.9/unicodeobject.h:1026,
                   from /usr/include/python3.9/Python.h:106,
                   from src/wrapper.c:4:
  /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  src/wrapper.c:25588:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  25588 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                         ^
  In file included from /usr/include/python3.9/unicodeobject.h:1026,
                   from /usr/include/python3.9/Python.h:106,
                   from src/wrapper.c:4:
  /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  src/wrapper.c:25588:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
  25588 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                         ^
  In file included from /usr/include/python3.9/unicodeobject.h:1026,
                   from /usr/include/python3.9/Python.h:106,
                   from src/wrapper.c:4:
  /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
    580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
        |                                             ^~~~~~~~~~~~~~~~~~~
  src/wrapper.c:25588:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  25588 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                         ^
  In file included from /usr/include/python3.9/unicodeobject.h:1026,
                   from /usr/include/python3.9/Python.h:106,
                   from src/wrapper.c:4:
  /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  src/wrapper.c:25588:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  25588 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                         ^
  In file included from /usr/include/python3.9/unicodeobject.h:1026,
                   from /usr/include/python3.9/Python.h:106,
                   from src/wrapper.c:4:
  /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  src/wrapper.c:25588:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
  25588 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                         ^
  In file included from /usr/include/python3.9/unicodeobject.h:1026,
                   from /usr/include/python3.9/Python.h:106,
                   from src/wrapper.c:4:
  /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
    580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
        |                                             ^~~~~~~~~~~~~~~~~~~
  src/wrapper.c:25588:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  25588 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                         ^
  In file included from /usr/include/python3.9/unicodeobject.h:1026,
                   from /usr/include/python3.9/Python.h:106,
                   from src/wrapper.c:4:
  /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for pyopengl-accelerate
  Running setup.py clean for pyopengl-accelerate
Failed to build pyopengl-accelerate
Installing collected packages: pyopengl-accelerate
    Running setup.py install for pyopengl-accelerate ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ibqqr8hy/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pyopengl-accelerate
         cwd: /tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c/
    Complete output (175 lines):
    Unable to import numpy, skipping numpy extension building
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-aarch64-3.9
    creating build/lib.linux-aarch64-3.9/OpenGL_accelerate
    copying OpenGL_accelerate/__init__.py -> build/lib.linux-aarch64-3.9/OpenGL_accelerate
    running build_ext
    building 'OpenGL_accelerate.wrapper' extension
    creating build/temp.linux-aarch64-3.9
    creating build/temp.linux-aarch64-3.9/src
    aarch64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c/.. -I/tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c/src -I/tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c -I/usr/include/python3.9 -c src/wrapper.c -o build/temp.linux-aarch64-3.9/src/wrapper.o
    src/wrapper.c: In function ‘__Pyx_modinit_type_init_code’:
    src/wrapper.c:24653:56: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24653 |   __pyx_type_17OpenGL_accelerate_7wrapper_cArgConverter.tp_print = 0;
          |                                                        ^
    src/wrapper.c:24674:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24674 |   __pyx_type_17OpenGL_accelerate_7wrapper_pyArgConverter.tp_print = 0;
          |                                                         ^
    src/wrapper.c:24695:61: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24695 |   __pyx_type_17OpenGL_accelerate_7wrapper_cArgumentConverter.tp_print = 0;
          |                                                             ^
    src/wrapper.c:24716:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24716 |   __pyx_type_17OpenGL_accelerate_7wrapper_returnConverter.tp_print = 0;
          |                                                          ^
    src/wrapper.c:24737:64: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24737 |   __pyx_type_17OpenGL_accelerate_7wrapper_CArgCalculatorElement.tp_print = 0;
          |                                                                ^
    src/wrapper.c:24758:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24758 |   __pyx_type_17OpenGL_accelerate_7wrapper_CArgCalculator.tp_print = 0;
          |                                                         ^
    src/wrapper.c:24769:65: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24769 |   __pyx_type_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement.tp_print = 0;
          |                                                                 ^
    src/wrapper.c:24790:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24790 |   __pyx_type_17OpenGL_accelerate_7wrapper_PyArgCalculator.tp_print = 0;
          |                                                          ^
    src/wrapper.c:24801:62: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24801 |   __pyx_type_17OpenGL_accelerate_7wrapper_CArgumentCalculator.tp_print = 0;
          |                                                              ^
    src/wrapper.c:24814:62: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24814 |   __pyx_type_17OpenGL_accelerate_7wrapper_CallFuncPyConverter.tp_print = 0;
          |                                                              ^
    src/wrapper.c:24847:60: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24847 |   __pyx_type_17OpenGL_accelerate_7wrapper_DefaultCConverter.tp_print = 0;
          |                                                            ^
    src/wrapper.c:24866:50: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24866 |   __pyx_type_17OpenGL_accelerate_7wrapper_Wrapper.tp_print = 0;
          |                                                  ^
    src/wrapper.c:24878:56: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24878 |   __pyx_type_17OpenGL_accelerate_7wrapper_getPyArgsName.tp_print = 0;
          |                                                        ^
    src/wrapper.c:24891:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24891 |   __pyx_type_17OpenGL_accelerate_7wrapper_returnPyArgument.tp_print = 0;
          |                                                           ^
    src/wrapper.c:24904:64: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24904 |   __pyx_type_17OpenGL_accelerate_7wrapper_returnPyArgumentIndex.tp_print = 0;
          |                                                                ^
    src/wrapper.c:24917:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24917 |   __pyx_type_17OpenGL_accelerate_7wrapper_returnCArgument.tp_print = 0;
          |                                                          ^
    src/wrapper.c:24926:54: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    24926 |   __pyx_type_17OpenGL_accelerate_7wrapper_MultiReturn.tp_print = 0;
          |                                                      ^
    src/wrapper.c: In function ‘__Pyx_ParseOptionalKeywords’:
    src/wrapper.c:25572:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    25572 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from src/wrapper.c:4:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    src/wrapper.c:25572:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
    25572 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from src/wrapper.c:4:
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    src/wrapper.c:25572:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    25572 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from src/wrapper.c:4:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    src/wrapper.c:25572:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    25572 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from src/wrapper.c:4:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    src/wrapper.c:25572:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
    25572 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from src/wrapper.c:4:
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    src/wrapper.c:25572:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    25572 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from src/wrapper.c:4:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    src/wrapper.c:25588:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    25588 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from src/wrapper.c:4:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    src/wrapper.c:25588:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
    25588 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from src/wrapper.c:4:
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    src/wrapper.c:25588:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    25588 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from src/wrapper.c:4:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    src/wrapper.c:25588:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    25588 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from src/wrapper.c:4:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    src/wrapper.c:25588:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
    25588 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from src/wrapper.c:4:
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    src/wrapper.c:25588:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
    25588 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from src/wrapper.c:4:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-04z9ijyb/pyopengl-accelerate_f3e5be8205834820ba90cc2c609cad1c/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ibqqr8hy/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pyopengl-accelerate Check the logs for full command output.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Nov 26, 2021

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.

https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_raspbian.md#change-pi-settings-enable-opengl

@xandrei2772
Copy link
Author

xandrei2772 commented Nov 26, 2021

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.

https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_raspbian.md#change-pi-settings-enable-opengl

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

@MartyG-RealSense
Copy link
Collaborator

Before opening the GL driver tab, did you install raspi-config with the instruction below?

sudo raspi-config

@xandrei2772
Copy link
Author

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

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Nov 26, 2021

One person who had this error on Pi resolved it by updating their kernel.

A procedure for updating a Pi is below.

sudo apt update
sudo apt full-upgrade

@xandrei2772
Copy link
Author

One person who had this error on Pi resolved it by updating their kernel.

A procedure for updating a Pi is below.

sudo apt update
sudo apt full-upgrade

just after trying out the 2 commands you suggested and im still encountering the same issue

@xandrei2772
Copy link
Author

One person who had this error on Pi resolved it by updating their kernel.

A procedure for updating a Pi is below.

sudo apt update
sudo apt full-upgrade

found a forum where someone had the same issue but im having a hard time understanding the solution,
https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Nov 26, 2021

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.

sudo apt-get install mesa-utils

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Nov 30, 2021

Hi @waversrijan Which guide for installing the SDK on Raspbian are you using, please?

@waversrijan
Copy link

Hi @waversrijan Which guide for installing the SDK on Raspbian are you using, please?

this one:
https://github.com/acrobotic/Ai_Demos_RPi/wiki/Raspberry-Pi-4-and-Intel-RealSense-D435

@MartyG-RealSense
Copy link
Collaborator

@waversrijan Have you tried the libuvc backend installation method yet?

https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md

@waversrijan
Copy link

@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.

@waversrijan
Copy link

Have you tried the libuvc backend installation method yet?
https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md

@MartyG-RealSense it didn’t work. Still the same error.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Dec 2, 2021

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.

https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md#building-librealsense2-sdk

@MartyG-RealSense
Copy link
Collaborator

Hi @waversrijan Do you require further assistance with this case, please? Thanks!

@waversrijan
Copy link

Hi @waversrijan Do you require further assistance with this case, please? Thanks!

No

@MartyG-RealSense
Copy link
Collaborator

@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!

@waversrijan
Copy link

@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.

@MartyG-RealSense
Copy link
Collaborator

Hi @waversrijan Do you have an update about this case that you can provide, please? Thanks!

@zainmehdi
Copy link

Having the same issue ? Can anyone provide any update on this ?

@waversrijan
Copy link

waversrijan commented Dec 16, 2021

Hi @waversrijan Do you have an update about this case that you can provide, please? Thanks!

I’ve put the project on pause for now. No progress.

@MartyG-RealSense
Copy link
Collaborator

Okay, thanks very much @waversrijan for the update. I'm sorry that you haven't achieved the hoped-for outcome so far.

@waversrijan
Copy link

waversrijan commented Dec 16, 2021

@MartyG-RealSense @zainmehdi I got it to work. I downloaded the preloaded sd card img and went into the build directory and started installation.

https://dev.intelrealsense.com/docs/open-source-ethernet-networking-for-intel-realsense-depth-cameras?_ga=2.233919451.437300906.1639682000-1239850054.1639682000#section-2-3-preparing-the-sd-card

@MartyG-RealSense
Copy link
Collaborator

I'm pleased that you found a working solution, @waversrijan :)

@waversrijan
Copy link

I'm pleased that you found a working solution, @waversrijan :)

I appreciate your help.

@devenjarvis
Copy link

devenjarvis commented Dec 21, 2021

So I've been hitting the undefined reference to '__atomic_load_8' error for a few weeks now. After trying all the CMakeLists modifications that should have fixed it but didn't and tracking a similar issue across other libraries for pi users over the past few months I narrowed it down to some sort of issue with the version of gcc that is on the latest Raspbian. I'm not sure exactly the root cause, but I was finally able to successfully build librealsense on Rasbian on a 32bit Raspbian OS by using Clang instead of gcc with the following steps:

(git cloned the repo in my home dir, installed protobufs, etc per normal instructions)
sudo apt install clang llvm
cd ~/librealsense
mkdir build
cd build
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
cmake .. -DBUILD_EXAMPLES=true -DCMAKE_BUILD_TYPE=Release -DFORCE_LIBUVC=true -DOTHER_LIBS="-latomic" (I'm not sure that the DOTHER_LIBS flag is required, but I had it from previous attempts to fixing this and it worked so I'm leaving it)
make -j4
sudo make install

Hope this helps the original issue creator and/or others who are battling this issue on the Raspberry Pi right now.

@zainmehdi
Copy link

@devenjarvis Thanks alot you are a life saver. Worked for me too. :D

@MartyG-RealSense
Copy link
Collaborator

Thanks so much @devenjarvis for your helpful advice to this discussion!

@MartyG-RealSense
Copy link
Collaborator

@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!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

@uzgit
Copy link

uzgit commented Jun 22, 2022

@devenjarvis This solution worked for me as well. Thanks!

@mathklk
Copy link

mathklk commented Dec 2, 2022

@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.

@jeojeda
Copy link

jeojeda commented May 15, 2023

@mathklk Do you have the code you used to do the correct installation? I'm still having the problem mentioned above.

@mathklk
Copy link

mathklk commented May 15, 2023

@jeojeda Have a look at this guide I created https://github.com/mathklk/realsense_raspberry_pi4

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

No branches or pull requests

10 participants