131 | | '''OpenThreads:'''[[BR]] |
132 | | // ossim has an OpenThreads dependency. If you are building OpenSceneGraph for ossimplanet it is in there; else, get it from yum.[[BR]] |
133 | | $ sudo yum install OpenThreads-devel[[BR]] |
134 | | |
135 | | // End of OpenThreads |
| 131 | '''PROJ4:'''[[BR]] |
| 132 | $ mkdir /work/osgeo/proj[[BR]] |
| 133 | $ cd !$ // last argument of last command[[BR]] |
| 134 | $ svn co http://svn.osgeo.org/metacrs/proj/trunk/proj proj-svn[[BR]] |
| 135 | $ mkdir build // "out of source" build dir[[BR]] |
| 136 | $ cd build[[BR]] |
| 137 | // Make a cmake config script[[BR]] |
| 138 | $ xemacs geos-cmake-config.sh // Use whatever editor you want, gedit, whatever...[[BR]] |
| 139 | // Contents of script:[[BR]] |
| 140 | |
| 141 | {{{ |
| 142 | #!/bin/sh |
| 143 | |
| 144 | # --- |
| 145 | # File: geos-cmake-config.sh |
| 146 | # --- |
| 147 | |
| 148 | build_dir="/work/osgeo"; |
| 149 | |
| 150 | cmake -G "Unix Makefiles" \ |
| 151 | -DCMAKE_BUILD_TYPE=Release \ |
| 152 | -DCMAKE_INSTALL_PREFIX=${build_dir}/local \ |
| 153 | -DCMAKE_MODULE_PATH=${build_dir}/geos/geos-svn/cmake/modules \ |
| 154 | ../geos-svn |
| 155 | |
| 156 | }}} |
| 157 | |
| 158 | // Make the script executable:[[BR]] |
| 159 | $ chmod 755 geos-cmake-config.sh |
| 160 | |
| 161 | // Run the cmake command to set up the build system:[[BR]] |
| 162 | $ ./geos-cmake-config.sh |
| 163 | |
| 164 | // Make - note the "-j 4" is to use 4 threads.[[BR]] |
| 165 | $ make -j 4 |
| 166 | |
| 167 | // Install to sandbox:[[BR]] |
| 168 | $ make install // Note if your sandbox was on a system slice, i.e. /usr/local you would do: "sudo make install" |
| 169 | |
| 170 | // End of PROJ4 |
| 171 | |