The `curl` command is not the libcurl development kit. Current Ubuntu builds normally need `libcurl4-openssl-dev`, which supplies headers and build metadata. Use pkg-config or CMake’s CURL target so transitive link flags and non-default installation paths remain correct.
The OpenSSL command and runtime library are not enough to compile C/C++ code. Ubuntu puts headers, unversioned linker files, and pkg-config metadata in `libssl-dev`. Install it for the correct architecture, then let pkg-config or CMake supply paths instead of hard-coding `/usr/include`.
The mips64el toolchain error usually means an old Android Gradle Plugin or native build expects files removed from newer NDKs. Diagnose the version boundary, modernize the build, and use a legacy NDK only as a controlled archival fallback.