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