cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Cross-compiling for WinCE

From: Yang Tse <yangsita_at_gmail.com>
Date: Wed, 14 May 2008 16:20:24 +0200

Hi Pierre,

2008/5/14, Pierre Ynard wrote:

> I have been working with libcurl on a WinCE cell phone, using CeGCC's
> mingw32ce toolset from a Linux host. I managed to compile libcurl, but
> it needed a few tweaks.

Great.

No one before has reported any attempt of cross compiling libcurl for
WinCE, as such and as you have discovered, the support was not in
there right now. The good news is that the situation can be improved.

Setting up a temporary autobuild would help me in helping you.
Otherwise you'll have to mail me build logs of what is in CVS
directly. If you can set up the autobuild, please do.

> - gethostbyname (and friends) is not found by the configure script in
> the "ws2_32" library, because apparently there is no such library:
> it is "ws2" instead. It links fine with the -lws2 flag.

The cross-compiling change that is actually needed is to use -lwinsock
for windows targets that don't fully implement winsock2. I'll take
care of this quite soon.

> - curl_off_t is defined as 8-byte long, which leads to a couple of
> errors [...]
>
> - Apparently the WinCE platform does not feature a errno.h header.
> [...]

The above errors are due to the fact that the WinCE cross compilation
does not use lib/config-win32ce.h to fine-tune the build process. I
would prefer to see the build logs before adjusting further.

> - The examples in the docs section do not compile. The curl application
> (in src/) doesn't either, [...]

Quite normal at this stage. I'll try to improve this with your help.

-- 
-=[Yang]=-
Received on 2008-05-14