# Jpeg encoder cross compile result problem

**URL:** <https://forums.developer.nvidia.com/t/jpeg-encoder-cross-compile-result-problem/257095>\
**Category:** Jetson AGX Xavier\
**Tags:** encoder, mmapi\
**Created:** [June 19, 2023, 6:24am UTC](https://forums.developer.nvidia.com/t/jpeg-encoder-cross-compile-result-problem/257095 "2023-06-19T06:24:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiangernan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@xiangernan](https://forums.developer.nvidia.com/u/xiangernan)\
**Post date:** [June 19, 2023, 6:24am UTC](https://forums.developer.nvidia.com/t/jpeg-encoder-cross-compile-result-problem/257095/1 "2023-06-19T06:24:02Z")

</div>

Hi nvidia:  
I can compile and run jetson\_multimedia\_api 05\_jpeg\_encode example and the result .jpeg is shown as picture 1. But when I move the same code to a X86 linux server and use gcc-linaro-7.5.0-2019.12-x86\_64\_aarch64-linux-gnu cross compile tool to compile. The result .jpeg is shown as picture 2. I have moved most includes and libraries form board to cross compile environment. I don’t konw what I missed leads to the weird color.  
I hope you can give me some clues or hints, like some .h or .so issue. Thanks!

My platform is jetson xavier agx, R32.7.2.

 ![picture1](https://global.discourse-cdn.com/nvidia/original/4X/6/e/f/6ef940a4c3966882ecaf2aa9abe3e428f95e4701.jpeg)  
 ![picture2](https://global.discourse-cdn.com/nvidia/original/4X/3/4/5/345bd60479d9e64f9846b3281feecb5c2e9bb1ba.jpeg)

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [June 19, 2023, 7:17am UTC](https://forums.developer.nvidia.com/t/jpeg-encoder-cross-compile-result-problem/257095/3 "2023-06-19T07:17:40Z")

</div>

Hi,  
We have the steps in document for setting up cross platform. Please take a look and give it a try:  
[Jetson Linux API Reference: Setting Up Cross-Platform Support](https://docs.nvidia.com/jetson/archives/l4t-multimedia-archived/l4t-multimedia-3261/cross_platform_support.html)

---

<div class="post-metadata">

**Author:** ![xiangernan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@xiangernan](https://forums.developer.nvidia.com/u/xiangernan)\
**Post date:** [June 28, 2023, 3:32am UTC](https://forums.developer.nvidia.com/t/jpeg-encoder-cross-compile-result-problem/257095/4 "2023-06-28T03:32:08Z")

</div>

Hi:  
The prebuild tool chain download link in step 3 has expired. Can you give me a new link where I can download the right corss-compliler rebuild tool chain for R32.7.2?

Thanks,  
Ernan

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [June 28, 2023, 6:20am UTC](https://forums.developer.nvidia.com/t/jpeg-encoder-cross-compile-result-problem/257095/5 "2023-06-28T06:20:25Z")

</div>

Hi,  
Please down it from  
[https://developer.nvidia.com/embedded/linux-tegra-r3272](https://developer.nvidia.com/embedded/linux-tegra-r3272)

> GCC 7.3.1 for 64 bit BSP and Kernel

---

<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:** [July 19, 2023, 5:03am UTC](https://forums.developer.nvidia.com/t/jpeg-encoder-cross-compile-result-problem/257095/7 "2023-07-19T05:03:49Z")

</div>

Closed on July 19, 2023, 5:03am UTC

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