== This is how I do it: == == NOT COMPLETE! Coming soon... == Note: Unix commands start with $, anything else will be notes, comments. If you see a $ // The part after slash slash is a comment. '''Getting the packages you need with yum:'''[[BR]] After doing a fresh desktop install of Fedora these are some packages I usually need: {{{ sudo yum install ant ant-contrib ant-manual autogen automake autoconf boost boost-devel cmake cppunit cppunit-devel cvs gcc-c++ byacc expat-devel fftw flex git subversion libjpeg-turbo-devel freetype freetype-devel fftw-devel java-1.6.0-openjdk-devel libcurl-devel libcurl libpng-devel libpng libtool libXmu libXmu-devel minizip-devel podofo podofo-devel qt qt-devel swig thunderbird xemacs xemacs-common xemacs-info.noarch xemacs-packages-base.noarch xemacs-packages-extra-info.noarch xemacs-packages-extra.noarch yasm yasm-devel zlib-devel }}} '''Make a workspace:'''[[BR]] I have several workspaces under /work {{{ /work/osgeo /work/geoeye /work/drb }}} '''Building'''[[BR]] To build the osgeo side: 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: $ cd // cd to home Source my osgeo setup file. This sets OSSIM_HOME, OSSIM_PREFS_FILE and so on. File contents at end: $ . ossimrc-osgeo $ cd /work/osgeo // Make the directory(sandbox) for 3rd party dependencies:[[BR]] $ mkdir local First time through check out code. Note I don't like to check out the whole trunk so I do pieces. 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. NOTE: Things I build with cmake I use an "out of source" build so I put in a sub directory of the package. // Get geos: $ mkdir /work/osgeo/geos $ cd !$ // last argument of last command svn co http://svn.osgeo.org/geos/trunk geos-svn // Get libtiff[[BR]] $ cd /work/osgeo $ cvs -d :pserver:cvsanon@cvs.maptools.org:/cvs/maptools/cvsroot co libtiff // Get geotiff:[[BR]] $ mkdir /work/osgeo/geotiff $ cd !$ svn co http://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff libgeotiff // Get gdal:[[BR]] $ cd /work/osgeo svn co http://svn.osgeo.org/gdal/trunk/gdal // Build geos:[[BR]] $ cd /work/osgeo/geos[[BR]] $ mkdir build // "out of source" build dir[[BR]] $ cd build[[BR]] // Make a cmake config script[[BR]] $ xemacs geos-cmake-config.sh // Use whatever editor you want, gedit, whatever...[[BR]] // Contents of script:[[BR]] {{{ #!/bin/sh # --- # File: geos-cmake-config.sh # --- build_dir="/work/osgeo"; cmake -G "Unix Makefiles" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=${build_dir}/local \ -DCMAKE_MODULE_PATH=${build_dir}/geos/geos-svn/cmake/modules \ ../geos-svn }}} // Run the cmake command: