<div dir="ltr">Hi Nikos,<br><br>On Mon, Feb 3, 2020 at 7:28 PM Nikos Alexandris <<a href="mailto:nik@nikosalexandris.net">nik@nikosalexandris.net</a>> wrote:<br>><br>> >>I got it working, more or less. Recompiling only PROJ did away most of<br>> >>the errors but a few. I guess I need to recompile PROJ (+GEOS), then<br>> >>GDAL, then the rest.<br>> ><br>> >Still need to fix a few more:<br>> ><br>> >Errors in:<br>> >/osgeo/grass/general/g.proj<br>> >/osgeo/grass/general/g.region<br>> >/osgeo/grass/raster/r.horizon<br>> >/osgeo/grass/raster/r.sun<br>> >/osgeo/grass/raster3d/r3.out.netcdf<br>> ><br>> >```<br>><br>> Fixed, I had to remove left-over files from previous PROJ<br>> installation(s).<br>><br>> (...why is there no `make uninstall` for PROJ, GEOS, etc.?)<br><div><br></div><div>if you compile from source, it is mostly your responsibility to clean up old installations. Generally, cleaning up should happen in</div><div>${prefix}/lib[64]</div><div>${prefix}/include</div><div>${prefix}/share</div><div><br></div><div>regarding PROJ, cleaning up ${prefix}/share with the proj.db and grids is quite important because PROJ is evolving fast and any leftovers from a previous installation might confuse software compiled against PROJ.</div><div><br></div><div>Regarding GDAL compilation against PROJ, there was in GDAL 2 the configure option</div><div>--with-static-proj4=ARG Compile with PROJ.4 statically (deprecated, use --with-proj instead) (ARG=no or path)</div><div>in GDAL 3 there is only</div><div>--with-proj=ARG Compile with PROJ.x (ARG=yes or path)</div><div><br></div><div>This static proj linking in GDAL does not mean to link against a static PROJ library, but to statically link against a given dynamic PROJ library, i.e. the same PROJ library used at compile time will also be used at run time. This is important to make sure that GDAL is not suddenly picking a different PROJ library at run time when a new PROJ library becomes available.<br></div><div><br></div><div>I ran in all these problems myself when adding support for PROJ 4, 5, and 6 in GRASS.</div><div><br></div><div>Markus M<br></div><br></div>