EsotericLabs Posted June 21, 2012 Report Share Posted June 21, 2012 (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 September 27, 2012 by Martijn Quote Link to comment Share on other sites More sharing options...
wpatterson Posted November 4, 2013 Report Share Posted November 4, 2013 What do you mean by "add all environment variables as user defined build settings. (seehttp://www.midibox.o..._toolchain_core, all of these)"? Sorry I am new to programming Thanks, wpattersons Quote Link to comment Share on other sites More sharing options...
EsotericLabs Posted November 26, 2013 Author Report Share Posted November 26, 2013 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.