4 | | You can use the regular CMake 32-bit binaries to build 64-bit and just extract somewhere: |
5 | | http://cmake.org/cmake/resources/software.html (I used the zip file http://www.cmake.org/files/v2.8/cmake-2.8.10-win32-x86.zip and extracted to folder |
6 | | latest now is http://www.cmake.org/files/v2.8/cmake-2.8.11-win32-x86.zip which should work fine and probably better and just extracted into folder C:\ming64\cmake-2.8.10.2-win32-x86 ) |
| 5 | Just for reference my preferred structure -- the way I have setup so I can build both 32-bit and 64-bit is like so |
| 6 | |
| 7 | {{{ |
| 8 | C:\ming64 |
| 9 | \projects |
| 10 | \mingw64 (this is where I extract the binaries for mingw I download from mingw64 site) |
| 11 | \msys (this is where I put the msys posix environment details [here http://sourceforge.net/apps/trac/mingw-w64/wiki/MSYS] ) |
| 12 | |
| 13 | C:\ming32 |
| 14 | \projects |
| 15 | \msys (exact copy of the above but I like to keep separate since some apps try to install local which gets stuck here) |
| 16 | \mingw32 (this is where I put the mingw64-w32 binaries I get from mingw-w64 (32-bit personal builds) ) |
| 17 | }}} |
| 18 | |
| 19 | |
| 20 | You can use the regular CMake 32-bit binaries to build 64-bit and just extract somewhere e.g. to root of |
| 21 | http://cmake.org/cmake/resources/software.html ( |
| 22 | latest now is http://www.cmake.org/files/v2.8/cmake-2.8.11-win32-x86.zip which should work fine C:\ming64\cmake-2.8.10.2-win32-x86 ) |
32 | | cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX:PATH=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD} -DHAVE_STD_ISNAN=1 -DHAVE_LONG_LONG_INT_64=1 -DGEOS_ENABLE_INLINE=ON -DGEOS_ENABLE_TESTS=ON ../../ |
| 50 | |
| 51 | ## if you are building with MSYS and 64-bit use this |
| 52 | ## if building for windows 64-bit you need to force the -DHAVE_LONG_LONG_INT_64 |
| 53 | ## because geos for some reason is can't figure this out |
| 54 | ## (for 32-bit you should leave it out) |
| 55 | ## Also not that the -DGEOS_ENABLE_INLINE=ON should in theory work but doesn't seem to |
| 56 | ## fully so it doesn't matter if you put it in since i have it hardcoded in my patch for mingw64 |
| 57 | |
| 58 | cmake -G "MSYS Makefiles" ../trunk -DCMAKE_INSTALL_PREFIX:PATH=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD} -DHAVE_STD_ISNAN=1 -DHAVE_LONG_LONG_INT_64=1 -DGEOS_ENABLE_INLINE=ON -DGEOS_ENABLE_TESTS=ON |