forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
184 lines (137 loc) · 6.77 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
$Id$
=============================================================================
GDAL/OGR port for Window CE
Mateusz Loskot, mateusz@loskot.net
=============================================================================
GDAL/OGR for Windows CE features:
- all base OGR API and modules (port, ogr)
- subset of OGR drivers (ogr\ogrsf_frmts): generic, mitab, shape
- wcelibcex - extension to C library on Windows CE
Features not included in GDAL/OGR for Windows CE:
- in fact, this port does not include rasters support
- GEOS has not been ported yet, so OGR for Windows CE
compiles without GEOS support (work is in progres)
- OGR drivers not listed in features list above
I'd like to thank:
==================
- Frank Warmerdam for GDAL/OGR and priceless support he provide me
- Taxus SI Ltd. from Poland for their great support
- Users from IRC #gdal channel
- All users, testers and contributors
=============================================================================
Content of gdal\wince directory:
=============================================================================
- wcelibcex
Windows CE C Library Extensions provide some functions missing in
the standard C library on Windows CE devices, e.g. time, ctime, mkdir, etc.
It will be hosted as a separate project:
http://sourceforge.net/projects/wcelibcex
- wce_test_lib
Sample application to test gdalce.lib - static library - build with
makefile.evc4.
- wce_test_dll
Sample application to test gdalce.dll - DLL - build with makefile.evc4.
NOTE: Currently, DLL produced that way seems to be broken and can not
be loaded properly. So, if you are NMake/Makefiles guru you're
welcome to fix it. Thanks in advance!
- evc4_gdalce_lib*
Project file for eMbedded Visual C++ 4.0 to build GDAL/OGR as a static
library.
- evc4_gdalce_lib_test*
eMbedded Visual C++ 4.0 project of sample application to test static
library built using evc4_gdalce_lib project.
- evc4_gdalce_dll*
Project file for eMbedded Visual C++ 4.0 to build GDAL/OGR as a DLL.
- evc4_gdalce_dll_test*
eMbedded Visual C++ 4.0 project of sample application to test DLL built
using evc4_gdalce_dll project.
(***) Project files for eMbedded Visual C++ 4.0 are not compatible
between versions 3.0 and 4.0. So, in order to build GDAL/OGR
using eVC++ 3.0 you have to create project files from scratch.
=============================================================================
Building GDAL/OGR for Windows CE .NET:
=============================================================================
Note: Windows CE .NET is a version 4.0 - 4.2 and it's only a name, so
there is no .NET Framework dependency! Starting from Windows CE 5.0,
Microsoft has removed .NET from the name of the system.
Requirements:
=============
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
Building with makefiles:
========================
1. Open command line (cmd.exe) on your Windows box
and go to gdal sources directory e.g. C:\gdal
2. Run configuration script for ARM target. It's default location is:
C:\Program Files\Microsoft eMbedded C++ 4.0\EVC\wce420\bin\WCEARMV4.BAT
Now, runs some commands to check if everything is configured well:
C:\gdal>clarm.exe /?
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.
C:\gdal>echo %PLATFORM%
POCKET PC 2003
C:\gdal>echo %OSVERSION%
WCE420
3. Build
C:\gdal>nmake /f makefile.evc4
4. 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
(***) IMPORTANT!
Currently gdalce13.dll built with NMake seems to be broken.
So, if you want to use GDAL/OGR for Windows CE as DLL please
use eVC++ 4.0 project file from evc4_gdalce_dll directory at the moment.
This issue is known and waiting for fix :-)
Building with project files:
============================
In order to build GDAL/OGR for Windows CE using eVC++ 4.0 or VC++ 2005 project files,
just open appropriate workspace/project files with IDE you're using.
Frist, remember, to rename port/cpl_config.h.evc4 file to read as port/cpl_config.h.
If eVC++/VC++ can't recognize project files correctly, then check if .vcw/.vcp/.sln/.vcproj files
include Windows-like end lines - CR/LF.
If those files include only LF, then you can open/save them using Notepad editor to fix it.
Summary of building GDAL/OGR for Windows CE:
============================================
1. Static Library:
- using makefile.evc4
- using eVC++ 4.0 project file in evc4_gdalce_lib directory
2. DLL:
- using eVC++ 4.0 project file in evc4_gdalce_dll directory
- building with makefile.evc4 is currently broken
=============================================================================
How can I report a bug?
=============================================================================
Visit Bugzilla on http://bugzilla.remotesensing.org
Bug Writing Guidelines:
http://bugzilla.remotesensing.org/page.cgi?id=bug-writing.html
=============================================================================
How can I contribute?
=============================================================================
- you can build GDAL/OGR for Windows CE and report problems if any
- you can try build/port new OGR drivers
- you can test GDAL/OGR on different Windows CE devices
- you can write sample applications using GDAL/OGR
- if you have found a bug, please report it
=============================================================================
All questions and comments are welcome!
=============================================================================
Mailing list: gdal-dev@lists.maptools.org
You can catch me on mateusz@loskot.net