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 23: Line 23:
 
[[Image:BrlcadFolder.png]]
 
[[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):
 
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
+
   cd brlcad
  
Now, we create a BRL-CAD Xcode project that we can use to compile BRL-CAD:
+
Now, we will need to configure the source files and install them (Note: this may take some time):
(this may take some time)
 
  
 
   cd brlcad-build
 
   cd brlcad-build
   cmake .. -G Xcode
+
   cmake ..
 +
  sudo make install
 +
 
 +
We can now build a BRL-CAD Xcode project that we can use to compile BRL-CAD. Be sure to cd to the brlcad-x.y.z folder and run the following command:
 +
 
 +
 
 +
[[Image:XcodeBRLCADProject.png|thumb|right|256px|The Xcode project file that should result.]]
 +
 
 +
[[Image:XcodeTerminalCommand.png]]
  
 
== Finishing ==
 
== Finishing ==
  
 
Open the resulting BRLCAD.xcodeproj file with Xcode and press Build and Run. Thats it!
 
Open the resulting BRLCAD.xcodeproj file with Xcode and press Build and Run. Thats it!

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)