Changes between Version 4 and Version 5 of Solaris10Build


Ignore:
Timestamp:
Mar 15, 2010, 2:37:58 PM (14 years ago)
Author:
alight
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Solaris10Build

    v4 v5  
    156156}}}
    157157
    158 Instructions for building the OSSIM distribution on Solaris 10 systems.  This tutorial tracks an install of the OSSIM distribution from July 2008 on a freshly installed version of Solaris 10.  This tutorial assumes a build out of a home directory Development folder with default installation at /usr/local/ossim as defined by the INSTALL_HERE environmental variable.
     158Instructions for building the OSSIM distribution on Solaris 10 systems.  This tutorial tracks an install of the OSSIM distribution from July 2008 on a freshly installed version of Solaris 10.  This tutorial assumes a build out of a home directory Development folder with default installation at /usr/local as defined by the INSTALL_HERE environmental variable.
    159159
    160160The 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.
     
    183183
    184184Gathering the Dependency Source Code
     185
     186Make an ossim_dependencies directory
     187{{{
     188dev
     189cd ossimsource
     190mkdir ossim_dependencies
     191ozd             (should move you to ossim_dependencies directory)
     192}}}
    185193
    186194The following dependencies are need to build and can be downloaded into the source directory.  URLs are provided.
     
    199207wxWidgets          http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.10.tar.gz
    200208OpenSceneGraph
    201 ozd
    202 svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-2.4.0 OpenSceneGraph
    203 svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph-Data/tags/OpenSceneGraph-Data-2.4.0 OpenSceneGraph-Data
    204 }}}
    205 
    206 
    207 Make an ossim_dependencies directory
    208 {{{
    209 dev
    210 cd ossimsource
    211 mkdir ossim_dependencies
    212 ozd             (should move you to ossim_dependencies directory)
     209    ozd
     210    svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-2.4.0 OpenSceneGraph
     211    svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph-Data/tags/OpenSceneGraph-Data-2.4.0 OpenSceneGraph-Data
    213212}}}
    214213
     
    229228{{{
    230229ozd
    231 
    232230nano fixdir.sh
     231}}}
    233232{{{
    234233#!/bin/sh
     
    247246chmod +x jpeg-6b/config.guess
    248247}}}
     248{{{
    249249chmod +x fixdir.sh
    250250./fixdir.sh
     
    260260 
    261261ffmpeg
    262 
    263 {{{
    264         ozd
    265         cd ffmpeg
    266         ./configure --prefix=${INSTALL_HERE} --disable-vhook --disable-mmx --enable-shared --disable-static
    267         make
    268         make install
     262{{{
     263ozd
     264cd ffmpeg
     265export LDFLAGS="-mimpure-text -lrt"
     266./configure --prefix=${INSTALL_HERE} --disable-vhook --disable-mmx --enable-shared --disable-static
     267make
     268make install
     269export LDFLAGS=""
    269270}}}
    270271
    271272The include files don’t line up with code, in the install location created ffmpeg dir and moved the libavs down into it.
    272 
    273 {{{
    274         cd ${INSTALL_HERE}/include
    275         mkdir ffmpeg
    276         mv libav* ffmpeg
    277         cd ffmpeg
    278         cp libavcodec/* .
    279         cp libavdevice/* .
    280         cp libavformat/* .
    281         cp libavutil/* .
    282 }}}
    283 
    284 EXPAT
    285  Downloaded from http://sourceforge.net/project/downloading.php?group_id=10127&use_mirror=internap&filename=expat-2.0.1.tar.gz&87780402
    286 
    287 {{{
    288         ozd
    289         cd expat-2.0.1
    290         ./configure --prefix=${INSTALL_HERE}
    291         make
    292         make install
    293 }}}
    294 
     273{{{
     274cd ${INSTALL_HERE}/include
     275mkdir ffmpeg
     276mv libav* ffmpeg
     277cd ffmpeg
     278cp libavcodec/* .
     279cp libavdevice/* .
     280cp libavformat/* .
     281cp libavutil/* .
     282}}}
    295283
    296284libtiff (bigtiff)
    297 
    298 {{{
    299         ozd
    300         cd libtiff-4.0.0
    301         chmod +x configure
    302         ./configure --prefix=${INSTALL_HERE}
    303         make
    304         make install
    305         cd libtiff
    306         cp *.h /usr/local/include
     285{{{
     286ozd
     287cd libtiff-4.0.0
     288chmod +x configure
     289./configure --prefix=${INSTALL_HERE}
     290make
     291make install
     292cd libtiff
     293cp *.h /usr/local/include
    307294}}}
    308295
     
    310297
    311298{{{
    312         ozd
    313         cd libgeotiff-1.2.3
    314         ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE}
    315         rm config.status
    316         ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE}
    317         make clean
    318         make
    319         make install
    320 
    321         cd ${INSTALL_HERE}/lib
    322         ls  (should see the installed libtiff and libgeotiff libs)
    323   }}}
    324 
     299ozd
     300cd libgeotiff-1.2.3
     301./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE}
     302rm config.status
     303./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE}
     304make clean
     305make
     306make install
     307
     308cd ${INSTALL_HERE}/lib
     309ls  (should see the installed libtiff and libgeotiff libs)
     310}}}
    325311
    326312GDAL
    327 
    328 {{{
    329         ozd
    330         cd gdal-1.5.1
    331         ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} --with-libgeotiff=${INSTALL_HERE} --with-expat-inc=${INSTALL_HERE}/include --with-expat-lib=${INSTALL_HERE}/lib  --with-expat=${INSTALL_HERE)
    332         make clean;
    333         make
    334         make install
     313{{{
     314ozd
     315cd gdal-1.5.1
     316./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} --with-libgeotiff=${INSTALL_HERE} --with-expat-inc=${INSTALL_HERE}/include --with-expat-lib=${INSTALL_HERE}/lib  --with-expat=${INSTALL_HERE)
     317make clean
     318make
     319make install
    335320}}}
    336321
    337322OpenMPI
    338 
    339 {{{
    340         ozd
    341         cd openmpi-1.2.6
    342         ./configure                   (had to run this without args first)
    343         ./configure --prefix=${INSTALL_HERE}
    344         make
    345         make install
    346 }}}
    347 
    348 CMake
    349  Will need to make sure that cmake is on the system, if not download and install it
    350 
    351 {{{
    352         ozd
    353         cd cmake-2.6.0
    354         ./bootstrap --prefix=${INSTALL_HERE}
    355         make
    356         make install
     323{{{
     324ozd
     325cd openmpi-1.4.1
     326./configure                   (had to run this without args first)
     327./configure --prefix=${INSTALL_HERE}
     328make
     329make install
    357330}}}
    358331
    359332ColladaDOM 2.1
    360 
    361 The Linux build needs libxml, PCRE, and boost filesytem development files installed on your machine to build the DOM.
    362 
    363 {{{
    364 pcre-devel-6.6-2.el5_1.7.x86_64.rpm     (install this through the package manager)
    365 pcre-6.6-2.el5_1.7.x86_64.rpm
    366 
    367         ozd
    368         cd colladadom_21m
    369 
    370         cd dom
    371         make all
    372         ih
    373         cd include
    374         mkdir colladadom
    375 
    376 ozd; cd colladadom/dom
     333{{{
     334ozd
     335cd pcre-7.9
     336./configure
     337make
     338make install
     339ozd
     340cd boost_1_42_0
     341./bootstrap.sh
     342./bjam install
     343}}}
     344{{{
     345ozd
     346cd colladadom_21
     347nano include/dae.h
     348    add #include <memory> under the other #includes
     349cd dom
     350make project=dom
     351ih
     352cd include
     353mkdir colladadom
     354ozd
     355cd colladadom_21/dom
    377356edit the Makefile line 179 to read:
    378 prefix :=/usr/local
    379         make install (gets the headers in place then fails)
    380         cd build
    381         cd linux-1.4/
    382         cp -r libcollada14dom* ${INSTALL_HERE}/lib/
     357    prefix :=/usr/local
     358make install
     359cd build
     360cd linux-1.4/
     361cp -r libcollada14dom* ${INSTALL_HERE}/lib/
    383362}}}
    384363
    385364OpenSceneGraph
    386 
    387 Note:  On the mac, just build OpenSceneGraph with the included xcode project. 
    388 
    389 Follow the default install instructions which install in /usr/local
    390 on unix:
    391 
    392 {{{
    393         ozd
    394         cd OpenSceneGraph
    395         ./configure  (first time error’d out )
    396         ./configure
    397         make
    398  }}}
    399 
    400 Next steps require admin privileges
    401 
    402 {{{
    403         make install
    404         exit
    405         ozd
    406         su
    407         cp -r OpenSceneGraph-Data /usr/local/share
    408         exit
     365{{{
     366ozd
     367cd OpenSceneGraph
     368./configure (first time has some errors)
     369./configure
     370make
     371make install
     372ozd
     373cp -r OpenSceneGraph-Data /usr/local/share
    409374}}}
    410375
    411376To see if you have OpenSceneGraph installed and running:
    412377{{{
    413         ozd
    414         cd OpenSceneGraph-Data
    415         osgviewer cow.osg
    416         press <esc> to quit
    417 }}}
     378ozd
     379cd OpenSceneGraph-Data
     380osgviewer cow.osg
     381    press <esc> to quit
     382}}}
     383
    418384OSSIM
    419385{{{
    420         oz
    421         ./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} --with-geotiff=${INSTALL_HERE} --with-freetype=/usr --with-mpi=${INSTALL_HERE} --with-openthreads=${INSTALL_HERE}
    422         make depends
    423         make
    424         make install
    425 }}}
    426 
    427 libwms
     386oz
     387./configure --prefix=${INSTALL_HERE} --with-libtiff=${INSTALL_HERE} --with-geotiff=${INSTALL_HERE} --with-freetype=/usr --with-mpi=${INSTALL_HERE} --with-openthreads=${INSTALL_HERE}
     388make depends
     389make
     390make install
     391}}}
     392
     393ossim_plugins
     394{{{
     395ozd
     396cd ../ossim_plugins
     397make all
     398make install
     399}}}
     400
     401Typing:
     402{{{
     403cd ${INSTALL_HERE}/ossim/lib
     404ls *_plugin.so
     405}}}
     406should return these installed, built plugins:
     407libossimcontrib_plugin.so  libossimgdal_plugin.so  libossimpng_plugin.so
     408
     409
     410
     411
     412
     413
     414NOTICE: None of the below steps have been tested. Proceed at your own risk.
     415
     416Move them into an ossim_plugins directory:
     417{{{
     418mkdir ossim_plugins (if necessary)
     419opt
     420mv -r *_plugins.so ossim_plugins
     421}}}
     422
     423libwms (doesn't compile correctly in Solaris 10 atm)
    428424
    429425need to manually copy lib/include to INSTALL_HERE
    430 
    431426{{{
    432427        oz
     
    442437}}}
    443438
    444 ossim_plugins
    445 
    446 {{{
    447         ozd
    448         cd ../ossim_plugins
    449         make all
    450         make install
    451 }}}
    452 
    453 typing
    454 
    455 {{{
    456         cd ${INSTALL_HERE}/lib
    457         ls *_plugin.so
    458 }}}
    459 
    460 should return the installed, built plugins
    461 
    462 libossimcontrib_plugin.so  libossimgdal_plugin.so  libossimpng_plugin.so
    463 
    464 move them into an ossim_plugins directory
    465 
    466 {{{
    467         mkdir ossim_plugins (if necessary)opt
    468         mv -r *_plugins.so ossim_plugins
    469 }}}
    470439
    471440ossimPredator