Setting up CUDA Cross-Compilation for Jetson TX2

Hello everyone,

I would like to write CUDA code for the Jetson TX2 using Eclipse Nsight + cross-compilation on my host computer. So far I have installed JetPack SDK on my host and the target using NVIDIA SDK Manager. I then wanted to perform the cross-compilation setup following the instructions of this blog article: https://devblogs.nvidia.com/cuda-jetson-nvidia-nsight-eclipse-edition/. Unfortunately, after the first steps I encountered some inconvenience. When I apply

# For Jetson TX1/TX2: 
$ sudo dpkg --add-architecture arm64
$ sudo apt-get update

on my host computer to add the foreign arm64 architecture I will receive these errors:

E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages 404  Not Found
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages 404  Not Found
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages 404  Not Found
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages 404  Not Found 
E: Some index files failed to download. They have been ignored, or old ones used instead.

Does anybody have an idea how to fix this?

Many thanks in advance!

Your Ubuntu mirror is not mirroring the arm64 binaries. You could use the US mirror for arm64. Edit /etc/apt/sources.list (or add to /etc/apt/sources.list.d/ to use a different mirror. I use this mirror:

deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ xenial multiverse