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
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Robb Schiefer via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 15 Apr 2022 16:55:04 +0000
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?
Thanks
-----Original Message-----
From: Daniel Stenberg <daniel_at_haxx.se>
Sent: Thursday, March 24, 2022 5:08 PM
To: Robb Schiefer via curl-library <curl-library_at_lists.haxx.se>
Cc: Robb Schiefer <rschiefer_at_live.com>
Subject: RE: Crosscompile with Dockcross
On Thu, 24 Mar 2022, Robb Schiefer via curl-library wrote:
> Added the following to my CMakeLists file and the error is gone:
>
> set(HAVE_STRUCT_TIMEVAL 1)
>
> Is this correct? Obviously I would add this conditionally based on
> the target architecture.
There's a check in CMake/OtherTests.cmake that is supposed to check for and set that variable. It looks like this:
check_c_source_compiles("${_source_epilogue}
int main(void) {
struct timeval ts;
ts.tv_sec = 0;
ts.tv_usec = 0;
(void)ts;
return 0;
}" HAVE_STRUCT_TIMEVAL)
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcurl%2Fcurl%2Fblob%2Ff718a915477aed881808244b9f2ad82cee3812f9%2FCMake%2FOtherTests.cmake%23L213-L220&data=04%7C01%7C%7Cbd1105568748477b346908da0de2c7b1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637837564903256320%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=KmZL0oibOaK0y%2Btowh34KLEaGtfS2u8z7K4gFqpdHRo%3D&reserved=0
Obviously that doesn't work as intended.
Date: Fri, 15 Apr 2022 16:55:04 +0000
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?
Thanks
-----Original Message-----
From: Daniel Stenberg <daniel_at_haxx.se>
Sent: Thursday, March 24, 2022 5:08 PM
To: Robb Schiefer via curl-library <curl-library_at_lists.haxx.se>
Cc: Robb Schiefer <rschiefer_at_live.com>
Subject: RE: Crosscompile with Dockcross
On Thu, 24 Mar 2022, Robb Schiefer via curl-library wrote:
> Added the following to my CMakeLists file and the error is gone:
>
> set(HAVE_STRUCT_TIMEVAL 1)
>
> Is this correct? Obviously I would add this conditionally based on
> the target architecture.
There's a check in CMake/OtherTests.cmake that is supposed to check for and set that variable. It looks like this:
check_c_source_compiles("${_source_epilogue}
int main(void) {
struct timeval ts;
ts.tv_sec = 0;
ts.tv_usec = 0;
(void)ts;
return 0;
}" HAVE_STRUCT_TIMEVAL)
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcurl%2Fcurl%2Fblob%2Ff718a915477aed881808244b9f2ad82cee3812f9%2FCMake%2FOtherTests.cmake%23L213-L220&data=04%7C01%7C%7Cbd1105568748477b346908da0de2c7b1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637837564903256320%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=KmZL0oibOaK0y%2Btowh34KLEaGtfS2u8z7K4gFqpdHRo%3D&reserved=0
Obviously that doesn't work as intended.
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcurl.se%2Fsupport.html&data=04%7C01%7C%7Cbd1105568748477b346908da0de2c7b1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637837564903256320%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=1GyO5sAylspKZj9OtaBxwx6Vt51gZCy%2FsW8f%2BlMCvkA%3D&reserved=0 -- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2022-04-15