Last active
August 29, 2015 14:20
-
-
Save kitplummer/0d75939790556fde47bb to your computer and use it in GitHub Desktop.
Building OSSIM on OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Append to .bashrc or .zshrc | |
# OSSIM environment vars | |
export OSSIM_VERSION=1.8.19 | |
export OSSIM_DATA=/data | |
# Wherever you checked out the code to: | |
export OSSIM_DEV_HOME=${HOME}/ossim_trunk | |
export OSSIM_DEPENDENCIES=$OSSIM_DEV_HOME/ossim_dependencies | |
export OSSIM_HOME=$OSSIM_DEV_HOME/ossim | |
# You'll have to create the 'build' directory in cmake/ | |
export OSSIM_BUILD_DIR=$OSSIM_DEV_HOME/ossim_package_support/cmake/build | |
export OSSIM_BUILD_TYPE=RelWithDebInfo | |
export OSSIM_INSTALL_PREFIX=$HOME/OssimBuilds/Release | |
export OSSIM_PREFS_FILE=$HOME/ossim_preferences | |
export PATH=$OSSIM_INSTALL_PREFIX/bin:$PATH | |
export OMAR_DEV_HOME=$OSSIM_DEV_HOME/omar | |
export DYLD_LIBRARY_PATH=/usr/local/FileGDB_API/lib:$OSSIM_DEPENDENCIES/lib:$OSSIM_DEPENDENCIES/mrsid/Raster_DSDK/lib:$OSSIM_DEPENDENCIES/mrsid/Lidar_DSDK/lib:$DYLD_LIBRARY_PATH | |
export DYLD_FRAMEWORK_PATH=$OSSIM_INSTALL_PREFIX/Frameworks:/opt/local//Library/Frameworks:$DYLD_FRAMEWORK_PATH | |
export DYLD_LIBRARY_PATH=$OSSIM_INSTALL_PREFIX/lib64:$OSSIM_INSTALL_PREFIX/lib:$DYLD_LIBRARY_PATH | |
launchctl setenv OSSIM_INSTALL_PREFIX $OSSIM_INSTALL_PREFIX | |
# END | |
Some dependencies via HomeBrew: | |
brew install libtiff | |
brew install libgeotiff | |
brew install Caskroom/cask/xquartz | |
brew install open-scene-graph | |
brew install geos | |
brew install ffmpeg | |
brew install gdal | |
Then on to the actual build. | |
From ${OSSIM_BUILD_DIR} copy the `configure.sh` (https://gist.github.com/kitplummer/308233595c4fcd1eebbc) file in. | |
Then run the configure.sh command. Then run 'make -j 8' and 'make install'. | |
Then copy ossim_preferences to your home directory (https://gist.github.com/kitplummer/93fb05d32b5396cb5f2a). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the instructions. I am trying to compile OTB-5.0.0 on on OS X 10.10.4 and ossim is hopefully my last step. I have installed ossim 1.7.20 via the package installer but the OTB-5.0.0 build fails (and requires a newer version of oasis). So I have followed the instructions above, but the configure.sh command exits with the following error:
CMake Error: The source directory "/Users/phagerty/ossim_trunk/ossim_package_support/cmake/build" does not appear to contain CMakeLists.txt.
I believe that I am missing a crucial step. Do you have any insight?
Thanks,
Patrick