Possibly by getting it from the running kernel. When you run 32-bit Raspberry Pi OS on a 64-bit capable Pi (Zero 2W, later 2B, 3AB+, 4B, 5) it defaults to a 64 bit kernel.The file command told me that this was indeed a 64 bit version.
Don't know how that happened - the commands to install the library are the same for both 32 and 64 bit versions: the "make" must get the version type from the current OS.
In those cases the uname -r command will report aarch64 (64 bit ARM), even though the rest of the code that is running is armhf (32 bit ARM).
I use the dpkg --print-architecture command to tell me what OS is running. There are other methods too.
Statistics: Posted by rpdom — Thu Mar 14, 2024 12:30 am