Changes between Version 6 and Version 7 of DavesFedoraCmakeBuildNotes


Ignore:
Timestamp:
Nov 19, 2011, 6:57:01 AM (13 years ago)
Author:
dburken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DavesFedoraCmakeBuildNotes

    v6 v7  
    1010'''Getting the packages you need with yum:'''[[BR]]
    1111
    12 After doing a fresh desktop install of Fedora I usually add these:
     12After doing a fresh desktop install of Fedora these are some packages I usually need:
    1313
    1414{{{
    15 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
    16 }}}
     15sudo 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
     16}}} 
    1717
    1818
     
    2727/work/drb
    2828}}}
     29
     30'''Building'''[[BR]]
    2931
    3032To build the osgeo side:
     
    4143First time through check out code.  Note I don't like to check out the whole trunk so I do pieces.
    4244
    43 I always build libtiff, geotiff, gdal from the latest.  You don't have to, it's up to you.
     45I 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.
     46
     47NOTE: Things I build with cmake I use an "out of source" build so I put in a sub directory of the package.
     48
     49// Get geos:
     50$ mkdir /work/osgeo/geos
     51$ cd !$ // last argument of last command
     52svn co http://svn.osgeo.org/geos/trunk geos-svn
    4453
    4554// Get libtiff[[BR]]
     55$ cd /work/osgeo
    4656$ cvs -d :pserver:cvsanon@cvs.maptools.org:/cvs/maptools/cvsroot co libtiff
    4757
    4858// Get geotiff:[[BR]]
    49 svn co http://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff
     59$ mkdir /work/osgeo/geotiff
     60$ cd !$
     61svn co http://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff libgeotiff
    5062
    51 // The gdal source code is available via svn (subversion) server on
    52 http://svn.osgeo.org/gdal/trunk/gdal
     63// Get gdal:[[BR]]
     64$ cd /work/osgeo
     65svn co http://svn.osgeo.org/gdal/trunk/gdal
    5366
    54 // Get gdal:
    55 svn co http://svn.osgeo.org/gdal/trunk/gdal gdal
     67// Build geos:
     68$ cd /work/osgeo/geos
     69$ mkdir build // "out of source" build dir
     70$ cd build
     71// Make a cmake config script
     72$ xemacs geos-cmake-config.sh // Use whatever editor you want, gedit, whatever...
     73// Contents of script:[[BR]]
     74
     75{{{
     76#!/bin/sh
     77
     78# ---
     79# File: geos-cmake-config.sh
     80# ---
     81
     82build_dir="/work/osgeo";
     83
     84cmake -G "Unix Makefiles" \
     85-DCMAKE_BUILD_TYPE=Release \
     86-DCMAKE_INSTALL_PREFIX=${build_dir}/local \
     87-DCMAKE_MODULE_PATH=${build_dir}/geos/geos-svn/cmake/modules \
     88../geos-svn
     89}}}
    5690
    5791
     92