Then check again if the command run properly. If you installed XQuartz, run this in a terminal :Įcho "export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig/:$PKG_CONFIG_PATH" > ~/.bash_profile In OS X 10.8 (Mountain Lion) and later, run this in a terminal:Įcho "export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig/:$PKG_CONFIG_PATH" > ~/.bash_profile You need to modify your PKG_CONFIG_PATH, since it does not yet include files such as freetype2.pc.
INSTALL XQUARTZ FILES THROUGH HOMEBREW INSTALL
In order to install YARP (from source) or iCub correctly, the following command needs to run without problems :
You can then follow the Linux YARP compile instructions. If you want to compile YARP with the YarpBuilder option, you will also need:īefore installing YARP, follow the next section, "Setting up pkg-config". If you want to install YARP yourself from source, you can install YARP depedencies for homebrew with the following command :īrew install `brew deps -1 yarp | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g'`įor compiling the Qt interfaces, you will need: If any problem arise you can't solve, feel free to contact the RobotCub mailing list ().Īlternative : Only installing Yarp dependencies using Homebrew If these installation were successful you can directly check your yarp installation. If you need the latest development version of YARP instead of the provided release, then use: If homebrew installation was successful, then installing YARP (with all dependencies) is just a matter of executing: This option is recommended for standard users.
INSTALL XQUARTZ FILES THROUGH HOMEBREW UPDATE
If you had Homebrew already installed on your system, update and upgrade : Installing homebrew ( ) is very simple, just follow the official installation steps.Īfter the installation, you can run the following command to check if your setup is good : In earlier version of OS X, this is not stricly necessary, but recommended as XQuartz is more robust and updated that the system-provided X11. In OS X 10.8 Mountain Lion and later, X11 is not provided anymore. To do this, open XCode, go to XCode->Preferences->Downloads and install Command Line Tools. Once installed, you need to install Command Line Tools. To compile anything on OS X (including YARP), you'll need to have XCode ( ) installed. 6.1 Installing iCub dependencies with homebrew.4.2 Alternative : Only installing Yarp dependencies using Homebrew.