Menu

The Qt Company Blog: Building C/C++ libraries for HarmonyOS with vcpkg
📰
0

The Qt Company Blog: Building C/C++ libraries for HarmonyOS with vcpkg

Planet Qt·Planet Qt·about 1 month ago
#aqFuXudN
#qt#libraries#harmonyos#vcpkg#class#photo
Reading 0:00
15s threshold

We'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.

With our vcpkg fork, that script is now a single command.

Read More