I am trying to develop code with a 3rd party library and cross compile it onto the target. I successfully imported the 3rd party library into a driveworks sample, which I used as a starting point, and used the library for a self-developed application. On the host, everything works perfectly fine. I am able to run the code with the imported library. The 3rd party library I am using is darknet/yolo.
However, when I try to cross-compile the application onto the target, I get the following error when performing “make -j” after the “cmake” command:
/home/.../darknet/libdarknet.so: error adding symbols: File in wrong format
I am not quite sure why this is happening. Is there a way to resolve this?