both runs configured for an arm64 toolchain root@a8b4e71c175e:/home/andrew/packages/log4cpp/build# make install Consolidate compiler generated dependencies of target log4cpp [100%] Built target log4cpp Install the project... -- Install configuration: "" -- Installing: /usr/local/include/log4cpp -- Installing: /usr/local/include/log4cpp/StringQueueAppender.hh ... -- Installing: /usr/local/include/log4cpp/BasicConfigurator.hh -- Installing: /usr/local/lib/liblog4cpp.a root@a8b4e71c175e:/home/andrew/packages/log4cpp/build#...
In the course of our development offirmware foran embedded device we build on Ubuntu 22.04 machinesfor native execution and cross-compile for our embedded device. When we install liblog4cpp-1.1.3 with apt for our host developmentand then install liblog4cpp for Arm64, we can no longer build for our x86 host and have toreinstall the x86 version, after which we can’tbuild for Arm64. We had a similar situationfor libyaml-cpp. That was solved by doing local CMakebuilds using our local CMAKE_TOOLCHAIN_FILE...