MAVSDK doesn't build on Ubuntu 22.04 (SSL link error)

I get this error when building MAVSDK: “libmavsdk.so.2.12.2: undefined reference to `SSL_get0_group_name’”.

This error happens when the build is attempting to link “system_tests_runner”. I encounter this build error when I build directly on my Ubuntu 22.04 machine as well as building from within a docker container (base image :mcr.microsoft.com/devcontainers/cpp:1-ubuntu-22.04).

Has anyone (recently) succeeded in building this SDK on Ubuntu 22.04?

Yes, that’s a recent regression. Note that you’re building main (future v3) and not v2 (the current release).

Fix coming: Find openssl with older cmake version by julianoes · Pull Request #2491 · mavlink/MAVSDK · GitHub