Re: Re: [gdal-dev] driver question?
gispowerfan
gispowerfan at gmail.com
Wed Dec 2 22:52:18 EST 2009
thank you for your reply,
now I am confused that besides write makefile with plugin support in dirver dir, are there other changes? and are there any changes in our partner's dirver source? IN my opinion, gdal_FOO.dll is just the interface between FOO.DLL and gdal16.dll, and our partner need provid their dirver as xxx.dll?
Best
2009-12-03
gispowerfan
发件人: Even Rouault
发送时间: 2009-11-23 02:17:27
收件人: gispowerfan
抄送: gdal-dev
主题: Re: [gdal-dev] driver question?
The best solution would be that your partner delivers to you its driver
A compiled as a separate GDAL plugin (for example, if the driver
shortname is FOO : gdal_FOO.dll with an entry point GDALRegister_FOO()).
You then just have to define GDAL_DRIVER_PATH to point to the directory
where gdal_FOO.dll is. Be careful : you and your partner must use use
the same major GDAL version (identical X if GDAL version is 1.X.Y) to
compile & run against, otherwise there is a risk of C++ ABI
incompatibility. As far as your driver B is concerned, compiling it as a
plugin or fully integrated in your GDAL source tree is just a matter of
conveniency.
See http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/hdf5/makefile.vc
for an example of a makefile with a plugin target.
gispowerfan a écrit :
> Hi
>
> I want to ask a question about how to implement the driver
> for gdal. Because the partner don't provide their driver source(driver
> A) for gdal, but we need it and we have our own drivers(driver b) for
> gdal. So the easy way is that we provide the source contain driver B
> to our partner, and out partner add their source, then compile it,
> give us the final dll. Now the question is that we need upate our
> source frequently, are there other method? is if feasible that our
> partner change their souce code and put the implement code into *.lib
> and *.dll, just interface of driver A in frmts driver source?
>
> Best regards
>
> 2009-11-23
> ------------------------------------------------------------------------
> gispowerfan
> ------------------------------------------------------------------------
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20091203/8909a862/attachment.html
More information about the gdal-dev
mailing list