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

Unable to build librealsense on Nvidia Jetson TK1 #21

Closed
mtsakaguchi opened this issue Feb 4, 2016 · 3 comments
Closed

Unable to build librealsense on Nvidia Jetson TK1 #21

mtsakaguchi opened this issue Feb 4, 2016 · 3 comments
Labels

Comments

@mtsakaguchi
Copy link

Hello,

I am trying to install the drivers to get the RealSense R200 working on my Jetson TK1 board (ARM processor) which runs Ubuntu14.04 (Linux4Tegra). I'm having issues patching the uvcvideo.ko file. For the Video4Linux backend, when I run the "patch-uvcvideo-4.4.sh v4.4-wily" it hangs on when cloning the repository linux-v4.4-wily even though I've let it sit for a long period of time. In addition, when I try and use the "patch-ucvvideo-3.19.sh" script the patch cannot be applied because apt-get cannot retrieve a linux-image (which I believe is due to the fact that the Nvidia Linux4Tegra kernel is only available for download through the Nvidia site).

I've also tried the LibUVC backend but when I go to build "make BACKEND=LIBUVC" I get the error:

mkdir -p obj/libuvc
mkdir -p lib
mkdir -p bin
g++ src/context.cpp -std=c++11 -fPIC -pedantic -mssse3 -O3 -Wno-missing-field-initializers -Wno-switch -Wno-multichar -DRS_USE_LIBUVC_BACKEND pkg-config --cflags --libs libusb-1.0 -c -o obj/context.o
g++: error: unrecognized command line option '-mssse3'
make: *** [obj/context.o] Error 1

Any help would be greatly appreciated!

@teknotus
Copy link

teknotus commented Feb 4, 2016

I am trying to install the drivers to get the RealSense R200 working on
my Jetson TK1 board (ARM processor) which runs Ubuntu1404 (Linux4Tegra)

Currently librealsense won't build for ARM. It has some hand tuned intel
assembly for example. I've personally used the F200 on a Jetson TK1. It
seemed a little slow, but I didn't write any GPU code. It's on the low end
of what can handle the data rate. The required kernel patch is very similar
for R200 so I'm fairly certain it can be done. I partially automated the
kernel update process for F200.

https://github.com/teknotus/jetson-grinch-installer

@ddiakopoulos
Copy link
Contributor

You should reference issue #7. All of the existing scripts will work on standard x86 Ubuntu machines only. It is a good idea to run with the libuvc backend, but as noted in #7 and by @teknotus, you need to replace the yuyv=>rgb conversion routine (look back at the commit log for an implementation before we accelerated with SSE). The actual you are facing above is related to the fact your GCC compiler on ARM has no idea what SSSE3 instructions are -- you need to remove that flag and replace the conversion routine.

@ukamhou
Copy link

ukamhou commented Mar 4, 2016

Hi ddiakopoulos,

I am also trying to get this compiled on Tegra X1 processor, can you be more specific as for which commit log I should go back to? I tried searching for SSE in the commit log but couldn't find a match.

Also, if anyone has successfully modified the implementation, can you please post instructions in doing so. I think there are many people who would be interested in getting this to work on ARM platform.

Thanks in advance!

dorodnic added a commit that referenced this issue Aug 21, 2017
Stability, Bug fixes and code cleanup
dorodnic pushed a commit that referenced this issue Sep 6, 2018
Merge IntelRealSense/Development to abernste/Development
nhershko pushed a commit to nhershko/librealsense that referenced this issue Feb 23, 2020
…r_compression

add color compression with gzip
Nir-Az pushed a commit to Nir-Az/librealsense that referenced this issue Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants