Difference between revisions of "Installation/MacOSX"

From PaparazziUAV
Jump to navigation Jump to search
Line 6: Line 6:
# Latest XCode http://developer.apple.com
# Latest XCode http://developer.apple.com
# MacPorts http://www.macports.org/install.php
# MacPorts http://www.macports.org/install.php
# sudo port install git-core xml-light caml-ocamlnet libftdi lablgtk2 gmp mpfr libmpc # Go get a coffee… have a sleep. this takes quite long time
# sudo port install git-core xml-light caml-ocamlnet lablgtk2 gmp mpfr libmpc # Go get a coffee… have a sleep. this takes quite long time
# sudo port upgrade --enforce-variants libftdi +universal
# login to github and fork paparazzi/paparazzi and paparazzi/paparazzi-portability-support
# login to github and fork paparazzi/paparazzi and paparazzi/paparazzi-portability-support
# git clone -o <username> git@github.com:<your github username>/paparazzi.git <-- See the Paparazzi GIT page
# git clone -o <username> git@github.com:<your github username>/paparazzi-portability-support.git <-- See the Paparazzi GIT page
# git clone -o <username> git@github.com:<your github username>/paparazzi-portability-support.git <-- See the Paparazzi GIT page
# edit /opt/local/etc/macports/sources.conf and above the rsync://... line add file://<local path>/paparazzi-portability-support/darwin/macports/ports/ [nosync]
# edit /opt/local/etc/macports/sources.conf and above the rsync://... line add file://<local path>/paparazzi-portability-support/darwin/macports/ports/ [nosync]
# sudo port install ivy-ocaml
# sudo port install libftdi ivy-ocaml arm-none-eabi-gdb openocd libcmsis
# THE FOLLOWING ARE BEING SLOWLY REPLACED
# git clone git://github.com/esden/summon-arm-toolchain.git summon-arm-toolchain-git
# git clone git://github.com/esden/summon-arm-toolchain.git summon-arm-toolchain-git
# cd summon-arm-toolchain-git
# cd summon-arm-toolchain-git
Line 18: Line 17:
# ./summon-arm-toolchain # Go have another coffee or lunch
# ./summon-arm-toolchain # Go have another coffee or lunch
# edit /etc/profile and add the install bin path to the PATH and MANPATH (PATH=$PATH:<any other stuff>:<PREFIX>/bin and MANPATH=$MANPATH:<any other stuff>:<PREFIX>/share/man
# edit /etc/profile and add the install bin path to the PATH and MANPATH (PATH=$PATH:<any other stuff>:<PREFIX>/bin and MANPATH=$MANPATH:<any other stuff>:<PREFIX>/share/man
# git clone -o <username> git@github.com:<your github username>/paparazzi.git <-- See the Paparazzi GIT page
# cd <GIT>/paparazzi
# cd <GIT>/paparazzi
# make clean
# make clean

Revision as of 01:30, 13 January 2011

The task of building Paparazzi on for Apple MacOS X is on going.

The current installation instructions are as follows. As the process evolves and the more people begin to use it the process will become easier and more simplified.

Installation

  1. Latest XCode http://developer.apple.com
  2. MacPorts http://www.macports.org/install.php
  3. sudo port install git-core xml-light caml-ocamlnet lablgtk2 gmp mpfr libmpc # Go get a coffee… have a sleep. this takes quite long time
  4. login to github and fork paparazzi/paparazzi and paparazzi/paparazzi-portability-support
  5. git clone -o <username> git@github.com:<your github username>/paparazzi-portability-support.git <-- See the Paparazzi GIT page
  6. edit /opt/local/etc/macports/sources.conf and above the rsync://... line add file://<local path>/paparazzi-portability-support/darwin/macports/ports/ [nosync]
  7. sudo port install libftdi ivy-ocaml arm-none-eabi-gdb openocd libcmsis
  8. THE FOLLOWING ARE BEING SLOWLY REPLACED
  9. git clone git://github.com/esden/summon-arm-toolchain.git summon-arm-toolchain-git
  10. cd summon-arm-toolchain-git
  11. edit summon-arm-toolchain and update PREFIX=<your preferred install location>, USE_LINARO=1 and LIBSTM32_EN=1
  12. ./summon-arm-toolchain # Go have another coffee or lunch
  13. edit /etc/profile and add the install bin path to the PATH and MANPATH (PATH=$PATH:<any other stuff>:<PREFIX>/bin and MANPATH=$MANPATH:<any other stuff>:<PREFIX>/share/man
  14. git clone -o <username> git@github.com:<your github username>/paparazzi.git <-- See the Paparazzi GIT page
  15. cd <GIT>/paparazzi
  16. make clean
  17. make
  18. edit /etc/profile and add export CPPFLAGS="-I/opt/local/include" (TODO: Remove the need for this)

Configuration

edit <GIT>/conf/control_panel.xml and set the ivy_bus variable to be <your IP Network>:2010

Running Paparazzi

The Paparazzi GCS can be started by running the command

./paparazzi.osx &

Changing the gtk look and feel

  1. sudo port install gtk-theme-switch gnome-themes
  2. Run /opt/local/bin/switch2 to select a different theme

More detailed instructions can be found at http://gtk.php.net/manual/en/html/tutorials/tutorials.installation.macosx-stepbystep.html

Additional themes can be downloaded from http://art.gnome.org/themes/gtk2