How to setup Jetson enviroment to run on local pc

I have some code work in tx2 based on jetson-inference (detectnet inference). I want to compile and run it on my host PC (ubuntu18.04). I am wondering if you have any helpful resources on how I can set up a Jetson nano environment on my local pc? Thank you.


Here are two possible ways for your reference:

1. Compile jetson-inference on desktop directly.
Please check below topic for the detail:

2. Run Jetson docker on your desktop host.
You can find some details in the below tutorial: