Changes between Version 1 and Version 2 of unixinstallnotes
- Timestamp:
- 11/25/08 19:35:49 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified unixinstallnotes
v1 v2 1 1 Compiling OSSIM on a 64 bit machine 2 Date written 20 Jul 2008 3 Mark Lucas, 4 with assistance from Garrett Potts, Scott Bortman, Patrick Depret, and Nikki Burns 2 3 Date written 20 Jul 2008 4 Mark Lucas, 5 with assistance from Garrett Potts, Scott Bortman, Patrick Depret, and Nikki Burns 5 6 6 7 Installing the Source Code: … … 8 9 Assuming a default installation from source in your home directory: 9 10 11 {{{ 10 12 cd 11 13 mkdir Development … … 13 15 mkdir ossimsource 14 16 cd ossimsource 17 }}} 15 18 16 19 for a system install 20 {{{ 17 21 cd /usr/local 18 22 su … … 23 27 chmod 775 ossim 24 28 exit 29 }}} 25 30 26 31 This approach will allow you to install with out super user privs into /usr/local/ossim 27 32 28 33 29 30 31 34 To check out the entire source code tree from svn, you must be connected to the internet and type: 32 35 36 {{{ 33 37 svn co http://svn.osgeo.org/ossim/trunk . (note the trailing dot) 38 }}} 34 39 35 40 Alternatively, if you have a packaged source files: 36 Copy and unpack the files in the Development directory, for example:37 38 Locate the source files39 Copy to the source file location40 uncompress them41 set up the target directory for the ossim install (/usr/local/ossim shown above)42 ensure that all required compiler packages are available on your system43 Verify that all required complier components exist on the system. If the target OS is Redhat Enterprise 5, any missing packages can be obtained from the Install DVD #1 of 1 (for 64 bit AMD and Intel64). Note, some of the underscores may be dashes and vice versa.41 Copy and unpack the files in the Development directory, for example: 42 43 * Locate the source files 44 * Copy to the source file location 45 * uncompress them 46 * set up the target directory for the ossim install (/usr/local/ossim shown above) 47 * ensure that all required compiler packages are available on your system 48 * Verify that all required complier components exist on the system. If the target OS is Redhat Enterprise 5, any missing packages can be obtained from the Install DVD #1 of 1 (for 64 bit AMD and Intel64). Note, some of the underscores may be dashes and vice versa. 44 49 45 50 The rpm installs were on a RHEL 5 server with no development libraries installed. If the packages are already on the machine, the following commands will simply report that it is already installed. No harm will come from running these items. If there is arequired package that is not available, the rpm program will report this as well. In that event, just find the required packages, install and add it to the list below: 46 51 52 {{{ 47 53 cd /media/RHEL_5x86_64DVD/Server 48 54 … … 56 62 rpm -i pcre-devel-6.6-2.el5_1.7.x86_64.rpm 57 63 rpm -i ant - 1.6.5-2jpp.2.x86_64 (need later version 1.7) 58 64 }}} 59 65 60 66 ossimbashrc 67 61 68 Under the ossim_package_support directory is an ossimbashrc file. 62 69 These build instruction assume the use of the ossimbashrc file. It includes a number of environmental variables and alias’s that are used in the build instructions. When you open a terminal to perform these instructions, be sure to source the file: 63 70 71 {{{ 64 72 source ossimbashrc 73 }}} 65 74 66 75 (alternatively you can add this line to your .bashrc file) … … 70 79 The entire OSSIM distribution contains many source directories and dependencies. Proper set up of the environmental variables used during the build is key to a successful build from source code. Please source the ossimbashrc file. 71 80 72 81 82 {{{ 73 83 cd 74 84 mv .bashrc bashrc.old … … 79 89 cp ossimbashrc ~/ 80 90 cd 91 }}} 81 92 82 93 Now edit the ossimbashrc file to point to your Development directory. This is the directory where all of the source code exists. The default ossimbashrc defaults to Development in your home directory. 83 94 95 {{{ 84 96 vi .bashrc 85 97 i … … 89 101 90 102 source .bashrc 103 }}} 91 104 92 105 Now we’ll check and use the ‘dev’ alias to change directories 106 {{{ 93 107 94 108 dev 95 109 110 }}} 111 96 112 The prompt should echo back Development Directory and list any files that are in that directory. 97 113 98 114 Gathering the Dependency Source Code 99 115 116 {{{ 100 117 dev 101 118 mkdir ossim_dependencies_source 102 119 ods cd ossim_dependencies_source 120 }}} 103 121 104 122 … … 108 126 Look at http://ossim.telascience.org/ossimdata/sourcesnaps where these dependencies have been provided for your convenience. 109 127 110 expat http://sourceforge.net/projects/expat/ 111 openmpi http://www.open-mpi.org/software/ompi/v1.2/ 112 openmpi-1.2.6.tar.gz 113 gdal http://trac.osgeo.org/gdal/wiki/DownloadSource 114 geotiff ftp:://ftp.remotesensing.org/geotiff 115 libtiff (with bigtiff support) http://ossim.telascience.org/ossimdata/sourcesnaps/libtiff-4.0.0.tgz 116 Qt4 http://trolltech.com/downloads 117 OpenSceneGraph 2.4 http://www.openscenegraph.org/projects/osg/wiki/Downloads 128 {{{ 129 expat http://sourceforge.net/projects/expat/ 130 openmpi http://www.open-mpi.org/software/ompi/v1.2/openmpi-1.2.6.tar.gz 131 gdal http://trac.osgeo.org/gdal/wiki/DownloadSource 132 geotiff ftp:://ftp.remotesensing.org/geotiff 133 libtiff (with bigtiff support) http://ossim.telascience.org/ossimdata/sourcesnaps/libtiff-4.0.0.tgz 134 Qt4 http://trolltech.com/downloads 135 136 OpenSceneGraph 2.6.1 http://www.openscenegraph.org/projects/osg/wiki/Downloads 118 137 OpenThreads use the one from OpenSceneGraph 119 138 collada for OpenSceneGraph colladadom_21.tgz in snapshots 120 139 121 ffmpeg svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg 140 ffmpeg svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg 141 }}} 122 142 123 143 124 144 Make an ossim_dependencies directory 125 145 146 {{{ 126 147 dev 127 148 cd ossimsource 128 149 mkdir ossim_dependencies 129 150 ozd (should move you to ossim_dependencies directory) 151 }}} 130 152 131 153 move and uncompress all of the dependencies into this directory 132 154 155 {{{ 133 156 ozd 134 157 tar xvf cmake-2.6.0.tar … … 144 167 unzip OpenSceneGraph-Data-2.4.0.zip 145 168 tar xvfz jpegsrc.v6b.tar.gz 146 147 148 149 150 151 152 153 154 155 156 libjpeg to make sure we are picking up 64 bit version 157 169 }}} 170 171 172 libjpeg 173 to make sure we are picking up 64 bit version 174 175 {{{ 158 176 ozd 159 177 cd jpeg-6b … … 164 182 make 165 183 make install 184 }}} 166 185 167 186 ffmpeg 187 188 {{{ 168 189 ozd 169 190 cd ffmpeg 170 ./configure --prefix=${INSTALL_HERE} --enable-shared --disable-static 171 172 Note, for mac osx you need to configure 173 ./configure --prefix=${INSTALL_HERE} --disable-vhook --disable-mmx --enable-shared --disable-static 174 175 make 176 make install 191 ./configure --prefix=${INSTALL_HERE} --disable-vhook --disable-mmx --enable-shared --disable-static 192 make 193 make install 194 }}} 177 195 178 196 The include files don’t line up with code, in the install location created ffmpeg dir and moved the libavs down into it. 179 197 198 {{{ 180 199 cd ${INSTALL_HERE}/include 181 200 mkdir ffmpeg … … 186 205 cp libavformat/* . 187 206 cp libavutil/* . 207 }}} 188 208 189 209 EXPAT 190 Downloaded from http://sourceforge.net/project/downloading.php?group_id=10127&use_mirror=internap&filename=expat-2.0.1.tar.gz&87780402 191 210 Downloaded from http://sourceforge.net/project/downloading.php?group_id=10127&use_mirror=internap&filename=expat-2.0.1.tar.gz&87780402 211 212 {{{ 192 213 ozd 193 214 cd expat-2.0.1 … … 195 216 make 196 217 make install 218 }}} 197 219 198 220 199 221 libtiff (bigtiff) 200 222 223 {{{ 201 224 ozd 202 225 cd libtiff-4.0.0 … … 207 230 cd libtiff 208 231 cp *.h /usr/local/include 232 }}} 209 233 210 234 Geotiff 211 235 236 {{{ 212 237 ozd 213 238 cd libgeotiff-1.2.3 … … 221 246 cd ${INSTALL_HERE}/lib 222 247 ls (should see the installed libtiff and libgeotiff libs) 223 248 }}} 224 249 225 250 226 251 GDAL 227 252 253 {{{ 228 254 ozd 229 255 cd gdal-1.5.1 … … 232 258 make 233 259 make install 260 }}} 234 261 235 262 OpenMPI 236 263 237 264 {{{ 238 265 ozd 239 266 cd openmpi-1.2.6 … … 242 269 make 243 270 make install 244 245 OpenSceneGraph 2.4 271 }}} 272 273 OpenSceneGraph 2.6.1 274 246 275 247 276 CMake 248 Will need to make sure that cmake is on the system, if not download and install it 277 Will need to make sure that cmake is on the system, if not download and install it 278 279 {{{ 249 280 ./bootstrap --prefix=${INSTALL_HERE}; make ; make install 250 281 … … 254 285 make 255 286 make install 287 }}} 256 288 257 289 ColladaDOM 2.1 … … 259 291 The Linux build needs libxml, PCRE, and boost filesytem development files installed on your machine to build the DOM. 260 292 293 {{{ 261 294 pcre-devel-6.6-2.el5_1.7.x86_64.rpm (install this through the package manager) 262 295 pcre-6.6-2.el5_1.7.x86_64.rpm … … 278 311 cd linux-1.4/ 279 312 cp -r libcollada14dom* ${INSTALL_HERE}/lib/ 313 }}} 280 314 281 315 OpenSceneGraph … … 284 318 285 319 Follow the default install instructions which install in /usr/local 286 287 320 on unix: 288 321 322 {{{ 289 323 ozd 290 324 cd OpenSceneGraph … … 292 326 ./configure 293 327 make 294 328 }}} 329 295 330 Next steps require admin privileges 331 332 {{{ 296 333 make install 297 334 exit … … 300 337 cp -r OpenSceneGraph-Data /usr/local/share 301 338 exit 339 }}} 302 340 303 341 To see if you have OpenSceneGraph installed and running: 342 {{{ 304 343 ozd 305 344 cd OpenSceneGraph-Data 306 345 osgviewer cow.osg 307 346 press <esc> to quit 308 347 }}} 309 348 OSSIM 349 {{{ 310 350 oz 311 351 ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} --with-geotiff=${INSTALL_HERE} --with-freetype=/usr --with-mpi=${INSTALL_HERE} --with-openthreads=${INSTALL_HERE} … … 313 353 make 314 354 make install 355 }}} 315 356 316 357 libwms … … 318 359 need to manually copy lib/include to INSTALL_HERE 319 360 361 {{{ 320 362 oz 321 363 cd ../libwms … … 328 370 cd ../../include/ 329 371 cp -r * ${INSTALL_HERE}/include/ 372 }}} 330 373 331 374 ossim_plugins 332 375 333 376 {{{ 334 377 ozd 335 378 cd ../ossim_plugins 336 379 make all 337 380 make install 381 }}} 338 382 339 383 typing 384 385 {{{ 340 386 cd ${INSTALL_HERE}/lib 341 387 ls *_plugin.so 388 }}} 342 389 343 390 should return the installed, built plugins … … 347 394 move them into an ossim_plugins directory 348 395 396 {{{ 349 397 mkdir ossim_plugins (if necessary)opt 350 398 mv -r *_plugins.so ossim_plugins 351 399 }}} 352 400 353 401 ossimPredator 354 402 403 {{{ 355 404 oz 356 405 cd ../ossimPredator … … 360 409 cd ../lib 361 410 cp libossimPredator.so ${INSTALL_HERE}/lib 411 }}} 362 412 363 413 ossimPlanet 364 414 415 {{{ 365 416 opt 366 417 cd Make 418 }}} 367 419 368 420 edit the makedefs file and uncomment the DEV += -DOSSIMPLANET_ENABLE_PREDATOR 369 421 line. 370 422 423 {{{ 371 424 opt 372 425 make … … 381 434 cd include 382 435 cp -r ossimPlanet ${INSTALL_HERE}/include 436 }}} 383 437 384 438 Copy the reference data in place 385 439 from the ossim_package_support directory, do a recursive copy of the images directory to the install location for future retrival, 386 440 441 {{{ 387 442 cd 388 443 mkdir .ossim … … 390 445 cd ../ossim_package_support 391 446 cp -r fonts icons geoids images ${INSTALL_HERE}/dotossim 447 }}} 392 448 393 449 make a copy in the install location so other users can copy it 394 450 451 {{{ 395 452 cp -r ${INSTALL_HERE}/dotossim ~/.ossim 396 453 }}} 397 454 398 455 Trolltech QT 4 … … 402 459 Be sure to configure with the complete path /usr/local/ossim/Trolltech/Qt-4.4.0. 403 460 461 {{{ 404 462 ozd 405 463 cd qt-x11-opensource-src-4.4.0 … … 407 465 make 408 466 make install 409 467 }}} 410 468 411 469 Verification: 470 {{{ 412 471 which qmake 472 }}} 413 473 should return: 474 {{{ 414 475 /usr/local//Trolltech/Qt-4.4.0/bin/qmake 476 }}} 415 477 416 478 OSSIM_QT4 417 479 480 {{{ 418 481 oqt 419 482 qmake … … 428 491 which imagelinker 429 492 imagelinker 493 }}} 430 494 431 495 ossimPlanetQt 432 496 497 {{{ 433 498 oz 434 499 cd ../ossimPlanetQt … … 437 502 /INSTALL_PREFIX 438 503 :177 439 504 }}} 440 505 441 506 uncomment the lines 162, 179 to define INSTALL_PREFIX and LOCAL_ROOT to $INSTALL_HERE … … 443 508 At this approximate location you can uncomment the INSTALL_PREFIX assignment to install at your variable location 444 509 445 e.g. INSTALL_PREFIX=/usr/local/lib446 uncomment the INSTALL_PREFIX=$$447 448 also change the LOCAL_ROOT by uncommenting the one with INSTALL_PREFIX449 :159 LOCAL_ROOT=/usr/local/450 451 510 e.g. INSTALL_PREFIX=/usr/local/lib 511 uncomment the INSTALL_PREFIX=$$ 512 513 also change the LOCAL_ROOT by uncommenting the one with INSTALL_PREFIX 514 :159 LOCAL_ROOT=/usr/local/ 515 516 {{{ 452 517 cd .. 453 518 make clean … … 455 520 make 456 521 make install 522 }}} 457 523 458 524 Changing the src.pro install doesn’t get the application, copy manually 459 525 526 {{{ 460 527 cp ossimplanet ${INSTALL_HERE}/bin 528 }}} 461 529 462 530 Line 184 the -L for LOCAL_ROOT was not in parenthesis and not being picked up. Same with the include line … … 464 532 added -L$$(INSTALL_PREFIX)/lib in LIBS += lines 465 533 466 467 468 469 These are some notes that I had on building the NTM plugin470 471 Compile and install the classified plugin (unix instructions)472 473 You will find the source for the classified plugin in both the talmage and mlucas accounts. Basically, set the environmental variables, copy it into the ossim_plugins source directory.474 475 As a user (ex: mlucas), not root476 DEV_HOME=<your source tree>477 cd $(DEV_HOME)/ossim/ossim_ntm_plugin478 vi make.opt to modify the following values479 480 DEV_HOME=<your source tree>481 OSSIM_HOME=$(DEV_HOME)/ossim/build/ossim482 OP_DIRECTORY=$(DEV_HOME)/ossim/ossim_ntm_plugin483 LD_LIBRARYPATH=${INSTALL_HERE}/lib484 485 Note: Make sure that these directories jive with the actual locations in the workspace. you will receive errors from the make command if they are incorrect.486 487 make488 489 make install490 491 492 Set up ossim_preferences and local variables, copy the plugin to the ossim plugins directory to have it automatically picked up493 494 Verification, you can run imagelinker and verify that the plugin is loaded. also,495 496 Added with the 1.7.10 release there is an ossim_plugins command utility that will list the loaded plugins497 498 499 534 to use the ossim commands, the startup environment will need to be modified for any user that wants to use them. Need to have LD_LIBRARY_PATH variable set in the appropriate shell file (.cshrc or .bashrc). Any custom ossim_preferences should be in a local version of the ossim_preferences in a users home directory. Otherwise, all preferences will come from the system level file. 500 535 501 536 OMS - OSSIM Mapping Services 502 537 538 {{{ 503 539 oz 504 540 cd ../oms/com … … 507 543 cd ../joms 508 544 ant dist 545 }}} 509 546 510 547 needed to update ant to 1.7 … … 518 555 make sure that 519 556 557 {{{ 520 558 export OSSIM_PREFS_FILE=~/ossim_preferences 559 }}} 521 560 522 561 is set in your bashrc or ossimbashrc file.