Compiling SGeMS on Mac

Help
2009-08-22
2013-06-04
  • Olabode Joseph Olatoke

    I have recently bought the text book (Applied Geostatistics with SGeMS) and I have a MacBook.

    I would like to compile the SGeMS software on my Mac and I have no experience of doing such. Please can you offer any assistance in the form of "Compiling SGeMS on Macs for dummies"?

    Cheers,
    OJ

     
  • S Mac

    S Mac - 2009-10-14

    Have you had any success?
    I need to do the same thing, I need help!

     
  • Olabode Joseph Olatoke

    Lucky you - I finally got the last bit to to work today with the help of a colleague Marcio.

    First step is to install Ubuntu 9.04 on your mac. I run it off VMWare Fusion.

    Then in Ubuntu, you will need to follow the steps below to compile the package:

    a) Install required packages using "System > Administration > Synaptic
    Package Manager". Find the following packages and select them to
    install:
    libcoin40-doc
    libcoin40-runtime
    libcoin40-dev
    libcoin40c2
    libsoqt4-dev
    libsoqt-dev-common
    libsoqt4-20
    python2.6
    python2.6-dev
    subversion
    cvs

    -  Remember to reload before searching for the packages

    b) Open a terminal and install the compilers with the command: "sudo
    aptitude install build-essential"

    c) Install SIMVoleon requirement with the commands in a terminal:
    # cd ~
    # sudo svn co https://svn.coin3d.org/repos/SIMVoleon/trunk
    SIMVoleon
    # cd SIMVoleon
    # sudo ./configure -prefix=/usr
    # sudo make install

    d) Install SGeMS with the following commands in a terminal:
    # cd ~
    # sudo cvs -z3
    -d:pserver:anonymous@sgems.cvs.sourceforge.net:/cvsroot/sgems co -P GsTLAppli-qt4
    # sudo cvs -z3 -d:pserver:anonymous@gstl.cvs.sourceforge.net:/cvsroot/gstl co -P GsTL
    # cd ~/GsTLAppli-qt4
    Edit the file ".qmake.cache" and change the variables "GSTLHOME"
    and "GSTLAPPLI_HOME" to point to place where you downloaded the source
    files. So, they will be like "GSTLHOME=/home/username/GsTL" and
    "GSTLAPPLI_HOME=/home/username/GsTLAppli-qt4" Remember that .qmake.cache
    is a hidden file and so you may want to edit it in vi - or in gedit as
    administrator
    # sudo qmake
    # sudo make

    e) Now just set the environment variables and execute the SGeMS
    application with the following commands in a terminal:
    # export
    LD_LIBRARY_PATH=/home/username/GsTLAppli-qt4/lib/linux:/home/username/GsTLAppli-qt4/plugins/designer
    # export GSTLAPPLIHOME=/home/username/GsTLAppli-qt4
    # /home/username/GsTLAppli-qt4/bin/linux/sgems

    Or alternatively, in any text editor e.g. gedit, type:
    # !/bin/sh
    export LD_LIBRARY_PATH=/home/username/GsTLAppli-qt4/lib/linux:/home/username/GsTLAppli-qt4/plugins/designer
    # export GSTLAPPLIHOME=/home/username/GsTLAppli-qt4
    # /home/username/GsTLAppli-qt4/bin/linux/sgems
    - save as sgems.sh

    And under main menu (system-preferences-main menu), add a new item calleed SGeMS , and in the command under launcher properties - browse for the sgems.sh file and choose an icon - so that when you click on the icon you can start up SGeMS.

    Good luck.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks