243 | | svn co http://svn.osgeo.org/ossim/omar omar[[BR]] |
244 | | svn co http://svn.osgeo.org/ossim/trunk/oms oms[[BR]] |
245 | | svn co http://svn.osgeo.org/ossim/trunk/ossim ossim[[BR]] |
246 | | svn co http://svn.osgeo.org/ossim/trunk/ossimGui ossimGui[[BR]] |
247 | | svn co http://svn.osgeo.org/ossim/trunk/ossim_jni ossimjni[[BR]] |
248 | | svn co http://svn.osgeo.org/ossim/trunk/ossim_package_support ossim_package_support // If you haven't already.[[BR]] |
249 | | svn co http://svn.osgeo.org/ossim/trunk/ossim_plugins ossim_plugins[[BR]] |
250 | | svn co http://svn.osgeo.org/ossim/trunk/ossim_qt ossim_qt[[BR]] |
251 | | |
252 | | |
253 | | |
254 | | |
255 | | |
256 | | |
257 | | |
258 | | |
259 | | |
260 | | |
| 243 | $ cd /work/osgeo |
| 244 | $ svn co http://svn.osgeo.org/ossim/omar omar[[BR]] |
| 245 | $ svn co http://svn.osgeo.org/ossim/trunk/oms oms[[BR]] |
| 246 | $ svn co http://svn.osgeo.org/ossim/trunk/ossim ossim[[BR]] |
| 247 | $ svn co http://svn.osgeo.org/ossim/trunk/ossimGui ossimGui[[BR]] |
| 248 | $ svn co http://svn.osgeo.org/ossim/trunk/ossim_jni ossimjni[[BR]] |
| 249 | $ svn co http://svn.osgeo.org/ossim/trunk/ossim_package_support ossim_package_support // If you haven't already.[[BR]] |
| 250 | $ svn co http://svn.osgeo.org/ossim/trunk/ossim_plugins ossim_plugins[[BR]] |
| 251 | $ svn co http://svn.osgeo.org/ossim/trunk/ossim_qt ossim_qt[[BR]] |
| 252 | |
| 253 | $ mkdir build // "out of source" build dir[[BR]] |
| 254 | $ cd build[[BR]] |
| 255 | // Make a cmake config script[[BR]] |
| 256 | $ xemacs ossim-cmake-config.sh // Use whatever editor you want, gedit, whatever...[[BR]] |
| 257 | // Contents of script:[[BR]] |
| 258 | |
| 259 | {{{ |
| 260 | #!/bin/sh |
| 261 | |
| 262 | # File: ossim-cmake-config.sh |
| 263 | |
| 264 | build_dir="/work/osgeo"; |
| 265 | |
| 266 | cmake -G "Unix Makefiles" \ |
| 267 | -DBUILD_CSMAPI=OFF \ |
| 268 | -DBUILD_LIBRARY_DIR=lib \ |
| 269 | -DBUILD_OMS=ON \ |
| 270 | -DBUILD_OSSIM=ON \ |
| 271 | -DBUILD_OSSIM_PLUGIN=ON \ |
| 272 | -DBUILD_OSSIMCONTRIB_PLUGIN=OFF \ |
| 273 | -DBUILD_OSSIMCSM_PLUGIN=OFF \ |
| 274 | -DBUILD_OSSIMGEOPDF_PLUGIN=ON \ |
| 275 | -DBUILD_OSSIMGDAL_PLUGIN=ON \ |
| 276 | -DBUILD_OSSIMHDF_PLUGIN=OFF \ |
| 277 | -DBUILD_OSSIMKAKADU_PLUGIN=ON \ |
| 278 | -DBUILD_OSSIMKMLSUPEROVERLAY_PLUGIN=ON \ |
| 279 | -DBUILD_OSSIMLAS_PLUGIN=ON \ |
| 280 | -DBUILD_OSSIMLIBLAS_PLUGIN=ON \ |
| 281 | -DBUILD_OSSIMLIBRAW_PLUGIN=ON \ |
| 282 | -DBUILD_OSSIMMRSID_PLUGIN=ON \ |
| 283 | -DBUILD_OSSIMNDF_PLUGIN=ON \ |
| 284 | -DBUILD_OSSIMNUI_PLUGIN=OFF \ |
| 285 | -DBUILD_OSSIMOPENJPEG_PLUGIN=ON \ |
| 286 | -DBUILD_OSSIMPNG_PLUGIN=ON \ |
| 287 | -DBUILD_OSSIMREGISTRATION_PLUGIN=ON \ |
| 288 | -DBUILD_OSSIMQT4=ON \ |
| 289 | -DBUILD_OSSIMGUI=ON \ |
| 290 | -DBUILD_OSSIM_MPI_SUPPORT=OFF \ |
| 291 | -DBUILD_OSSIMPLANET=OFF \ |
| 292 | -DBUILD_OSSIMPLANETQT=OFF \ |
| 293 | -DBUILD_OSSIMPREDATOR=ON \ |
| 294 | -DBUILD_OSSIM_TEST_APPS=ON \ |
| 295 | -DBUILD_RUNTIME_DIR=bin \ |
| 296 | -DBUILD_SHARED_LIBS=ON \ |
| 297 | -DBUILD_WMS=ON \ |
| 298 | -DCMAKE_BUILD_TYPE=Debug \ |
| 299 | -DCMAKE_INCLUDE_PATH=${build_dir}/local/include \ |
| 300 | -DCMAKE_INSTALL_PREFIX=${build_dir}/local \ |
| 301 | -DCMAKE_LIBRARY_PATH=${build_dir}/local/lib \ |
| 302 | -DCMAKE_MODULE_PATH=${build_dir}/ossim_package_support/cmake/CMakeModules \ |
| 303 | -DKAKADU_ROOT_SRC=/work/drb/kakadu/latest \ |
| 304 | -DKAKADU_AUX_LIBRARY=${build_dir}/local/lib64/libkdu_a64R.so \ |
| 305 | -DKAKADU_LIBRARY=${build_dir}/local/lib64/libkdu_v64R.so \ |
| 306 | -DMPI_INCLUDE_PATH=/usr/include/openmpi-x86_64 \ |
| 307 | -DMPI_LIBRARY=/usr/lib64/openmpi/lib/libmpi.so \ |
| 308 | -DMRSID_DIR=${build_dir}/mrsid \ |
| 309 | -DOSSIM_BUILD_ADDITIONAL_DIRECTORIES="${build_dir}/ossimjni;${build_dir}/Rapier" \ |
| 310 | -DOSSIM_COMPILE_WITH_FULL_WARNING=ON \ |
| 311 | -DOSSIM_DEPENDENCIES=${build_dir}/local \ |
| 312 | -DOSSIM_DEV_HOME=${build_dir} \ |
| 313 | -DOSSIM_INSTALL_PLUGINS_WITH_VERSION=OFF \ |
| 314 | -DOSSIM_LIBRARIES=${build_dir}/build/lib/libossim.so \ |
| 315 | -DOSSIM_PLUGIN_LINK_TYPE=MODULE \ |
| 316 | -DOSSIMPLANET_ENABLE_EPHEMERIS=ON \ |
| 317 | ../ossim_package_support/cmake/ |
| 318 | |
| 319 | |
| 320 | }}} |
| 321 | |
| 322 | // Make the script executable:[[BR]] |
| 323 | $ chmod 755 geos-cmake-config.sh |
| 324 | |
| 325 | // Run the cmake command to set up the build system:[[BR]] |
| 326 | $ ./geos-cmake-config.sh |
| 327 | |
| 328 | // Make - note the "-j 4" is to use 4 threads.[[BR]] |
| 329 | $ make -j 4 |
| 330 | |
| 331 | // Install to sandbox:[[BR]] |
| 332 | $ make install // Note if your sandbox was on a system slice, i.e. /usr/local you would do: "sudo make install" |
| 333 | |
| 334 | // End of GEOS |
| 335 | |
| 336 | |
| 337 | |
| 338 | |
| 339 | |
| 340 | |
| 341 | |
| 342 | |
| 343 | |