Discussion:
Building curl on Windows CE
Maarten Daniels
2005-01-14 14:34:00 UTC
Permalink
Hi all,

Going to the archives, I've seen it should be possible to build curl on
windows CE. Could someone please give some more information to compile
the source code with Embedded Visual C++ 4. Just adding the files to a
new evc4 project like the visual studio 6 case and including
config-win32ce.h gives compilation errors, so there's probably some more
to it.

Thanks in advance,

Kind regards,

Maarten Daniels
Daniel Stenberg
2005-01-14 19:26:02 UTC
Permalink
Post by Maarten Daniels
Going to the archives, I've seen it should be possible to build curl on
windows CE. Could someone please give some more information to compile the
source code with Embedded Visual C++ 4. Just adding the files to a new evc4
project like the visual studio 6 case and including config-win32ce.h gives
compilation errors, so there's probably some more to it.
I was under the impression that no particular hands-on operation was required
for this.

config-win32ce.h should be included "automatically" when you build for Windows
CE, as it is done by #ifdef magic in lib/setup.h.

Can you show us some of the first compiler errors you get?

Perhaps Paul Nolan used a different compiler/version and the problem is due to
this?
--
Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
Dedicated custom curl help for hire: http://haxx.se/curl.html
Paul Nolan
2005-01-14 14:50:00 UTC
Permalink
Post by Maarten Daniels
Going to the archives, I've seen it should be possible to build curl on
windows CE.
Maarten Daniels
Can you email me the errors?

Thanks,

Paul Nolan, CEO Idruna Software Inc.
http://www.idruna.com
Ashish Nigam
2005-01-15 21:29:05 UTC
Permalink
Hi,
Here's a scenario.
I have written Windows Services which spawns new processes by executing exe
files.
Windows Services code and exe code make HTTP and FTP calls.
Now is it enough to call curl global init and curl global cleanup functions
in Services code or should I call the same in exe code also ?

Thanks
Ashish
Daniel Stenberg
2005-01-15 22:26:16 UTC
Permalink
Post by Ashish Nigam
I have written Windows Services which spawns new processes by executing exe
files. Windows Services code and exe code make HTTP and FTP calls.
Now is it enough to call curl global init and curl global cleanup functions
in Services code or should I call the same in exe code also ?
I don't know enough Windows to tell. Do they share any memory? If so, then
once is enough. If they use their own separate memory and process space, then
each should call curl_global_init() on their own.

However, in most cases libcurl figures it out by itself even if you just call
curl_easy_perform() without using curl_global_init() - but then you'll get the
default global options set of course.
--
Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
Dedicated custom curl help for hire: http://haxx.se/curl.html
Maarten Daniels
2005-01-18 08:28:49 UTC
Permalink
Hi,

Thanks for the quick reply.
Post by Paul Nolan
Post by Maarten Daniels
Going to the archives, I've seen it should be possible to build
curl > > on windows CE. Could someone please give some more information
to > > compile
Post by Paul Nolan
Can you email me the errors?
This is what I did:
-downloaded and extracted latest daily cvs snapshot (curl-7.12.4-20050117)
-added new workspace and new project (WCE dynamic link library) to the
lib folder with embedded visual c++ 4
-added the same source and header files as the visual studio 6 case
(except config-win32.h) to the new project.
-added .,..\include to the additional include directories in the c++
tab in project settings.
-then I get the following error in config-win32ce.h(249) fatal error
C1083: Cannot open include file: 'process.h': No such file or directory
-if I comment the process.h include I get following error in
setup.h(110) fatal error C1083: Cannot open include file: 'errno.h': No
such file or directory
-if I comment the errno.h include I get missing includes like
sys/socket.h......

These missing includes arent't found in my embedded visual c++
directory, did you get them somewhere and added them or am I missing
something else?
What compiler did you use and what else did you do?

Thanks in advance,

Kind regards,

Maarten Daniels
Daniel Stenberg
2005-01-18 14:30:46 UTC
Permalink
Post by Maarten Daniels
-downloaded and extracted latest daily cvs snapshot (curl-7.12.4-20050117)
There is a slight risk that we've ruined the ability to build for Windows CE
in this version.
Post by Maarten Daniels
Cannot open include file: 'process.h': No such file or directory
This seems like a major problem since this include file is specificly added in
that file to make the build on Windows CE work!
Post by Maarten Daniels
-if I comment the process.h include I get following error in setup.h(110)
fatal error C1083: Cannot open include file: 'errno.h': No such file or
directory
What? Don't you have such a file on Windows CE? We must then make sure to
only include it on platforms that have it. I'll work on a fix for this.
Post by Maarten Daniels
-if I comment the errno.h include I get missing includes like
sys/socket.h......
What source file tries to include that? Sounds like a bug, since the
config-win32ce.h header doesn't define HAVE_SYS_SOCKET_H, we shouldn't attempt
to include it.
--
Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
Dedicated custom curl help for hire: http://haxx.se/curl.html
Maarten Daniels
2005-01-18 14:52:03 UTC
Permalink
Hi,
Post by Daniel Stenberg
Post by Maarten Daniels
-downloaded and extracted latest daily cvs snapshot
(curl-7.12.4-20050117)
There is a slight risk that we've ruined the ability to build for
Windows CE in this version.
Post by Maarten Daniels
-then I get the following error in config-win32ce.h(249) fatal error
C1083: Cannot open include file: 'process.h': No such file or directory
This seems like a major problem since this include file is specificly
added in that file to make the build on Windows CE work!
It doesn't come with a clean install of embedded visual c++ 4, maybe
there are some unofficial fixes for those missing files, but I'd like it
to work as clean as possible. What did Paul do to get around this?
Post by Daniel Stenberg
Post by Maarten Daniels
-if I comment the process.h include I get following error in
No such file or directory
What? Don't you have such a file on Windows CE? We must then make sure
to only include it on platforms that have it. I'll work on a fix for this.
Same reply as above, I don't see it in the evc4 include files
Post by Daniel Stenberg
Post by Maarten Daniels
-if I comment the errno.h include I get missing includes like
sys/socket.h......
What source file tries to include that? Sounds like a bug, since the
config-win32ce.h header doesn't define HAVE_SYS_SOCKET_H, we shouldn't
attempt to include it.
It gets included in multi.h

Kind regards,

Maarten Daniels
Paul Nolan
2005-01-20 02:24:00 UTC
Permalink
Post by Maarten Daniels
Post by Maarten Daniels
-then I get the following error in config-win32ce.h(249) fatal error
C1083: Cannot open include file: 'process.h': No such file or
directory
Sorry for the delay, my computer completely died. I have not downloaded
the most recent CVS builds, does it compile if you comment out process.h
and the others? If not, I was messing around with a lot of dummy files,
it's quite possible one of these accidentally ended up in my include path,
I`ll double check when I get my system back up.

Thanks,

Paul Nolan, CEO Idruna Software Inc.
http://www.idruna.com

Loading...