{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiemws3jeqfwvgdiwtqy5p7hqhucwo6lymiazaaxkdxalx7tbdfqae",
"uri": "at://did:plc:6dmfe46c76jjenq3kaxc5eds/app.bsky.feed.post/3mj4zhavmd3i2"
},
"coverImage": {
"$type": "blob",
"ref": {
"$link": "bafkreigt6etn257ajp7mkxz5szi7tt65owi2i7q7enroqro4egue7cnjne"
},
"mimeType": "image/png",
"size": 71370
},
"path": "/blog/building-libraries-for-harmonyos-with-vcpkg",
"publishedAt": "2026-04-10T07:14:41.000Z",
"site": "https://www.qt.io",
"tags": [
"HarmonyOS"
],
"textContent": " \n\nWe're currently working on porting Qt to HarmonyOS. For our CI and developer machines, we need a number of third-party libraries built for HarmonyOS. Cross-compiling open-source C and C++ libraries for this platform has been a manual, error-prone process. Each library has its own build system, whether CMake, Autotools, or Meson. Each needs individual attention to produce correct binaries for the OHOS target. We have been maintaining a hand-written shell script that builds libraries one by one, with per-library workarounds for cross-compilation quirks.\n\nWith our vcpkg fork, that script is now a single command.",
"title": "Building C/C++ libraries for HarmonyOS with vcpkg"
}