Hi Ari,<br><br>I tried using the dll from FWTools. I installed the Windows version of FWTools 1.2.2 and then found the proj_fw.dll file in the "bin/" dir. I first followed your instructions and tried using the set command:
<br>set PROJSO=/cygdrive/c/FWTools1.2.2/bin/proj_fw.dll<br><br>This did not set the enviroment variable, but I went ahead and tested it and got the same error as before.<br><br>I then edited the /etc/profile dir in Cygwin and added the following entry:
<br>PROJSO=/cygdrive/c/FWTools1.2.2/bin/proj_fw.dll<br><br>After sourcing /etc/profile the environment variable appeared to be correctly set. I then tested the gdalwarp, and again got the same error.<br><br>I had a similar problem initially getting Python support in the gdal compile. This was resolved with Norman's help by setting the "--with-python" configure option. It seems like there is a definite "issue" that requires static libraries to be built when using GDAL and PROJ in Cygwin. I'm totally fine with that, but I'm lost regarding how to set my compile parameters. My guess is that the workflow should go something like this:
<br><br>- Install Cygwin<br>- install PROJ from source and set flags to create PROJ libraries (if needed)<br>- install GDAL from source and set flags to statically link to Python, PROJ, POSTGIS, etc<br><br>If that's the case, then the question becomes how to determine what the correct path is to those various libraries? I know this is dependent on the install location, but isn't there a default path?
<br><br>Thanks,<br><br>Roger<br><br><br><br><div><span class="gmail_quote">On 5/3/07, <b class="gmail_sendername">Ari Jolma</b> <<a href="mailto:ari.jolma@tkk.fi">ari.jolma@tkk.fi</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Roger André kirjoitti:<br>> I'm having problems with the GDAL installation I have running in<br>> Cygwin on Windows XP. It appears that GDAL is unable to find some of<br>> the proj libraries that it needs. I ran the following command:
<br>> gdalwarp -s_srs "EPSG:32651" -t_srs "EPSG:4326" input.tif output.tif<br>><br>> it gave this error when it ran:<br>><br>> ERROR 6: Unable to load PROJ.4 library (libproj.dll), creation of
<br>> OGRCoordinateTransformation failed.<br>><br><br><br>Roger,<br><br>If your proj4 DLL has another name use the command<br><br>set PROJSO=<name of the proj4 DLL><br><br>in the DOS prompt (if that's appropriate in Cygwin) and add the
<br>directory in which the DLL is into the path. You can get pre-compiled<br>proj4 DLL from several sources FWTools for example.<br><br>Regards,<br><br>Ari<br><br><br>> I did a search and found posts saying that I should download and
<br>> install proj from source, then compile GDAL with static linking to<br>> proj using the<br>> "--with-static-proj4" configure flag. I downloaded and installed<br>> proj-4.5.0 from source yesterday, but am unsure what path to give the
<br>> "--with-static-proj" option.<br>><br>> Can someone give me a few pointers about what I should look for?<br>><br>> Thanks,<br>><br>> Roger<br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<br>> Gdal-dev mailing list<br>> <a href="mailto:Gdal-dev@lists.maptools.org">Gdal-dev@lists.maptools.org</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/gdal-dev">
http://lists.maptools.org/mailman/listinfo/gdal-dev</a><br><br><br></blockquote></div><br>