curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

HAVE_WRITABLE_ARGV test when cross-compiling

From: Frederik Seiffert via curl-library <>
Date: Fri, 19 May 2023 12:56:54 +0200

Hi all,

v8.1.0 contains this change adding a try_run() when building with CMake:

This causes the following error when cross-compiling libcurl using CMake (in my case to Android):

> -- Performing Test HAVE_WRITABLE_ARGV
> CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
> For details see /path/to/libcurl/build-armeabi-v7a/TryRunResults.cmake
> -- Performing Test HAVE_WRITABLE_ARGV - Failed

What’s the best way to deal with this? Can I assume Android has this ability and just call CMake with `-DHAVE_WRITABLE_ARGV_EXITCODE=0`?


Received on 2023-05-19