~/talk

Cross-Building Strategies in the Age of C++ Package Managers

Talkat CppCon 2022 · 2022-09-11..09-16· [devops-and-delivery]
links:none on file
slides:none on file

Claims that modern Cpp package managers like Conan and vcpkg can orchestrate cross-builds by supplying compiler toolchains, profiles and sysroots and by distinguishing build vs host contexts. Demonstrates cross-building zlib and protobuf, verifies resulting binaries’ architectures, and shows splitting protobuf into protobuf-compiler and protobuf-lib or packaging a toolchain with sysroot to avoid patching downstream build scripts. Targets ARM Linux and macOS Intel/ARM, highlights CI-friendly reproducible binaries and the tricky case of executables tightly coupled to host libraries.

AI-written summary · about

  1. 0:00Intro
  2. 0:19ARM ubiquity
  3. 3:19Why cross build?
  4. 7:38Getting started
  5. 8:10Cross-building terminology
  6. 11:54Building dependencies: the compiler (cont'd)
  7. 12:53Strategy: Leverage the package manager to specify the compiler
  8. 14:42Building ZLIB, macOS example
  9. 15:57Strategy 2: Package your compiler toolchain up
  10. 18:06Executable dependencies
  11. 18:54Strategy: requirements for build-time executables
  12. 20:14Library and executable combos
  13. 21:18Strategy: same requirement in both contexts
  14. 22:20Strategy: split packages for executable and library
  15. 28:36"Sysroot" and system libraries on Linux
  16. 29:56"Sysroot" on embedded Linux - caveats
  17. 30:44Strategy: package the root filesystem
  18. 31:48Ready to build our own code!
  19. 33:37Closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.