Jump to content

MIOS programming with Xcode 2 on a Mac (OSX)


Rowan
 Share

Recommended Posts

  • 10 months later...
  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

Hi guys!

I am new to the whole midibox thing and i am just trying to set up my programming environment. I am using Leopard 10.5. and installed sdcc (I downloaded a package from audiocommander).

I also downloaded the gputils pack (probably from audiocommander, too, i can't remember), but the problem is: It seemed to install properly, but in spotlight there is none of the gputils files (e.g. gputils). Any advice?

I know, probably very basic problem, but i am just not getting it...

btw: My programming skills are pretty outdated, I did some MSDOS programming some time ago, so sorry if this is a stupid question: But why does it say "download and compile sdcc"?? I mean is there any problem when i download the "final" version of sdcc which is already a binary? Or is it (for whatever reason) a kind of standard in linux (or mac) to download the sourcecode of compilers and build the binary for yourself? I mean this is pretty confusing for noobs like me...

thank you & have a nice sunday

gaston

Edited by Gaston
Link to comment
Share on other sites

  • 1 year later...

In case anyone is struggling to compile their apps, here's what I do. Edit your project files in Xcode (or TextWrangler if you prefer something lighter), save your files, then open Terminal.app.

Now type 'cd ' (without the quotes, but including the space. Now drag your project folder from Finder onto the terminal window. Now hit your return key. This will tell terminal that we want to use this folder as our root folder.

Finally type 'make' and hit enter. A couple of moments later you have a .hex file which can be uploaded with MIOS studio.

Link to comment
Share on other sites

  • 8 months later...

In case anyone is struggling to compile their apps, here's what I do. Edit your project files in Xcode (or TextWrangler if you prefer something lighter), save your files, then open Terminal.app.

Now type 'cd ' (without the quotes, but including the space. Now drag your project folder from Finder onto the terminal window. Now hit your return key. This will tell terminal that we want to use this folder as our root folder.

Finally type 'make' and hit enter. A couple of moments later you have a .hex file which can be uploaded with MIOS studio.

I'm doing like you but I prefer to work with a IDE without shell :(

I think that I'll migrate to parallel with winXP and notepad++ so I can see Highlights on line Error and so on.

But nobody works on Xcode?!

If mkmk.pl is obsolete... why nobody upgrades wiki pages? :blush:

Link to comment
Share on other sites

  • 6 months later...

Hi

I tryed to install sdcc. But i got a failure on install:


Warning: xcodebuild exists but failed to execute

Warning: Xcode does not appear to be installed; most ports will likely fail to build.

--->  Computing dependencies for sdcc

--->  Dependencies to be installed: gputils readline ncurses

--->  Fetching archive for gputils

--->  Attempting to fetch gputils-0.13.7_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/gputils

--->  Attempting to fetch gputils-0.13.7_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/gputils

--->  Installing gputils @0.13.7_0

--->  Activating gputils @0.13.7_0

--->  Cleaning gputils

--->  Fetching archive for ncurses

--->  Attempting to fetch ncurses-5.9_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/ncurses

--->  Attempting to fetch ncurses-5.9_1.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/ncurses

--->  Installing ncurses @5.9_1

--->  Activating ncurses @5.9_1

--->  Cleaning ncurses

--->  Fetching archive for readline

--->  Attempting to fetch readline-6.2.000_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/readline

--->  Attempting to fetch readline-6.2.000_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/readline

--->  Installing readline @6.2.000_0

--->  Activating readline @6.2.000_0

--->  Cleaning readline

--->  Fetching archive for sdcc

--->  Attempting to fetch sdcc-3.0.0_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/sdcc

--->  Fetching sdcc

--->  Attempting to fetch sdcc-src-3.0.0.tar.bz2 from http://switch.dl.sourceforge.net/sdcc

--->  Verifying checksum(s) for sdcc

--->  Extracting sdcc

--->  Configuring sdcc

Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)

Log for sdcc is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_sdcc/sdcc/main.log

Error: Status 1 encountered during processing.

To report a bug, see <http://guide.macports.org/#project.tickets>

Then i thought that it might be, because i have the latest Xcode 4.xy installed and should have version 2. But Apple does not provide Xcode 2 anymore. Xcode 2.3 is the latest version they list in the Developer Center. Does Verion 2.3 work for MIOS Programingas well?

Which version is best?

Thanks

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...

Hey only just found this thread. I get the following error when building the skeleton app:

make: execvp: /usr/local/bin: Permission denied

Whereabouts in the shell script do I give execution rights to /usr/local/bin?

It's also worth adding that although I've been following the tutorial on http://www.midibox.org/dokuwiki/doku.php?id=how_to_use_xcode2_as_ide_on_a_mac I've skipped the makefile target phase, partly because there are some discrepancies between versions of the SDCC skeleton. For one, the file MAKEFILE.SPEC does not exist in the newest version.

Cheers

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...