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: | ||
− | + | = 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 [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 [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. | ||
Line 7: | Line 7: | ||
== Obtain Dev Tools == | == Obtain Dev Tools == | ||
− | Download the latest version of [http://www.cmake.org/cmake/resources/software.html CMake for Mac OS X]. | + | Download the latest version of [http://www.cmake.org/cmake/resources/software.html CMake for Mac OS X]. Follow the instructions to install and be sure to |
− | |||
− | |||
− | The latest version of the BRL-CAD source is also required, which can be obtained | + | 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 Xcode | + | 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 == | == 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- | + | 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: |