I can't think why, you should be able to cross-compile "upwards", its no different from cross-compiling to a completely different architecture. But I presume in this case it is thinking you are attempting to multi-arch upwards which obviously isn't going to happen, I don't think 32-bit OS has multi-arch.On an armhf box, "apt install libmosquitto-dev:aarch64 " says it is unable to locate the package.
You should only need the header for dynamic libraries and that is the same header for armhf and aarch64 if the library is available in both (which mosquitto is).
I notice apt pulled in gcc when I loaded the cross-architecture library, I had forgotten that gcc doesn't really cross-compile(?), it uses separate programs for each architecture and that is possibly the root cause of this problem? .... or not!
I played with cross-compiling for a while a few years ago but now just compile on the target architecture, my brain is past learning anything new and cmake is a highly successful blockade - tbf I avoid make files as well, generally compile all from source wherever possible. A little bash install script is so much easier to pull in necessary run-time packages if I really want it portable - just don't mention error checking.
Yes, a big IPv6 switch would be nice, I stick to IPv4 for simplicity in firewall rules. What would be better still would be ability to use host/domain firewall rules (using mdns) for the Lan at least. I'm holding on to IPv4 Wan for as long as my ISP allows.
Statistics: Posted by pidd — Sat May 04, 2024 2:22 pm