Changes between Version 25 and Version 26 of DevWikiWinMingW64_21
- Timestamp:
- 10/13/13 09:03:50 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevWikiWinMingW64_21
v25 v26 3 3 4 4 If you want to get to the last step fast to immediately start compiling PostGIS without having to compile the dependencies, 5 you can download our prepared mingw64+msys build environment which you can download from [http://www.bostongis.com/postgisstuff/ming64.zip] and for 32-bit (for PostgreSQL 9.2 +(32-bit 9.1 and below have to use old msys chain) [http://www.bostongis.com/postgisstuff/ming32.zip]5 you can download our prepared mingw64+msys build environment which you can download from [http://www.bostongis.com/postgisstuff/ming64.zip] and for 32-bit (for PostgreSQL 9.2 (32-bit 9.1 and below have to use old msys chain) [http://www.bostongis.com/postgisstuff/ming32.zip] 6 6 Then you just extract the zip so you have ming32 and or ming64 on your C:\ming32, C:\ming64 and launch the corresponding msys\msys.bat 7 7 8 Please note that the ming32.zip can be used in windows xp 32-bit - windows 7 32-bit/64-bittt 8 For PostgreSQL 9.3+ we build with GCC 4.8 chain -- [http://www.bostongis.com/postgisstuff/ming64gcc48.zip], [http://www.bostongis.com/postgisstuff/ming32gcc48.zip] 9 10 Please note that the ming32.zip can be used in windows xp 32-bit - windows 7 32-bit/64-bit 9 11 Windows 7 64-bit can definitely build for both the 32-bit and 64-bit by downloading both the ming32 and ming64 and launching the corresponding msys.bat. 10 12 We haven't ever tried trying to build 64-bit on 32-bit windows so not sure if that is possible. … … 16 18 For building we always have these variables defined in our sh scripts 17 19 You can switch the 64 to 32 if you are building with our ming32 environment. 18 20 Full script for dependencies you can download from [https://gist.github.com/robe2/5942642 https://gist.github.com/robe2/5942642] 19 21 {{{ 20 22 export OS_BUILD=64 … … 37 39 mkdir proj 38 40 mkdir docbook 41 mkdir gdal 39 42 40 43 }}} … … 42 45 == GDAL == 43 46 {{{ 44 export GDAL_VER=1.10. 047 export GDAL_VER=1.10.1 45 48 cd ${PROJECTS}/gdal 46 49 wget http://download.osgeo.org/gdal/${GDAL_VER}/gdal-${GDAL_VER}.tar.gz … … 76 79 We've never used the tar balls for GEOS we always build from svn 77 80 and extract into the geos/branches/whateverversion 78 If you are using svn version, make sure to run: 81 79 82 80 83 {{{ 84 85 export PATH="/mingw/bin:/mingw/include:/mingw/lib:/bin" 86 mkdir ${PROJECTS}/geos 87 mkdir ${PROJECTS}/geos/branches 88 cd ${PROJECTS}/geos/branches 89 svn checkout https://svn.osgeo.org/geos/trunk 3.4 90 cd ${PROJECTS}/geos/branches/3.4 91 svn update 92 export PATH="${PATH}:${CMAKE_PATH}/bin" 93 export GEOS_VER=3.4.0dev 94 #make distclean 81 95 sh autogen.sh 82 cd ${PROJECTS}/geos/branches/3.4 83 export GEOS_VER=3.4.0dev 84 85 sh autogen.sh 86 ./configure --build=${MINGHOST} --prefix=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD} | tee /c/geos_configure_3.4w${OS_BUILD}.log 96 #if building from svn 97 tools/svn_repo_revision.sh 98 cd ../ 99 rm -rf buildw${OS_BUILD} 100 mkdir -p buildw${OS_BUILD} 101 cd buildw${OS_BUILD} 102 if [[ "${OS_BUILD}" == "64" ]] ; then 103 cmake -G "MSYS Makefiles" DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}${GCC_TYPE} -DHAVE_STD_ISNAN=1 -DHAVE_LONG_LONG_INT_64=1 -DGEOS_ENABLE_INLINE=NO -DGEOS_ENABLE_TESTS=ON - ../3.4 104 else 105 cmake -G "MSYS Makefiles" DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}${GCC_TYPE} -DHAVE_STD_ISNAN=1 -DGEOS_ENABLE_INLINE=NO -DGEOS_ENABLE_TESTS=ON - ../3.4 106 fi 107 87 108 make 88 109 make install 89 make check | tee /c/geos_check_3.4_w${OS_BUILD}.log 90 strip ${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}/bin/*.dll 110 make test 111 strip ${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}${GCC_TYPE}/bin/*.dll 112 91 113 }}} 92 114