-
Notifications
You must be signed in to change notification settings - Fork 295
Compiling G2 on OS X (with Xcode)
This page is for compiling the G2 project on OS X with XCode. Please see Getting Started with G2 for information about hardware and compiling on other platforms.
See also: Debugging G2 on OSX with GDB and Atmel-ICE
To compile G2 on OS X with Xcode you will need to install the free XCode (Download the installer from the Mac App Store or run this command in Terminal: xcode-select --install
).
If you wish to use the OS X command line, then visit Compiling G2 on Linux and OS X (command line) as well.
The easiest way on OS X to clone the git repo is probably to use the GitHub OS X app.
- Download and install the GitHub app.
- Log into the GitHub web site -- register if needed, it's free.
- Browse to the G2 project page and then click on the
Clone in Desktop
button.
- The GitHub application should open up, and ask where to save the new repository. The default location will probably be sufficient.
- In the GitHub app, chose Branches on the left and then click on Edge to checkout the Edge branch.
- (Convenience) In the
Repository
menu, chooseOpen in Finder
to display the folder of the the newly checked out repo.
In the newly cloned repo, open the TinyG2
folder, and then open the file named TinyG2.xcodeproj
.
Ensure that the TinyG2 scheme is selected, as shown:
Now you can choose Build
for the Product
menu of Xcode (or click the "play" button in the top-left of the window) to build G2 for all supported "platforms" simultaneously.
The resulting files will be in ${projectRoot}/TinyG2/bin/
, in a folder named after the platform. For example, there will be a folder named gShield
with a file named gShield_flash.elf
.
Getting Started Pages
- Home
- What is g2core?
- Who uses g2core?
- Jerk-Controlled Motion
- Getting Started with g2core
- Connecting to g2core
- Configuring g2core
- Flashing g2core
- Troubleshooting
Reference Pages
- Gcodes
- Mcodes
- Text Mode
- JSON Communications
- GPIO Digital IO
- Alarms & Exceptions
- Power Management
- Coordinate Systems
- Status Reports
- Status Codes
- G2 Communications
- Tool Offsets and Selection
- Probing
- Feedhold, Resume, Job Kill
- Marlin Compatibility
- 9 Axis UVW Operation
- gQuintic Specs
Discussion Topics
- Roadmap
- GPIO for 1.X Releases
- Toolheads
- Raster Streaming Prototol
- g2core REST Interface
- Gcode Parsing
- G2 3DP Dialect
- Consensus Gcode
- Digital DRO
- Overview of Motion Processing
Developer Pages
- Development & Contribution
- Branching and Release - DRAFT
- Getting Started with g2core Development
- Project Structure & Motate
- Compiling G2
- OSX w/Xcode
- OSX/Linux Command Line
- Windows10 w/AtmelStudio7
- Debugging G2 on OSX
- Board and Machine Profiles
- Arduino Due Pinout
- Arduino DUE External Interfaces
- Diagnostics
- Debugging w/Motate Pins
- Development Troubleshooting
- g2core Communications
- Git Procedures
- Windows 10 / VMware 8 Issues
- Dual Endpoint USB Internals
- G2core License
- VSCode Setup
- Compatibility Axioms
- Wiki History