Jump to content

Recommended Posts

Posted (edited)

I found out how to build your apps completely in Xcode 4.3 - 4.5 under Lion OSX

1. Download and set up the files from the repository and install the MIOS32 toolchain on the Mac. That is point 1 and 2 http://www.midibox.org/dokuwiki/doku.php?id=macos_mios32_toolchain_core

2. Launch Xcode. Go to Xcode/ Preferences / Downloads. Download and install Command Line Tools

3. Start a new project based on the 'empty' template. Add some files to the project. From the Project Explorer (cmd 1), add a new target. (Add Target button wirth big + sign lower left side) and make it a Mac_OS / other / aggregate

3. Click on Build setting (top), add user defined build setting (Lower right) and enter e.g. MIOS32_PATH and /svn/mios32/trunk. Enter. Continue to add all environment variables as user defined build settings. (see http://www.midibox.org/dokuwiki/doku.php?id=macos_mios32_toolchain_core, all of these)

4. Click on Build Phases (top) and then on Add Build Phase -> Add Run Script (lower right). Click open the Run Script Bar and enter in the second textbox (with the line numbers and "type a script.. "):

export PATH=/usr/local/mios32_toolchain/bin:$PATH

cd $SRCROOT

make -s

-> the first line of course where you put the mios toolcgaun

This concerns the main application target i.e. the hex file This part is from http://www.midibox.org/dokuwiki/doku.php?id=how_to_use_xcode2_as_ide_on_a_mac; on setting up the primary application target.

5. Hit cmd-B for build and open the project directory in finder. You'll see a fresh project.hex file. Delete it and the project_build directory, go back to Xcode, repat cmd-B; and there it is again.

Good luck!

Edited by Martijn
  • 1 year later...
  • 4 weeks later...
Posted

The link brings you to the wiki page. Under 3 an 4 you find instructions to set up environment variables. export MIOS32_PATH=~/svn/mios32/trunk export MIOS32_BIN_PATH=$MIOS32_PATH/bin export MIOS32_GCC_PREFIX=arm-none-eabi export MIOS32_FAMILY=LPC17xx export MIOS32_PROCESSOR=LPC1769 export MIOS32_BOARD=MBHP_CORE_LPC17 export MIOS32_LCD=universal All these must be entered in Xcode as in my post under 3. Eg. Setting name MIOS32_LCD and value universal.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...