Difference between revisions of "Compiling/XCode"

From BRL-CAD
Line 1: Line 1:
 
= Compiling BRL-CAD with Xcode on Mac OS X =
 
= Compiling BRL-CAD with Xcode on Mac OS X =
 +
 +
""THIS GUIDE IS CURRENTLY UNDER CONSTRUCTION""
  
 
An already built and running version of BRL-CAD for Mac OS X can be downloaded from here(), or these steps will guide you through the process of how to compile it yourself.
 
An already built and running version of BRL-CAD for Mac OS X can be downloaded from here(), or these steps will guide you through the process of how to compile it yourself.
Line 5: Line 7:
 
== Obtain Dev Tools ==
 
== Obtain Dev Tools ==
  
Download the latest version of CMake for Mac OS X: http://www.cmake.org/cmake/resources/software.html
+
Download the latest version of CMake for Mac OS X: http://www.cmake.org/cmake/resources/software.html. Follow the steps to install and make sure you select to install command line tools as well.
The latest version of the BRL-CAD source is also required, which can be obtained here: http://sourceforge.net/projects/brlcad/files/BRL-CAD%20Source/
+
 
 +
The latest version of the BRL-CAD source is also required, which can be obtained here: [https://sourceforge.net/projects/brlcad/files/BRL-CAD%20Source/ Sourceforge]
 +
 
 +
You will also need Xcode, which can be downloaded from the Mac App Store. When installing, make sure you install the unix development command-line tools. Or if you already have Xcode installed and want to see if you need to install them, you can check in Xcode Preferences > Downloads??
 +
 
 +
== Compiling ==
 +
 
 +
Open Terminal (in /User/Applications/Utilities) and cd to the location of the brl-cad source folder:
 +
 
 +
  cd brlcad
 +
 
 +
Create a new folder called "brlcad-build," which is where we will store the configured CMake build. We will then need CMake to compile the build:
 +
 
 +
  cd brlcad-build
 +
  cmake ..
  
Latest Xcode (Downloadable from Mac App Store) - While installing, make sure command-line tools are installed as well, or if you already have Xcode, click here to see how to make sure they're installed.
+
Install the CMake configuration:
  
 +
  sudo make install
 +
  ls -la /usr/brlcad
 +
  /usr/brlcad/*/bin/mged
  
1 - Required Downloads
+
Run to compile a working Xcode BRL-CAD Project:
  - Latest version of CMake (http://www.cmake.org/cmake/resources/software.html)
 
  - Latest BRL-CAD SOURCE (http://sourceforge.net/projects/brlcad/files/BRL-CAD%20Source/)
 
2 - Install CMake - make sure you install command line tools
 
3 - Install Xcode + command line tools
 

Revision as of 15:44, 30 November 2012

Compiling BRL-CAD with Xcode on Mac OS X

""THIS GUIDE IS CURRENTLY UNDER CONSTRUCTION""

An already built and running version of BRL-CAD for Mac OS X can be downloaded from here(), or these steps will guide you through the process of how to compile it yourself.

Obtain Dev Tools

Download the latest version of CMake for Mac OS X: http://www.cmake.org/cmake/resources/software.html. Follow the steps to install and make sure you select to install command line tools as well.

The latest version of the BRL-CAD source is also required, which can be obtained here: Sourceforge

You will also need Xcode, which can be downloaded from the Mac App Store. When installing, make sure you install the unix development command-line tools. Or if you already have Xcode installed and want to see if you need to install them, you can check in Xcode Preferences > Downloads??

Compiling

Open Terminal (in /User/Applications/Utilities) and cd to the location of the brl-cad source folder:

 cd brlcad

Create a new folder called "brlcad-build," which is where we will store the configured CMake build. We will then need CMake to compile the build:

 cd brlcad-build
 cmake ..

Install the CMake configuration:

 sudo make install
 ls -la /usr/brlcad
 /usr/brlcad/*/bin/mged

Run to compile a working Xcode BRL-CAD Project: