I am trying to cross-compile the GRPC libraries for use with a custom C++ application. For our application, it is important for us to have a good ASR (speech to text) library. We use Google Cloud Speech, but this needs GRPC. It is simple to cross compile for ARMv7, but much harder for ARMv6.
Interesting. I’m using stretch on rpi3. I was trying to cross compile, but I could do it on the machine. I think I tried that and ran into problems. I could try it again. Which release of GRPC did you use?
ARMv6 is harder because all the default cross compile tools in debian and ubuntu use ARMv7 or ARMv4 (called armhf and armel respectively). GRPC compile seems to work fine with ARMv7, but when I try to use the tools for ARMv6 (from the rpi repo here: tools/arm-bcm2708 at master · raspberrypi/tools · GitHub) GRPC runs into some problems. I’d give it a good chance that I’m doing something wrong, but either way, it’s way more complicated than using the built-in cross-compilers. Apparently, “armel” cross compilers will work, but as they are ARMv4, they don’t do hard floats (and lack other optimizations) therefore they will be slower.
Thanks for the help, I’ll try to get it compiling on the actual hardware.