[GRASS5] Re: GRASS <-> GDAL circular references

Radim Blazek blazek at itc.it
Mon May 24 08:41:42 EDT 2004


On Friday 21 May 2004 18:12, Paul Kelly wrote:
> > You are right, there are OGR functions and it compiled because the
> > include is in gprojects.h.
> > BUT, it still works.
> > libgrass_gproj must not be linked against gdal.
> > The linking is done when binaries are linked with libgrass_gproj.
> > I made my changes to proj and compiled/linked it without gdal.
> > Then I went to general/g.proj and did a make.
> > It only complains about missing CPLFree, which I changed in the last
> > lines of convert.c to VSIFree( *ppszDatum ); then it worked fine.
> > g.proj is linked with gdal, libgrass_gproj not, so everything should be
> > fine now.
> > I couldn't try if g.proj works as it should, because I don't have a
> > working installation of grass57.
> > Please try that.
>
> Yes it will compile OK (though maybe not on all systems, e.g. Cygwin with
> shared DLLs) but that's not what the problem was: the circular dependencies
> in Radim's proposal for GDAL using GRASS shared libraies are still there
> and the dilemma is still valid (and I don't have the answer to that).

But it is true that gproj does not need to be (should not be) linked with
gdal library?
In general, should be EXTRA_LIBS removed from libraries' Makefiles?

Could it be gproj staticaly linked with libgdal.a?

Radim




More information about the grass-dev mailing list