I am stuck at setting up cross compilation for Jetson Nano for quite some time now. I created a docker and installed Jetpack in it. I only installed the HOST components for Jetpack 4.2.1 (rev 2) for Jetson Nano (not dev version). We need to use an older Jetpack because of limitations of one of our drivers’ compatibility. I assumed the necessary tools would be installed. I could see
/usr/local/cuda on docker (host) but not the cross compilation tools. So I went to Downloads for nvidia and manually installed using
dpkg -i the following package:
cuda-repo-cross-aarch64-10-0-local-10.0.326_1.0-1_all.deb. Is this enough? I noticed some cross compile includes and libs at
/usr/local/cuda/targets/aarch64-linux on the docker (host). The nvcc is available at
Please find attached the toolchain file I am usingtoolchain_file.txt (2.3 KB) . The toolchain is linaro 7.5, which I make known by exporting environment in shell in which build in run, using:
I also export the other required environmental variables like
BASE_DIR via a script, before running cmake.
Now the error: I have some .cu files in the code and their corresponding object files cannot be generated. Cmake is successful, make fails. I get:
Please advise regarding this. I have followed discussion on other forums with similar issues, but it did not help unfortunately. Please note that cross compilation is successful if I do not use any CUDA-based code (like .cu files), i.e., if I don’t use
cuda_add_library in the module-level CMake.