<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Error in ogrct.cpp file in ogr
folder</title></head><body>
<div>Hi all</div>
<div><br></div>
<div>I have a problem with GDAL linked to PROJ library not installed
in default directory (usr/local).</div>
<div><br></div>
<div>THIS PROBLEM IS ONLY CONNECTED TO RASTER REPROJECTION. Example in
THUBAN software (it works with GDAL-OGR) you can reproject vector
files but with raster you have always this error:</div>
<div><br></div>
<div>ERROR 6: Unable to load PROJ.4 library (libproj.dylib), creation
of</div>
<div>OGRCoordinateTransformation failed.<br>
</div>
<div>I have a Mac OS X and in the file ogr/ogrct.cpp row 144-148 I
have changed:</div>
<div><br></div>
<blockquote> #ifdef WIN32</blockquote>
<blockquote> # define LIBNAME
"proj.dll"</blockquote>
<blockquote> #else</blockquote>
<blockquote>- # define LIBNAME
"libproj.so"</blockquote>
<blockquote> #endif</blockquote>
<blockquote><br></blockquote>
<blockquote> #ifdef WIN32</blockquote>
<blockquote> # define LIBNAME
"proj.dll"</blockquote>
<blockquote> #else</blockquote>
<blockquote>+ # define LIBNAME
"libproj.dylib"</blockquote>
<blockquote> #endif</blockquote>
<blockquote><br></blockquote>
<div>I have tried in configure 2 way: proj linked normal (default) and
linked static.</div>
<div><br></div>
<div>I use GDAL with different software and I built PROJ and GDAL in
different folders. I use in configure:</div>
<div>--prefix/usr/local/grasslib</div>
<div>or</div>
<div>--prefix/usr/local/thubanlib</div>
<div><br></div>
<div>and so on.</div>
<div><br></div>
<div>I have need of different proj and gdal for building stand-alone
application.</div>
<div>I don't work in /usr/local standard location.</div>
<div><br></div>
<div>I have discovered a wrong link inside my libgdal.dylib about the
link to libproj.dylib library outside normal /usr/local/lib
folder.</div>
<div><br></div>
<div>SITUATION</div>
<div>Now GDAL+PROJ only works for raster projections if PROJ has a sym
link ALWAYS in:</div>
<div>/usr/local/lib/libproj.dylib</div>
<div>linked to my proj installation outside /usr/local folder</div>
<div><br></div>
<div>GDAL DOESN'T WORK FOR RASTER PROJECTIONS IF IT DOESN'T SEE THE
/usr/local/lib/libproj.dylib file (or sym link).</div>
<div><br></div>
<div>This is an error in GDAL library. GDAL must work outside normal
/usr/local folder installation.</div>
<div><br></div>
<div><br></div>
<div>Bye</div>
<div><br></div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><font face="Verdana" size="-4"
color="#000000"
>____________________________________________________________________<span
></span>____</font></div>
<div><font face="Courier New" size="-4"
color="#000000">|| Lorenzo
Moretti e-mail:
lorenzo.moretti@bologna.enea.it </font></div
>
<div><font face="Courier New" size="-4" color="#000000">||/|/|
ENEA prot/idr
Web:
http://wwwamb.bologna.enea.it/ </font></div>
<div><font face="Courier New" size="-4" color="#000000">||
| via Don Fiammelli, 2 FTP:
ftp://ftpamb.bologna.enea.it/ (ris.)</font></div>
<div><font face="Courier New" size="-4" color="#000000">~~~~~~
40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax:
+39-0516098131</font></div>
<div><font face="Courier New" size="-4"
color="#000000"
>____________________________________________________________________<span
></span>____</font></div>
</body>
</html>