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.

RE: Crosscompile with Dockcross

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 15 Apr 2022 22:40:41 +0200 (CEST)

On Fri, 15 Apr 2022, Robb Schiefer wrote:

> What about the other error:
>
> "SIZEOF_CURL_OFF_T" is not defined
>
> I suspect it has something to do with using sysroot and crosscompiling?
>
> Any ideas how to fix?

You are using the cmake build, it is subpar to the configure based one and has
always been. I recommend the autotools build if you want most (working) build
features.

But: curl_off_t is a type defined in curl/system.h, which is a public header
curl provides.

cmake (and configure) checks for the size of that type when it runs. If that
fails, then something is really wrong either in the script or the
curl/system.h doesn't cover your system. But if you're on somewhat common
system, it would surprise me if curl/system.h doesn't already support it.

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-04-15