Changes between Version 7 and Version 8 of UsersWikiWinCompile
- Timestamp:
- 04/15/09 12:09:38 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiWinCompile
v7 v8 35 35 8. Bison (kent.dl.sourceforge.net/sourceforge/gnuwin32/bison-2.1.exe) 36 36 9. zlib (kent.dl.sourceforge.net/sourceforge/gnuwin32/zlib-1.2.3.exe) 37 10. Flex ( http://kent.dl.sourceforge.net/sourceforge/gnuwin32/flex-2.5.4a-1.exe)38 11. GetText ( http://kent.dl.sourceforge.net/sourceforge/gnuwin32/gettext-0.14.4.exe)39 12. LibIconv ( http://kent.dl.sourceforge.net/sourceforge/gnuwin32/libiconv-1.9.2-1.exe)37 10. Flex (kent.dl.sourceforge.net/sourceforge/gnuwin32/flex-2.5.4a-1.exe) 38 11. GetText (kent.dl.sourceforge.net/sourceforge/gnuwin32/gettext-0.14.4.exe) 39 12. LibIconv (kent.dl.sourceforge.net/sourceforge/gnuwin32/libiconv-1.9.2-1.exe) 40 40 41 41 … … 107 107 '''Compiling PostgreSQL''' 108 108 109 Download latest PostgreSQL source and untar in C:\thesrc[[BR]]109 Download latest PostgreSQL source from http://www.postgresql.org/ftp/source/ and untar in C:\thesrc[[BR]] 110 110 move to folder[[BR]] 111 111 cd /c/thesrc/postgresql-8.3.7 (the version of today)[[BR]] … … 114 114 note that we now have changed the install-directory from mingw to postgres 115 115 116 if you get an error something like: 117 e:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sspi.h:60: error: syntax error before SECURITY_STRING 118 In file included from e:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/security.h:39, 119 from libpq-int.h:57, 120 from fe-auth.h:18, 121 from fe-auth.c:48: 116 if you get an error something like:[[BR]] 117 e:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sspi.h:60: error: syntax error before SECURITY_STRING[[BR]] 118 In file included from e:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/security.h:39,[[BR]] 119 from libpq-int.h:57,[[BR]] 120 from fe-auth.h:18,[[BR]] 121 from fe-auth.c:48:[[BR]] 122 122 e:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:123: error: syntax error before SECURITY_STRING 123 123 124 the solution is to edit two of the source-files. 125 In both files: 126 postgresql-8.3.7/src/include/libpq/libpq-be.h 127 and 124 the solution is to edit two of the source-files.[[BR]] 125 In both files:[[BR]] 126 postgresql-8.3.7/src/include/libpq/libpq-be.h[[BR]] 127 and[[BR]] 128 128 postgresql-8.3.7/src/interfaces/libpq/libpq-int.h: 129 129 130 add a new include-file: 131 #ifdef ENABLE_SSPI 132 #define SECURITY_WIN32 133 #include <ntsecapi.h> <- Add this include134 #include <security.h> 135 #undef SECURITY_WIN32 130 add a new include-file:[[BR]] 131 #ifdef ENABLE_SSPI[[BR]] 132 #define SECURITY_WIN32[[BR]] 133 #include <ntsecapi.h> '''<- Add this include'''[[BR]] 134 #include <security.h>[[BR]] 135 #undef SECURITY_WIN32[[BR]] 136 136 137 read about this here: 138 pgolub.wordpress.com/2008/12/15/building-postgresql-client-library-using-mingw-under-winxp-sp3/ 139 and 140 postgresqlorg.blogspot.com/2008/09/hackers-83-4-vista-mingw-initdb.html 137 read about this here:[[BR]] 138 pgolub.wordpress.com/2008/12/15/building-postgresql-client-library-using-mingw-under-winxp-sp3/[[BR]] 139 and[[BR]] 140 postgresqlorg.blogspot.com/2008/09/hackers-83-4-vista-mingw-initdb.html[[BR]] 141 141 142 '''Compiling GEOS'''[[BR]] 143 Download latest GEOS -- from trac.osgeo.org/geos/ (download.osgeo.org/geos/geos-3.1.0rc2.tar.bz2)[[BR]] 144 Do the same as with postgresql, extract to c:\thesrc[[BR]] 145 in msys terminal print[[BR]] 146 configure --prefix-/c/postgres && make && make install[[BR]] 142 147 143 Compiling GEOS 144 Download latest GEOS -- from trac.osgeo.org/geos/ (download.osgeo.org/geos/geos-3.1.0rc2.tar.bz2) 145 Do the same as with postgresql, extract to c:\thesrc 146 in msys terminal print 148 '''Compiling Proj'''[[BR]] 149 Download latest Proj -- from trac.osgeo.org/proj/ (download.osgeo.org/proj/proj-4.6.1.zip)[[BR]] 150 in msys terminal print[[BR]] 147 151 configure --prefix-/c/postgres && make && make install 148 152 149 Compiling Proj 150 Download latest Proj -- from trac.osgeo.org/proj/ (download.osgeo.org/proj/proj-4.6.1.zip) 151 in msys terminal print 152 configure --prefix-/c/postgres && make && make install 153 '''Compiling PostGIS SVN 1.4''' 154 1. Download postgis.refractions.net/download/postgis-1.4.0SVN.tar.gz and put in C:/thesrc 155 2. cd /c/thesrc 156 3. gzip -d -c postgis-1.4.0SVN.tar.gz | tar xvf - 157 4. cd postgis-svn 158 5. configure --prefix=/c/postgresql --with-pgconfig=/c/postgresql/bin/pg_config -with-geosconfig=/c/postgresql/bin/geos-config --with-projdir=/c/postgresql 159 6. make 160 7. make install 161 8. copy postgis-1.4.dll from C:\postgresql\lib to your windows PostgreSQL lib folder 162 9. copy C:\postgresql\bin\libgeos-3-1-0.dll and libgeos_c-1.dll to your PostgreSQL bin folder 163 153 164 154 Compiling PostGIS SVN 1.4155 1. Download postgis.refractions.net/download/postgis-1.4.0SVN.tar.gz and put in C:/thesrc156 2. cd /c/thesrc157 3. gzip -d -c postgis-1.4.0SVN.tar.gz | tar xvf -158 4. cd postgis-svn159 5. configure --prefix=/c/postgresql --with-pgconfig=/c/postgresql/bin/pg_config -with-geosconfig=/c/postgresql/bin/geos-config --with-projdir=/c/postgresql160 6. make161 7. make install162 8. copy postgis-1.4.dll from C:\postgresql\lib to your windows PostgreSQL lib folder163 9. copy C:\postgresql\bin\libgeos-3-1-0.dll and libgeos_c-1.dll to your PostgreSQL bin folder164