| 29 | |
| 30 | |
| 31 | '''Make a workspace:'''[[BR]] |
| 32 | |
| 33 | // Top level, this is OSSIM_DEV_HOME:[[BR]] |
| 34 | D:\> mkdir dev\vs10_x64 |
| 35 | |
| 36 | [[BR]] |
| 37 | // ossim build dir:[[BR]] |
| 38 | D:\> cd dev\vs10_x64 |
| 39 | D:\dev\vs10_x64> mkdir build |
| 40 | |
| 41 | // Sandbox for 3rd party dependencies:[[BR]] |
| 42 | D:\dev\vs10_x64> mkdir deps[[BR]] |
| 43 | |
| 44 | |
| 45 | '''Building'''[[BR]] |
| 46 | |
| 47 | // Source the bat file for environment variables.[[BR]] |
| 48 | D:\> D:\dev\ossim-vs10.bat |
| 49 | |
| 50 | First time through check out code. Note I don't like to check out the whole trunk so I do pieces. |
| 51 | |
| 52 | I always build geos, libtiff, geotiff, gdal from the latest. You don't have to, it's up to you. Most of these you can get from yum but I find the code is usually way behind. |
| 53 | |
| 54 | NOTE: Things I build with cmake I use an "out of source" build so I put in a sub directory of the package. |
| 55 | |
| 56 | '''geos:'''[[BR]] |
| 57 | // Needed by ossim.[[BR]] |
| 58 | > mkdir %OSSIM_DEV_HOME%\geos[[BR]] |
| 59 | > cd %OSSIM_DEV_HOME%\geos[[BR]] |
| 60 | // Get code from svn or optionally download a release.[[BR]] |
| 61 | > svn co http://svn.osgeo.org/geos/trunk geos-svn[[BR]] |
| 62 | |
| 63 | // Make a cmake config script[[BR]] |
| 64 | > xemacs geos-cmake-config.bat // Use whatever editor you want, notepad, whatever...[[BR]] |
| 65 | // Contents of script:[[BR]] |
| 66 | |
| 67 | {{{ |
| 68 | ::--- |
| 69 | :: File: geos-cmake-config.bat |
| 70 | ::--- |
| 71 | |
| 72 | :: Development root dir: |
| 73 | set dev=%OSSIM_DEV_HOME_FS% |
| 74 | |
| 75 | cmake -G "NMake Makefiles" ^ |
| 76 | -DCMAKE_BUILD_TYPE=Release ^ |
| 77 | -DCMAKE_INSTALL_PREFIX=%dev%/deps ^ |
| 78 | ../geos-svn |
| 79 | }}} |
| 80 | |
| 81 | > mkdir build // "out of source" build dir[[BR]] |
| 82 | > cd build[[BR]] |
| 83 | |
| 84 | // Run the cmake command to set up the build system:[[BR]] |
| 85 | > ..\geos-cmake-config.sh |
| 86 | |
| 87 | // Make:[[BR]] |
| 88 | > nmake |
| 89 | |
| 90 | // Install to sandbox:[[BR]] |
| 91 | $ nmake install |
| 92 | |
| 93 | // End of GEOS |