Difference between revisions of "PrepareMacOSX"
(rewrite introduction paragraph specifying that MacPorts packages are fine, too)
|Line 1:||Line 1:|
These instructions explain how to set up your system to compile YARP and iCub. Here we assume you are using Mac OS X 10.5. It should not be
These instructions explain how to set up your system to compile YARP and iCub. Here we assume you are using Mac OS X 10.5 . It should not be too different to setup Mac OS X 10.4 or newer , just by installing similar packages.
is available as installation image (*.dmg)the other libraries installed via Fink or manually.
== Development environment ==
== Development environment ==
Revision as of 12:54, 25 September 2009
These instructions explain how to set up your system to compile YARP and iCub. Here we assume you are using Mac OS X 10.5 'Leopard'. It should not be too different to setup Mac OS X 10.4 'Panther' or versions newer than 10.5, just by installing similar packages.
CMake is available as an installation image (*.dmg), the other libraries can be installed via Fink (or MacPorts) or manually.
Install the following packages:
cmake (at least version 2.4) g++
For cmake exists a precompiled installation package that you can get here: http://www.cmake.org/cmake/resources/software.html. The author never experienced any problems with it. Note that you can also get cmake via fink.
In case of the installation via image:
In order to use cmake or ccmake via command line you need to add the directory which contains the binaries to your PATH variable in the ~/.profile file or export it each time manually (in my case this directory is /Applications/CMake\ 2.6-2.app/Contents/bin).
g++ can be installed either via fink or by installing Xcode.
If you don't know what cmake is and you are wondering why you need to install cmake please wait until Section 6.6 of the Manual. Of course you can jump there if you really can't wait.
Install the package:
To compile YARP you need ACE. The author is using ACE 5.6.3, it can be downloaded from the ace website. See also Installing ACE.
Environment variable you should have after this procedure: ACE_ROOT
GUIS are written using GTK/GTKMM and QT. Note that the author just installed everything that looked halfways relevant, so some of them might be redundant but things definitively work with these packages. (The package names are fink package names, they might be called differently in DarwinPorts).
gtkmm2.4-dev gtkmm2.4-gtk-dev gtkmm2.4-shlibs libglade2 libglade2-shlibs libglademm2.4 libglademm2.4-shlibs
qt3 qt3-bin qt3-shlibs qt3-designer qt3-designer-shlibs qt3-linguist
Environment variable you should have after this procedure: nothing new.
Gnu Scientific Library
YARP and some modules in iCub make use of the Gnu Scientific Library. In Mac OS X it is easy to install gsl through the fink packages:
You can also download the library directly from http://www.gnu.org/software/gsl/.
Environment variable you should have after this procedure': nothing new.
Software in iCub makes extensive use of opencv. The author installed the version 1.1.0.
You can download OpenCV here.
Set the environment variable OPENCV_ROOT in your ~/.profile file or export it manually to the location where you installed it (in my case /Users/frank/bin/opencv-1.1.0)
The author is not using modules that require IPOPT. Any suggestions are welcome.
The simulator will also need ode and sdl. See the simulator instructions on how to do it, Simulator libraries.