[Gdal-dev] HELP: GDAL for windows CE

Vasku Pech vaskup at adsmr.co.za
Wed May 3 10:59:25 EDT 2006


Hi there,

OK, I finally managed to get the source from CVS. It was not a password problem. My company did not have the CVS port set up correctly so it was not possoble to download the code.

I thought all my problems would be solved once I got a proper stable version of Gdal for wince. Unfortunately I am still sitting at square one.

I have followed all the steps in the README which can be found under the wince directory of the download.

The steps are and I qoute from the Readme file...




First, you need to install following software on your machine:

0. Compilation box running Windows NT/2000/XP 

1. Microsoft eMbedded Visual C++ 4.0 - it's free
http://www.microsoft.com/downloads/details.aspx?FamilyID=1DACDB3D-50D1-41B2-A107-FA75AE960856

2. Microsoft eMbedded Visual C++ 4.0 Service Pack 4
http://www.microsoft.com/downloads/details.aspx?FamilyID=4A4ED1F4-91D3-4DBE-986E-A812984318E5

3. SDK for Windows Mobile 2003-based Pocket PCs
http://www.microsoft.com/downloads/details.aspx?FamilyId=9996B314-0364-4623-9EDE-0B5FBB133652

Note: I have only tested OGR port with Pocket PC 2003 SDK but there should not be any
problem with building it using other Windows CE SDKs. If you've managed to build OGR port
using other SDKs pleaes let me know.

4. The Run-time Type Information library for the Pocket PC 2003 SDK
http://support.microsoft.com/default.aspx?scid=kb;[LN];830482

5. I also recommend to use STLport
Here is some introduction: 
http://mateusz.loskot.net/2005/12/25/how-to-use-stlport-with-evc/
it refers to my article on http://www.pocketpcdn.com





I have tried using the .vcw and .vcp files supplied for the dll and lib versions but cannot manage to get them to compile error free. Initially EVC++ 4.0 had a problem even recognising the files. The CR/LF were missing. I opened the files in WordPad and save over the original file which seems to have solved the problem. I am able to see the Fileview and Classview of the project file. The problem is when I try building the project I initially get the following error 95 or so times:

Cannot open include file: 'cpl_config.h': No such file or directory

I find this file in the OGR directory not the PORT directory where the compiler tries to look for it.
I have copied the file and also updated the include path under Projects / Settings/ C/C++ tab (Additional inculde directories). Still this does not work. It comes up with following error 113 times:

eMbedded Visual C++ 3 and .NET don't have a errno.h header; STLport won't include native errno.h here

Can someone help me out here. I am getting desperate as I dont know what else to do..... I have also tried compiling the file using the make file (makefile.evc4) supplied in the main directory. This is apparently suppose to give me 4 files.

If everything went without any errors you should have
following files in gdal root directory (C:\gdal):
gdalce.lib - static library (PREFERED)
gdalce13.dll - Dynamic-Link Library (DLL) (See IMPORTANT note)
gdalce_i.exp - export file for DLL
gdalce_i.lib - import library for DLL

I cannot even get this to work... HELP, HELP.... Please if anybody can point me in the right direction I would be very gratefull.

Regards,
Vasku

-----Original Message-----
From: Mateusz Loskot [mailto:mateusz at loskot.net]
Sent: 28 April 2006 07:12 PM
To: Vasku Pech
Subject: Re: 1: GDAL for windows CE


Vasku Pech wrote:
> Apparently WindowCE does not support errno.
> 
> How did you get source to compile?

There are many many things missing in C library on Windows CE :-)
Check wince/wcelibcex, there is my own extension with missing
functions/types for C library on Windows CE.
Note, (there is a comment about it too) this errno is not thread-safe!

I only can say that my OGR port to Windows CE is compilable and
runnable. If you have some specific problems, I'm ready to help you.
If you've found a bug, cool, just report it on GDAL's Bugzilla or
directly to me.

Note, I can respond with some delay, because I'm quite busy now.

p.s. please, use gdal-dev list, it's good to give other users some
details too.

Cheers
-- 
Mateusz Łoskot
http://mateusz.loskot.net




More information about the Gdal-dev mailing list