| 1 | |
| 2 | == This is how I do it: == |
| 3 | |
| 4 | Note: Unix commands start with $, anything else will be notes, comments. |
| 5 | If you see a $ <some_command> // The part after slash slash is a comment. |
| 6 | |
| 7 | 1) Make a workspace: |
| 8 | |
| 9 | I have several workspaces under /work |
| 10 | |
| 11 | /work/osgeo |
| 12 | /work/geoeye |
| 13 | /work/drb |
| 14 | |
| 15 | To build the osgeo side: |
| 16 | |
| 17 | I have files that I source. One for osgeo one for geoeye. So I can source one or the other and then build test code. So in my bash start up scripts I start with no ossim stuff set. Since we're building osgeo I do: |
| 18 | |
| 19 | $ cd // cd to home |
| 20 | |
| 21 | Source my osgeo setup file. This sets OSSIM_HOME, OSSIM_PREFS_FILE and so on. File contents at end: |
| 22 | $ . ossimrc-osgeo |
| 23 | |
| 24 | $ cd /work/osgeo |
| 25 | |
| 26 | First time through check out code. Note I don't like to check out the whole trunk so I do pieces. |
| 27 | |
| 28 | I always build libtiff, geotiff, gdal from the latest. You don't have to, it's up to you. |
| 29 | |
| 30 | // Get libtiff |
| 31 | cvs -d :pserver:cvsanon@cvs.maptools.org:/cvs/maptools/cvsroot co libtiff |
| 32 | |
| 33 | // The geotiff source code is available via svn (subversion) server on: |
| 34 | http://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff |
| 35 | |
| 36 | // Get geotiff: |
| 37 | svn co http://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff |
| 38 | |
| 39 | // The gdal source code is available via svn (subversion) server on |
| 40 | http://svn.osgeo.org/gdal/trunk/gdal |
| 41 | |
| 42 | // Get gdal: |
| 43 | svn co http://svn.osgeo.org/gdal/trunk/gdal gdal |
| 44 | |
| 45 | |