title: cross-compile c++-File: File format not recognized
body: <p>I try to crosscompile a c++-code for an arm-processor from a linux-ubuntu-vm.</p>
  
  <p>A normal compilation works without errors. When I try the following command I've got an error:</p>
  
  <p><strong>arm-linux-gnueabihf-g++ main.cpp onnx.proto3.pb.cc -o readonnx <code>pkg-config --cflags --libs protobuf</code></strong></p>
  
  <p>-->  /<strong>usr/local/lib/libprotobuf.so: file not recognized: File format not recognized
  collect2: error: ld returned 1 exit status</strong></p>
  
  <p>How can I compile my code for an Intel Cyclone V (Linux Angstrom)?</p>
  
  <p><strong>file /usr/local/lib/libprotobuf.so</strong></p>
  
  <p>--> <strong>/usr/local/lib/libprotobuf.so: symbolic link to libprotobuf.so.20.0.0</strong></p>