EKD FOR MacOSX

Protocol installation of the development version of EKD on MacOSX.

Compliant

Tested successfully on Leopard MacOSX 10.5.3 (Intel Core 2 Duo). Untested on MacOSX Tiger and lower, or PowerPC.

Prerequired

  • Install XCode Tools, they are available on DVD installation MacOSX and the site of Apple ADC (free registration required)
  • Installing X11 (available on DVD installation MacOSX. Do not install especially the version available on the Apple site which is very old.
  • Update MacOSX with "Update Software"
  • The MacPorts

    Download

    Download the "base" MacPorts: MacPorts 1.6 (Download the file on the desktop and avoid downloading the file with Internet Explorer 5 for Mac)

    Decompression

    Open a "Terminal" (in /Applications/Utility) and a window opens, enter:

    cd Desktop/

    Then confirm with the "Enter"

    Then:

    tar xvjpf MacPorts-1.6.0.tar.bz2

    Validate by "Enter"

    Configuration

    Also in the Terminal, type:
    cd MacPorts-1.6.0

    Validate by the "enter" key, then:

    ./configure --prefix=/opt/local

    Validate by the "enter" key. Wait that configuration ends.

    If it shows an error, the installation of XCode Tools or updates to MacOSX were not-correctly-made.

    Compilation

    Once the configuration made, enter:
    Make

    Validate by the "enter" key. The compilation will save a few seconds to a few minutes, depending on the speed of your machine. In case of error, that same causes for errors during configuration.

    Installation

    Once the compilation is done, "installed":

    sudo make install

    Confirm with the "Enter". The terminal will ask for the password of your session (you must be in session administrator). Enter, then confirm with "enter".

    The configuration files

    The MacPorts need to complete the PATH and other variables to optimize things. Besides, I bring some improvements.

  • Adding paths in the PATH: Enter the command below in the "Terminal"
  • echo export PATH=/opt/local/bin:/opt/local/sbin:$PATH >>~/.profile
  • Creating a file. Bash_profile: To open a terminal and enter the command:
  • ~ vi / bash_profile

    Press "a" to enter the "year". Then copy the terminal in the following lines:

    if [ -f ~/.bashrc ]; then
     source ~/.bashrc
     fi

    To save the file made "Escape" and ": wq" and "Return", it helps to save the file and leave the publisher.

  • Some improvements to be placed in the file. Bashrc is a hidden file for editing use the following command in the terminal:
  • vi ~/.bashrc

    Then paste it (via the keyboard shortcut "Command + v):

    EDITOR=vi
    MANPATH=/opt/local/man:/usr/share/man:/opt/share/man:/usr/X11R6/man
    JAVA_HOME=/Library/Java/Home
    LANG=fr_FR.UTF-8
    INFOPATH=$INFOPATH:/opt/local/share/info:/usr/share/info
    XDG_DATA_HOME=/opt/local/share:$XDG_DATA_HOME
    XDG_DATA_DIRS=/opt/local/share:$XDG_DATA_DIRS
    export EDITOR INFOPATH MANPATH JAVA_HOME LANG XDG_DATA_HOME XDG_DATA_DIRS
    echo $PATH | grep -q -s "/opt/local/bin"
    if [ $? -eq 1 ] ; then
        PATH=/opt/local/bin:$PATH
        export PATH
    fi
    echo $PATH | grep -q -s "/opt/local/sbin"
    if [ $? -eq 1 ] ; then
        PATH=/opt/local/sbin:$PATH
        export PATH
    fi

    Close the terminal ( "Command + q) and restart the so configuration files are taken into account.

    "Refresh" the MacPorts

    Repatriate current versions of files "ports".
    sudo port -d selfupdate

    Qt 4

    sudo port install qt4-mac +cups +dbus +demos +examples +nis +sqlite +ssl

    CMake

    In a terminal, enter the command:

    sudo port install cmake

    Subversion

    This step is optional but mandatory on Leopard on Tiger and lower. In a terminal, enter the command:

    sudo port install subversion

    MPlayer and MEncoder

    Enter the following command in the terminal (to copy and paste in the terminal):

    sudo port install mplayer +binary_codecs +dts +dv +faac +macosx +osd +sdl +theora +twolame +x11 +x264 +xvid

    FFMpeg

    Enter the following command in the terminal (to copy and paste in the terminal):

    sudo port install ffmpeg +a52 +avfilter +faac +faad +gpl +lame +postproc +theora +x264

    ImageMagick

    Enter the following command in the terminal:

    sudo port install imagemagick +gs +jbig +jpeg2 +lcms +mpeg +perl +q16 +rsvg +wmf

    ffmpeg2theora

    We must download sources here: version 0.21 (download the file on the desktop)

    Then, in a terminal enter orders below (copy and paste each line in the terminal):

    cd ~/Desktop
    tar xjf ffmpeg2theora-0.21.tar.bz2
    cd ffmpeg2theora-0.21
    LDFLAGS="-L/opt/local/lib" CPPFLAGS="-I/opt/local/include" ./configure --prefix=/opt/local && make
    sudo make install

    SIP and PyQt4

    The MacPorts do not at present version of Python mode "framework". We must therefore use Python 2.5 installed by MacOSX Leopard.

  • SIP: version 4.7.6
  • PyQt4: version 4.4.2
  • Then, in a terminal enter orders below:

    cd ~/Desktop
    tar xzf sip-4.7.6.tar.gz
    cd sip-4.7.6
    /usr/bin/python configure.py && make
    sudo make install
    cd ..
    tar xzf PyQt-mac-gpl-4.4.2.tar.gz
    cd PyQt-mac-gpl-4.4.2
    /usr/bin/python configure.py
    (enter "yes" and press enter)
    make
    sudo make install

    Numpy

    We must download sources here: version 1.1.0 (download the file on the desktop)

    Then, in a terminal enter orders below:

    cd ~/Desktop
    tar xzf numpy-1.1.0.tar.gz
    cd numpy-1.1.0
    /usr/bin/python setup.py build
    sudo /usr/bin/python setup.py install

    PIL

    We must download sources here: version 1.1.6 (download the file on the desktop)

    Then, in a terminal enter orders below:

    cd ~/Desktop
    tar xzf Imaging-1.1.6.tar.gz
    cd Imaging-1.1.6
    /usr/bin/python setup.py build
    sudo /usr/bin/python setup.py install

    Installing EKD

    Once all the dependencies installed, you can download the application EKD: EKD 1.4

    Once the file is downloaded, double-click on it to unpack. Double-click the file dmg thus obtained for the mount.

    In the window that appears, drag and drop "EKD" in the Applications folder. Now you can "eject" the EKD dmg and launch from application folder.

    Known issues:

    The icon launches in fact an "other" program (Python), which does not have the same icon (a "rocket"). This is linked to "launch" used (made with Platypus).