error adding symbols: File in wrong format

This is my workflow:

I have setup the host PC with drivesoftware 10 ,
I have a code, that needs to be cross compiled for Drive AGX dev Kit.

I am using cmake, I have added all the library and header file links in the CMakeLists.txt file and updated in the source code accordingly.

When I do make -j, I am running into error :

bash-4.4$ make -j
[ 40%] Running C++ flatc compiler on /home/aswin/GMSL/ld-node-camera-gmsl/.devenv/host/share/flatbuffer/GenericMatrix3D.fbs
[ 40%] Running C++ flatc compiler on /home/aswin/GMSL/ld-node-camera-gmsl/.devenv/host/share/flatbuffer/Image.fbs
[ 80%] Building CXX object CMakeFiles/ld-node-camera-gmsl.dir/src/CameraGmsl.cpp.o
[ 80%] Building CXX object CMakeFiles/ld-node-camera-gmsl.dir/src/main.cpp.o
[100%] Linking CXX executable ld-node-camera-gmsl
/usr/local/driveworks-2.2/lib/ error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/ld-node-camera-gmsl.dir/build.make:159: ld-node-camera-gmsl] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/ld-node-camera-gmsl.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I have followed all the steps as given in the documentation.
I am a noobie to AGX, so please excuse me.

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version

Target Operating System

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)

SDK Manager Version

Host Machine Version
native Ubuntu 18.04

Hi @aswb ,
Is this duplicate to Sudo apt-get failure -> Cross compilation failure?