Editing Compiling/XCode

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
''Note: Some users have been experiencing problems running through this process on Mac OS X Mountain Lion, which dropped support for X11. The problems have been noted and are being worked on.''
 
 
 
= Compiling BRL-CAD with Xcode on Mac OS X =
 
= Compiling BRL-CAD with Xcode on Mac OS X =
  
An already built and running version of BRL-CAD for Mac OS X can be downloaded from [http://sourceforge.net/projects/brlcad/files/BRL-CAD%20for%20Mac%20OS%20X/ here], or these steps will guide you through the process of how to compiling 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 build it yourself.
  
 
== Obtain Dev Tools ==
 
== Obtain Dev Tools ==
  
Download the latest version of [http://www.cmake.org/cmake/resources/software.html CMake for Mac OS X]. Once downloaded, follow the instructions to install CMake and be sure to select the box for installing the CMake Command Line tools:
+
Download the latest version of CMake for Mac OS X: http://www.cmake.org/cmake/resources/software.html
 
 
[[Image:CMakeCommandLineTools.png|none|430px|]]
 
 
 
The latest version of the BRL-CAD source is also required, which can be obtained  [https://sourceforge.net/projects/brlcad/files/BRL-CAD%20Source/ here].
 
 
 
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 Xcode is already installed on your system, you can install the command line tools (or double-check to make sure you have them) by navigating to Xcode Preferences > Downloads and in the components tab, you should see Command Line Tools:
 
 
 
[[Image:XcodeCommandLineTools.png]]
 
 
 
== Compiling ==
 
 
 
Navigate to the BRL-CAD source directory you downloaded and create a new folder titled "brlcad-build." This is where we will store the configured build:
 
 
 
[[Image:BrlcadFolder.png]]
 
 
 
[[Image:XcodeBRLCADProject.png|thumb|right|256px|The Xcode project file that should result.]]
 
Open Terminal (in /User/Applications/Utilities) and cd to the location of the BRL-CAD source folder (Note: you can type cd, press the spacebar, and then drag the brlcad folder to copy its search path):
 
 
 
  cd brlcad-7.22.0
 
  
Now, we create a BRL-CAD Xcode project that we can use to compile BRL-CAD:
+
Latest BRL-CAD SOURCE (http://sourceforge.net/projects/brlcad/files/BRL-CAD%20Source/)
(this may take some time)
 
  
  cd brlcad-build
+
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.
  cmake .. -G Xcode
 
  
== Finishing ==
 
  
Open the resulting BRLCAD.xcodeproj file with Xcode and press Build and Run. Thats it!
+
1 - Required Downloads
 +
  - 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

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)