cURL / Mailing Lists / curl-library / Single Mail


Re: Compiling libcurl on unsupported platform

From: Alan Wolfe <>
Date: Thu, 19 Aug 2010 11:27:12 -0700

Thanks Daniel! (:

I shall give it a go.

BTW i just built libcurl from source the other day on windows and was
PLEASANTLY surprised at how simple it was.

Normally i grab binaries and i figured there would be a lot of
dependency hell going on but it just worked out of the box.

<3 libcurl

On Thu, Aug 19, 2010 at 11:20 AM, Daniel Stenberg <> wrote:
> On Thu, 19 Aug 2010, Alan Wolfe wrote:
>> I'm looking to compile libcurl on a platform that doesnt seem to be
>> currently supported (xbox 360)
> Isn't that running something similar to win32?
>> I was wondering, where would someone start with the "port" to a new
>> platform?
> Start off by reading:
>> Is there a specific file that has the os specific functionality?
> No. libcurl assumes that your OS has POSIX(-like) networking functions and a
> bunch of other APIs, or you need to provide them. All source files are thus
> written to be generic, and are controlled by #ifdefs for specific features.
> If your build environment can't run configure, you make your own
> config-[target].h header file and make sure that is included like the
> current win32, symbian or os400 headers are used.
>> Also i noticed there are a lot of checks for things like
>> HAVE_SYS_SOCKET_H, do i just need to make some defines somewhere to specify
>> what this platform does and does not have?
> That's what you do in the config-xbox360.h header, yes!
> If you're lucky, editing that file gets you all the way.
> If you run into problems or have further questions, just shout here!
> --
>  /
> -------------------------------------------------------------------
> List admin:
> Etiquette:
List admin:
Received on 2010-08-19