[Gdal-dev] Re: GDAL C API in Delphi

Ivan Lucena ivan.lucena at pmldnet.com
Wed Apr 18 16:44:14 EDT 2007


Mateusz,

You can get the full package from the same address that I mentioned before
for C++ Builder: http://codegear.com/Default.aspx?tabid=144

But I think that what Delphi programmers will need from us is just to
include those changes that Artur have mentioned:

>>> nmake.opt

# Uncomment this line to build a Delphi compatible dll:
#LINKER_FLAGS  = /def:gdal14.def

Of course, we need to add the file "gdal114.def" created by the inpdef tool
(comes with Delphi) to the root. We can make it run automatically I guess.

But do some test you will need to write interface units, gdal.pas and
ogr.pas that replicate all the gdal.h and ogr_api.h types and function
definition in Pascal. That is way to much work and I think that it is up to
the Delphi user to do that. That is not a wrapper.

Let me know if you need any thing else,

Regards,

Ivan

-----Original Message-----
From: Mateusz Loskot [mailto:mateusz at loskot.net] 
Sent: Wednesday, April 18, 2007 3:22 PM
To: Ivan Lucena
Cc: 'Frank Warmerdam'; 'gdal'
Subject: Re: [Gdal-dev] Re: GDAL C API in Delphi


Ivan,

No, I don't have Delphi environment, but if there is any free like VC++
2005 EE, I can install it if that will help us to solve GDAL problems
for Delphi users.

I've been programming with Pascal quite a long time ;-)

Mateusz

Ivan Lucena wrote:
> Frank,
> 
> Since Artur is not a GDAL committer and I am assuming that Mateusz doesn't
> have a Delphi developer environment at his disposal, I am offering my help
> on that matter, if it is needed.
> 
> Regards,
> 
> Ivan
> 
> -----Original Message-----
> From: gdal-dev-bounces at lists.maptools.org
> [mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Frank Warmerdam
> Sent: Wednesday, April 18, 2007 10:00 AM
> To: Mateusz Loskot
> Cc: gdal
> Subject: Re: [Gdal-dev] Re: GDAL C API in Delphi
> 
> On 4/17/07, Mateusz Loskot <mateusz at loskot.net> wrote:
>> Artur Redzko wrote:
>>> I hope that dev team will make use of this and import it gracefully
>>> into GDAL sources for further tests.
>> Frank,
>>
>> Should I try to include Artur's solution and DEF file to GDAL ?
> 
> Artur,
> 
> i'd appreciate your filing a proper ticket at:
> 
>   http://trac.osgeo.org/gdal
> 
> I skimmed your earlier message, but the text didn't really tell
> me anything about what the problem turned out to be, and I
> didn't have the time to dig through the zip file.
> 
> Assuming there is a clear action item, I'll have Mateusz take
> care of it.
> 
> Best regards,
> 


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




More information about the Gdal-dev mailing list