Changes between Version 6 and Version 7 of DavesFedoraCmakeBuildNotes
- Timestamp:
- Nov 19, 2011, 6:57:01 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DavesFedoraCmakeBuildNotes
v6 v7 10 10 '''Getting the packages you need with yum:'''[[BR]] 11 11 12 After doing a fresh desktop install of Fedora I usually add these:12 After doing a fresh desktop install of Fedora these are some packages I usually need: 13 13 14 14 {{{ 15 sudo yum install 16 }}} 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 }}} 17 17 18 18 … … 27 27 /work/drb 28 28 }}} 29 30 '''Building'''[[BR]] 29 31 30 32 To build the osgeo side: … … 41 43 First time through check out code. Note I don't like to check out the whole trunk so I do pieces. 42 44 43 I always build libtiff, geotiff, gdal from the latest. You don't have to, it's up to you. 45 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. 46 47 NOTE: 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 52 svn co http://svn.osgeo.org/geos/trunk geos-svn 44 53 45 54 // Get libtiff[[BR]] 55 $ cd /work/osgeo 46 56 $ cvs -d :pserver:cvsanon@cvs.maptools.org:/cvs/maptools/cvsroot co libtiff 47 57 48 58 // Get geotiff:[[BR]] 49 svn co http://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff 59 $ mkdir /work/osgeo/geotiff 60 $ cd !$ 61 svn co http://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff libgeotiff 50 62 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 65 svn co http://svn.osgeo.org/gdal/trunk/gdal 53 66 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 82 build_dir="/work/osgeo"; 83 84 cmake -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 }}} 56 90 57 91 92