Changes between Version 25 and Version 26 of DevWikiWinMingW64_21


Ignore:
Timestamp:
Oct 13, 2013, 9:03:50 AM (11 years ago)
Author:
robe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • DevWikiWinMingW64_21

    v25 v26  
    33
    44If 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]
     5you 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]
    66Then 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
    77
    8 Please note that the ming32.zip can be used in windows xp 32-bit - windows 7 32-bit/64-bittt
     8For 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
     10Please note that the ming32.zip can be used in windows xp 32-bit - windows 7 32-bit/64-bit
    911Windows 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.
    1012We haven't ever tried trying to build 64-bit on 32-bit windows so not sure if that is possible.
     
    1618For building we always have these variables defined in our sh scripts
    1719You can switch the 64 to 32 if you are building with our ming32 environment.
    18 
     20Full script for dependencies you can download from [https://gist.github.com/robe2/5942642 https://gist.github.com/robe2/5942642]
    1921{{{
    2022export OS_BUILD=64
     
    3739mkdir proj
    3840mkdir docbook
     41mkdir gdal
    3942
    4043}}}
     
    4245== GDAL ==
    4346{{{
    44 export GDAL_VER=1.10.0
     47export GDAL_VER=1.10.1
    4548cd ${PROJECTS}/gdal
    4649wget http://download.osgeo.org/gdal/${GDAL_VER}/gdal-${GDAL_VER}.tar.gz
     
    7679We've never used the tar balls for GEOS we always build from svn
    7780and extract into the geos/branches/whateverversion
    78 If you are using svn version, make sure to run:
     81
    7982
    8083{{{
     84
     85export PATH="/mingw/bin:/mingw/include:/mingw/lib:/bin"
     86mkdir ${PROJECTS}/geos
     87mkdir ${PROJECTS}/geos/branches
     88cd ${PROJECTS}/geos/branches
     89svn checkout https://svn.osgeo.org/geos/trunk 3.4
     90cd ${PROJECTS}/geos/branches/3.4
     91svn update
     92export PATH="${PATH}:${CMAKE_PATH}/bin"
     93export GEOS_VER=3.4.0dev
     94#make distclean
    8195sh 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
     97tools/svn_repo_revision.sh
     98cd ../
     99rm -rf buildw${OS_BUILD}
     100mkdir -p buildw${OS_BUILD}
     101cd buildw${OS_BUILD}
     102if [[ "${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
     104else
     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
     106fi
     107 
    87108make
    88109make 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
     110make test
     111strip ${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}${GCC_TYPE}/bin/*.dll
     112
    91113}}}
    92114