Things to know:
- Boost install comes with the headers, no compilation is needed.
- The only things you need to compile are boost thread, signals, things like that.
- The only Boost libraries that must be built separately are:
- Boost.Filesystem
- Boost.GraphParallel
- Boost.IOStreams
- Boost.MPI
- Boost.ProgramOptions
- Boost.Python (see the Boost.Python build documentation before building and installing it)
- Boost.Regex
- Boost.Serialization
- Boost.Signals
- Boost.System
- Boost.Thread
- Boost.Wave
Preliminary Steps (Things you need)
- XCode 4.4 or Latest
- XCode Command Line Tools Installed
-- To check do a [Command+, ] and go to the downloads tab.
First steps to installing boost.
- Download latest version of the boost zip file and extract it
- Extract the file
boost install path = where you extracted the zip file to.
/[boost install Path]/boost Contains all the headers. Use Termianl to copy the header files to
/usr/local/include/boost [XCode header search path] You will later use this path to set up your boost project in XCode.
sudo mv /[boost install path]/boost /usr/local/include/boost3. Compile the Boost Libraries! Most of the boost scripts are set to read+write only so if you try and compile them by running sudo ./bootstrap.sh you'll see the following error messages,
sudo: ./boostrap.sh: command not foundTo overcome this you have to do run the command: chmod u+x *.sh do this in the boost folder and also in [boost install path]/tools/build/v2/engine/
Now the you can compile boostrap.sh. This will build b2. Running ./b2 will compile all the libraries such as threading.
4. After boostrap has been executed you should see b2. Do a sudo ./b2 and this will create the libraries. Boost libraries will be created in the [boost install path]/stage/lib
Now you are ready for the next step! Adding boost to XCode.
No comments:
Post a Comment