29 @page cross_platform_support Setting Up Cross-Platform Support
31 Use the following procedure to set up the cross-compilation environment
for
32 Multimedia API on the host system.
34 1. Install the CUDA cross-platform toolkit on the host system with the following
37 $ sudo dpkg --add-architecture arm64
39 $ sudo dpkg -i cuda-repo-<distro>_<version>_amd64.deb
41 $ sudo apt-
get install cuda-cross-aarch64
43 @note Only cuda-8.x supports cross-platform development
for aarch64 (arm64).
45 2. Download the <L4T Sample Root Filesystem> from the following website:
49 3. Decompress the
package and export rootfs path with the following command:
51 $ export TARGET_ROOTFS=<PATH_OF_TEGRA_DRIVER_PACKAGE>/Linux_for_Tegra/rootfs
53 @note The sample 11_camera_object_identification and backend do not support
54 cross-compilation in this release.
56 4. Export the path of cross-compiler tool chain with the following command:
58 $ export PATH=$PATH:<CROSS_COMPILER_PATH>/bin
60 5. Create symbolic links with the following commands:
62 $ export TEGRA_ARMABI=aarch64-linux-gnu
63 $ cd ${TARGET_ROOTFS}/usr/lib/
64 $ sudo ln -sf ${TEGRA_ARMABI}/crt1.o crt1.o
65 $ sudo ln -sf ${TEGRA_ARMABI}/crti.o crti.o
66 $ sudo ln -sf ${TEGRA_ARMABI}/crtn.o crtn.o
68 $ sudo ln -sf libv4l2.so.0 libv4l2.so
69 $ sudo ln -sf tegra-egl/libEGL.so.1 libEGL.so
70 $ sudo ln -sf tegra-egl/libGLESv2.so.2 libGLESv2.so
71 $ sudo ln -sf tegra/libcuda.so.1.1 libcuda.so.1
72 $ sudo ln -sf ../../../lib/aarch64-linux-gnu/libdl.so.2 libdl.so
74 6. Enter the sample directories and run `make` to cross-compile.