QtCS2024 Compile once. Run everywhere

Cristian Adam discussed using Cosmopolitan Libc to compile C++ applications once and run them everywhere, allowing for cross-platform deployment on Windows, Linux, and macOS for x86_64 and arm64. Key points included how Cosmopolitan libc detects the host machine at runtime to provide the right system calls. Challenges were faced on Windows due to Cosmopolitan Libc’s POSIX implementation. Adam successfully built and ran various applications using Cosmopolitan libc but encountered issues with integrating with native platforms and supporting WebSockets for Qt QPA VNC platform. The size of the resulting binary was around 230 megabytes with no significant performance differences compared to the native version. Adam plans to continue working on Cosmopolitan support for Qt Creator and invites others to contribute and report issues.

https://wiki.qt.io/QtCS2024_Compile_once._Run_everywhere

To top