# Deepstream build environment / cross compile instructions for Jetson Xavier AGX

**URL:** <https://forums.developer.nvidia.com/t/deepstream-build-environment-cross-compile-instructions-for-jetson-xavier-agx/191683>\
**Category:** Jetson AGX Xavier\
**Tags:** compile\
**Created:** [October 10, 2021, 1:06pm UTC](https://forums.developer.nvidia.com/t/deepstream-build-environment-cross-compile-instructions-for-jetson-xavier-agx/191683 "2021-10-10T13:06:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtalreja\_a](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mtalreja\_a](https://forums.developer.nvidia.com/u/mtalreja_a)\
**Post date:** [October 10, 2021, 1:06pm UTC](https://forums.developer.nvidia.com/t/deepstream-build-environment-cross-compile-instructions-for-jetson-xavier-agx/191683/1 "2021-10-10T13:06:21Z")

</div>

Does anybody have instructions on how to set up a build environment under Linux (X64/ARM64) to build Deepstream apps without using the actual hardware or NSight? I can use an X64 or an ARM64 machine to perform this task.

Here are some things I have tried:

- Used the Deepstream Container image [Cloud-Native on Jetson | NVIDIA Developer](https://developer.nvidia.com/embedded/jetson-cloud-native). However this container does not have CUDA built in so any compilation results in a linker error because all the .so files are empty. Instructions at [Docker Containers — DeepStream 5.1 Release documentation (nvidia.com)](https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_docker_containers.html) say that you need to run the containers on the device since CUDA and other dependencies are loaded from the host.
- Used the CUDA Container image in the link above. However, it does not have many of the dependencies needed for Deepstream.
- I tried looking into most of the Docker files listed at [GitHub - dusty-nv/jetson-containers: Machine Learning Containers for NVIDIA Jetson and JetPack-L4T](https://github.com/dusty-nv/jetson-containers). I couldn’t find one that included DeepStream.
- I found this link but I did not see instructions on how the build would work for DeepStream: [TensorRT 5.1 Cross Compile for Jetson AGX Xavier - Jetson & Embedded Systems / Jetson AGX Xavier - NVIDIA Developer Forums](https://forums.developer.nvidia.com/t/tensorrt-5-1-cross-compile-for-jetson-agx-xavier/80516/12).
- I downloaded the development version of the dGPU Docker container with the assumption that I could cross compile in there but that has a newer version of CUDA built in (11 vs 10.2): [Docker Containers — DeepStream 5.1 Release documentation (nvidia.com)](https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_docker_containers.html)

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [October 12, 2021, 3:08am UTC](https://forums.developer.nvidia.com/t/deepstream-build-environment-cross-compile-instructions-for-jetson-xavier-agx/191683/3 "2021-10-12T03:08:18Z")

</div>

**There is no update from you for a period, assuming this is not an issue any more.  
Hence we are closing this topic. If need further support, please open a new one.  
Thanks**

Hi,

May I know more about your environment?

What kind of ARM64 machine do you use for cross-compiling?  
Is it an arm64-sbsa server?

More, for the x64 environment, do you have any dGPU connected?

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [November 4, 2021, 3:08am UTC](https://forums.developer.nvidia.com/t/deepstream-build-environment-cross-compile-instructions-for-jetson-xavier-agx/191683/5 "2021-11-04T03:08:22Z")

</div>

Closed on November 4, 2021, 3:08am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
