How to compile the camera SDK

I previously developed the camera SDK, including model inference deployment code, on the Rockchip RK1808. Now, I want to migrate everything to the Jetson Nano 8GB development board. How do I compile these codes? How do I write a makefile for them? Are there any tutorials available?

hello B.brick,

let me double confirm what’s the implementation you’ve done,
for instance, did you based-on Jetson Linux API Reference: API Modules | NVIDIA Docs for development?

besides, may I confirm the Jetson platform you’re using, is it Jetson Nano (t210 series) or, Jetson Orin Nano (t234 series)?

Hello, thank you for your reply;

I am using the Jetson Orin Nano 8GB, which is the development board with 40T computing power.

In general, I want to migrate all the previous codes from RK1808, mainly the camera SDK, and compile it. There might be issues with library compatibility or the configuration of the Makefile. I might not have described it very clearly, as this is my first time doing NVIDIA adaptation, and I might continue using the Jetson series in the future.

I have just flashed JetPack, and I am not sure what to do next. Should I directly migrate all the code from the RK1808 development board and then modify it step by step based on the errors, or is there a better approach?

When running camera code on the Rockchip development board, it is necessary to use a compiler for cross-compilation. However, the Jetson Orin Nano is a complete development platform, so cross-compilation is not required, and I can directly run the camera code on the development board. Therefore, as long as I configure the Makefile file correctly, I should be able to compile and run it successfully, just like running regular code.

If that’s the case, then I only need to consider using NVIDIA-related libraries and APIs to replace the incompatible libraries and APIs in the existing code, such as those for image and video encoding and decoding, right?

hello B.brick,

please refer to jetson-linux-r363. you should download [Driver Package (BSP) Sources] for public release sources.
you’ll have to download Jetson Linux Toolchain for building, please see-also Kernel Customization for building the kernel and device tree.
in addition,
please install MMAPI package, $ sudo apt install nvidia-l4t-jetson-multimedia-api
you may looking for readme file for the steps to compile the sample app.

JetPack does not include arm-linux-gnueabihf. Should I download it?

I believe the Jetson Orin Nano is a complete development platform, allowing for development work directly on the device itself. Therefore, cross-compilation from an x86_64 host to the Nano should not be necessary, eliminating the need to download arm-linux-gnueabihf. Is my understanding correct?

Thank you for your assistance!

hello B.brick,

your understanding is correct, you should be able to work directly on the device itself.
however, am still not clearly understand what’s the compilation you would like to done.

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