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]] | ||
− | |||
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 | + | cd brlcad |
− | Now, we | + | Now, we will need to configure the source files and install them (Note: this may take some time): |
− | |||
cd brlcad-build | cd brlcad-build | ||
− | cmake .. - | + | 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! |