2006.11.17 14:26 "[Tiff] libtiff for Windows CE", by Mateusz Loskot

2006.11.17 14:26 "[Tiff] libtiff for Windows CE", by Mateusz Loskot

Hi,

Some time ago, I ported GDAL vector support [1] for Windows CE platform. Now, I'm adding GeoTIFF support to GDAL port for Windows CE. So, to achive my objectives, I've ported libtiff and libgeotiff to Windows CE platform.

[1] http://www.gdal.org/wince.html

Now, I'd like to ask if libtiff Dev Team is interested in incorporating my changes to the official libtiff repository.

I've talked with Frank Warmerdam and we will include libgeotiff for Windows CE port to its CVS as well. Also GDAL repository will get it.

Here is a summary of changes:

1. Added files to core libtiff:

libtiff/tif_config.wince.h
libtiff/tif_wince.c
libtiff/tiffconf.wince.h

2. Added tools

tools/tiffinfoce.c

As a simple test, I ported tiffinfo to Windows CE.

3. Changed [2] files:
libtiff/tif_win32.c
libtiff/tiffiop.h
port/lfind.c

[2] Patch including changes in touched files http://mateusz.loskot.net/tmp/libtiff-wince-mloskot-20061116.patch

4. External dependencies

There is only one external dependency for Windows CE port. Unfortunately, on Windows CE platform there are many C library and POSIX functions missing, so all ports of libraries like GDAL, libtiff, libgeotiff, PROJ.4, and other libs I'm porting, need to use my WCELIBCEX library - an extension to C library for Windows CE platform.

http://sourceforge.net/projects/wcelibcex/

Certainly, the WCELIBCEX is not needed to be included in libtiff sources tree, because users can download its sources and Static Library project file from the website.

5. Visual C++ 2005 project files

Unfortunately, since VC++ 2005, building software with nmake for Windows CE is a big problem, so it seems to be required to provide users with project files.

If libtiff project would accept Windows CE port to the CVS repository, I'd also like to include 2 project files: libtiffce_dll and libtiffce_lib to build DLL and static library.

These project files could be put into a dedicated directory, for instance:

libtiff/wince/msvc80
libtiff/wince/msvc80/libtiffce_dll
libtiff/wince/msvc80/libtiffce_lib

I'm looking forward your comments.

Cheers
--
Mateusz Loskot
http://mateusz.loskot.net