# Building gst-nvarguscamerasrc r35.3.1 source code (potential bug?)

**URL:** <https://forums.developer.nvidia.com/t/building-gst-nvarguscamerasrc-r35-3-1-source-code-potential-bug/261889>\
**Category:** Jetson Xavier NX\
**Tags:** camera\
**Created:** [August 3, 2023, 5:10am UTC](https://forums.developer.nvidia.com/t/building-gst-nvarguscamerasrc-r35-3-1-source-code-potential-bug/261889 "2023-08-03T05:10:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elton3](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@elton3](https://forums.developer.nvidia.com/u/elton3)\
**Post date:** [August 3, 2023, 5:10am UTC](https://forums.developer.nvidia.com/t/building-gst-nvarguscamerasrc-r35-3-1-source-code-potential-bug/261889/1 "2023-08-03T05:10:03Z")

</div>

Hi,

I’m trying to compile gst-nvarguscamerasrc from source because I need to modify the hard-coded gain and exposure time ranges. I cloned the code from [https://nv-tegra.nvidia.com/r/tegra/gst-src/gst-nvarguscamera.git](https://nv-tegra.nvidia.com/r/tegra/gst-src/gst-nvarguscamera.git) and checkouted tag **jetson\_35.3.1**.

To make sure that this build process works, I first ran `make` and built a new `libgstnvarguscamerasrc.so` without changing any code. Then I proceeded to put this new .so file at `/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvarguscamerasrc.so`. My Jetson Linux version is R35.3.1.

I ran the following command to capture and save a test image:  
`gst-launch-1.0 nvarguscamerasrc sensor-id=0 num-buffers=1 ! "video/x-raw(memory:NVMM), format=(string)NV12, width=(int)3840, height=(int)2160" ! nvvidconv ! pngenc ! filesink location=test1.png`

Then I encountered this error:

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/c/5/e/c5efa0e7443be43b7d99e7402d67c50ad3e45fee.jpeg)

This command worked before I replaced the `libgstnvarguscamerasrc.so`

I noticed that the md5sum of the original libgstnvarguscamerasrc.so is identical to the one shipped in `Linux_for_Tegra/nv_tegra/nv_sample_apps/nvgstapps.tbz2` after nvgstapps.tbz2 is untarred by `apply_binaries.sh`. Note: this Linux\_for\_Tegra comes from the driver package (Jetson\_Linux\_R35.3.1\_aarch64.tbz2) downloaded from the office website.

The new libgstnvarguscamerasrc.so that I built however has a different checksum and it’s much bigger in size.

I have also compared the gst-nvarguscamerasrc source code (r35.3.1) that I cloned with the source code in gst-nvarguscamera\_src.tbz2 from the Driver Package source (public\_sources.tbz2 for 35.3.1) downloaded from the website. They are identical.

Another thing I have tried was building libgstnvarguscamerasrc.so for R35.1 from the source cloned from [https://nv-tegra.nvidia.com/r/tegra/gst-src/gst-nvarguscamera.git](https://nv-tegra.nvidia.com/r/tegra/gst-src/gst-nvarguscamera.git) and placing it onto a Jetson with r35.1. The gst capture command worked fine.

So is there a bug in the R35.3.1 gst-nvarguscamera source code?

Thanks

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [August 4, 2023, 4:11am UTC](https://forums.developer.nvidia.com/t/building-gst-nvarguscamerasrc-r35-3-1-source-code-potential-bug/261889/3 "2023-08-04T04:11:40Z")

</div>

Could you download the source from below instead of clone from the git to check.

Thanks

> **[Jetson Linux 35.3.1](https://developer.nvidia.com/embedded/jetson-linux-r3531)**
>
> NVIDIA® Jetson™ Linux Driver Package is the board support package for Jetson. It includes Linux Kernel, UEFI bootloader, NVIDIA drivers, flashing utilities, sample filesystem based on Ubuntu, and more for the Jetson platform. NVIDIA Jetson Linux...

---

<div class="post-metadata">

**Author:** ![elton3](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@elton3](https://forums.developer.nvidia.com/u/elton3)\
**Post date:** [August 4, 2023, 9:05pm UTC](https://forums.developer.nvidia.com/t/building-gst-nvarguscamerasrc-r35-3-1-source-code-potential-bug/261889/4 "2023-08-04T21:05:58Z")

</div>

I realized that the version of the dependencies very likely matter. I got it to work by building it on Jetson with R35.3.1. And I was building it on another Jetson with R35.1. Also the source code from git and from the downloaded tarball is the same.

---

<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:** [August 30, 2023, 1:07am UTC](https://forums.developer.nvidia.com/t/building-gst-nvarguscamerasrc-r35-3-1-source-code-potential-bug/261889/6 "2023-08-30T01:07:27Z")

</div>

Closed on August 30, 2023, 1:07am UTC

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