29 @page cross_platform_support Setting Up Cross-Platform Support
31 This section describes how to set up the cross-compilation environment
for
32 Multimedia API on the host system.
33 It uses the following terms:
34 - _Host system_ means the x86 based server where you are going to
do cross-compilation.
36 - _Jetson board_ means the target board where your samples will run.
38 Before proceeding, you must ensure that you can build samples natively without
39 issues on your Jetson board.
40 If you have not already set up a complete compilation environment on your
41 Jetson board, please
do so now. For more information, see @ref mmapi_build.
43 The following steps are executed on your **host system**:
45 1. Clone the target rootfs on your Jetson board to your host system.
47 Follow the instructions
"To clone a Jetson device and flash" under
48 [Basic Flashing Procedures](https:
49 in the _Jetson Linux Driver Package Developer Guide_
50 to clone the target rootfs.
52 These instructions yield two sparsed copies of the image. One has a name
53 you specified, such as `clone.img`; the other has the same name
54 with the suffix `.raw`.
56 2. Mount the `.raw` image with the following commands:
60 $ sudo mount -t ext4 clone.img.raw jetson
61 $ export TARGET_ROOTFS=$HOME/jetson
63 3. Export the path of cross-compiler tool chain with the following commands:
65 $ export PATH=<CROSS_COMPILER_PATH>/bin:$PATH
66 $ export CROSS_COMPILE=aarch64-linux-gnu-
68 Replace `<CROSS_COMPILER_PATH>` with the actual path of your tool chain.
70 You can download the prebuilt tool chain from the following website.
74 4. Navigate to the directory
for a sample and run `make` to cross-compile.