patch to fix OGR support with cygwin
Cygwin libraries are prefixed by cyg and not lib !
Here is a patch fixing it.
diff -ur gdal-1.6.1/ogr/ogrct.cpp gdal-1.6.1.new/ogr/ogrct.cpp
--- gdal-1.6.1/ogr/ogrct.cpp 2008-09-16 10:32:39.000000000 +0200
+++ gdal-1.6.1.new/ogr/ogrct.cpp 2009-12-23 21:05:13.562500000 +0100
@@ -69,7 +69,7 @@
#if (defined(WIN32) || defined(WIN32CE)) && !defined(__MINGW32__)
# define LIBNAME "proj.dll"
-#elif defined(__CYGWIN__) || defined(__MINGW32__)
+#elif defined(__MINGW32__)
// XXX: If PROJ.4 library was properly built using libtool in Cygwin or MinGW
// environments it has the interface version number embedded in the file name
// (it is CURRENT-AGE number). If DLL came somewhere else (e.g. from MSVC
@@ -77,6 +77,8 @@
// specify the right library name. By default assume that in Cygwin/MinGW all
// components were buit in the same way.
# define LIBNAME "libproj-0.dll"
+#elif defined(__CYGWIN__)
+# define LIBNAME "cygproj-0.dll"
#elif defined(__APPLE__)
# define LIBNAME "libproj.dylib"
#else
Change History
(5)
Priority: |
normal → highest
|
Component: |
default → OGR_SRS
|
Keywords: |
proj added
|
Milestone: |
→ 1.7.0
|
Priority: |
highest → normal
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
A better patch not to ignore the settings value if defined