How to cross compile driveworks sdk + opencv + cuda?
I added Opencv Cuda functions in some of the driveworks sdk samples, and I am willing to cross compile the modified samples.
The following are the steps I have tried.
- Cross compile opencv with cuda enabled.
I added the following cmake command for cross compilation.
Add opencv libraries in CMakeLists.txt under the driveworks sdk samples folder.
Cross compile the samples with the following cmake command
I got the following errors at the 3rd step.
/nvidia/nvidia_sdk/DRIVE_Software_9.0_Linux_hyperion_E3550/DriveSDK/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/…/…/libexec/aarch64-gnu-linux/gcc/aarch64-gnu-linux/4.9.4/ld: /opencv/build/lib/libopencv_core.a(stl.cpp.o): Relocations in generic ELF (EM: 62)
Can anyone help me on these problems? Thank you!!!