Jump to content


Photo
- - - - -

MIOS programming with Xcode 2 on a Mac (OSX)


  • Please log in to reply
58 replies to this topic

#41 cimo

cimo

    MIDIbox Guru

  • Programmer
  • PipPipPipPip
  • 1,773 posts
  • Locationhere n there

Posted 12 September 2007 - 21:21

.anyway i think i have to show you my very first SDCC app. built in OSX:

hey!  what happened to the dedication?


oops emmm sorry J is right so here we go...

..emm for the friendship and the free laughs offered in the chat by Mr J. the man which guitar throws are known (and feared) by public and public medical services, for his famous motto "25 is better than none" i dedicate officially my first SDCC built application to Jimp..

Simone

#42 bugfight

bugfight

    MIDIbox Guru

  • Frequent Writer
  • PipPipPipPip
  • 798 posts
  • Locationarlington, tx usa

Posted 12 September 2007 - 23:33

oops emmm sorry J is right so here we go...
...


LMAO!

so ahem,
i would like to thank all the little people, without whom these 25 awards would not be possible.
i w... what? you're playing me off already?!
this is an outrage! why, i a.......


#43 wackazong

wackazong

    MIDIbox Tweaker

  • Programmer
  • PipPipPip
  • 285 posts
  • LocationZurich, Switzerland

Posted 24 February 2008 - 23:32

Well, I did everything how Audiocommander told us to do it and.... it works!
Thanks!

#44 audiocommander

audiocommander

    MIDIbox Guru

  • Frequent Writer
  • PipPipPipPip
  • 1,358 posts
  • LocationNuremberg, Germany

Posted 24 February 2008 - 23:45

nice to hear that, wackazong - and thanks for the feedback :)

happy coding!

#45 wackazong

wackazong

    MIDIbox Tweaker

  • Programmer
  • PipPipPip
  • 285 posts
  • LocationZurich, Switzerland

Posted 22 August 2008 - 17:22

Hi!

I cannot find the C skeleton anymore? Is it part of the base package now? Sorry, but I am a first timer, and last time I installed the XCode stuff I actually did not do any coding.

And: How do I adjust the C Skeleton to work on a PIC18F4685? That ist the one I am using.

Thanks!
ALEXander.

#46 audiocommander

audiocommander

    MIDIbox Guru

  • Frequent Writer
  • PipPipPipPip
  • 1,358 posts
  • LocationNuremberg, Germany

Posted 28 August 2008 - 15:02

Hi,

sorry, there have been many many changes lately and a completely new skeleton has been introduced with the ability to include libs - but I have had no time yet to catch up, so I cannot say much to this.
Though there are some newer topics here regarding that, maybe you should look around a bit.

The basics of how to get SDCC and GPUtils working with Xcode should be still valid though.

Best,
Michael

#47 8O

8O

    MIDIbox Newbie

  • Members
  • Pip
  • 47 posts
  • LocationBerlin

Posted 03 September 2008 - 23:34

Hi!

I cannot find the C skeleton anymore? Is it part of the base package now? Sorry, but I am a first timer, and last time I installed the XCode stuff I actually did not do any coding.

And: How do I adjust the C Skeleton to work on a PIC18F4685? That ist the one I am using.

Thanks!
ALEXander.

Hi Alexander - in another thread I had the same question regarding the skeleton code. Yes, it's been moved to the mios base package.

#48 mhomscheidt

mhomscheidt

    MIDIbox Newbie

  • Members
  • Pip
  • 2 posts

Posted 06 January 2009 - 12:28

Hello,


I just made an update of the installation instruction for sdcc in http://www.midibox.o...nd_sdcc_on_osx. If you have MacPorts (http://www.macports.org) installed (which is usewfull for other terminla apps) then you can install sdcc from MacPorts repository.

I hope this helps

Michael

#49 stryd_one

stryd_one

    MIDIbox Guru

  • Frequent Writer
  • PipPipPipPip
  • 8,850 posts
  • LocationMelbourne, Victoria, Australia

Posted 06 January 2009 - 15:06

Welcome aboard Michael!

Thanks for the doco! I had a look, and I noticed that you have added stuff about macports, and removed something about Fink. I'm not a Mac user, so maybe this new method is the only way to do it, but perhaps it would be best to leave two methods in place, and allow the reader to decide which one to use....

#50 audiocommander

audiocommander

    MIDIbox Guru

  • Frequent Writer
  • PipPipPipPip
  • 1,358 posts
  • LocationNuremberg, Germany

Posted 06 January 2009 - 15:12

Hi Stryd,

I was the one who removed Fink. AFAIK MacPorts and Fink are two similar but different solutions that I believe are a bad idea to mix up. As the install of SDCC has been improved much in the past, I don't think it's necessary anymore to mess around with single libs & dependencies.
;-)

Best,
Michael

#51 stryd_one

stryd_one

    MIDIbox Guru

  • Frequent Writer
  • PipPipPipPip
  • 8,850 posts
  • LocationMelbourne, Victoria, Australia

Posted 06 January 2009 - 16:02

Just wanted make sure it's not lost info... Sounds like it's better off lost after all.

Thanks man :)

mmmm, doco.

#52 Gaston

Gaston

    MIDIbox Newbie

  • Members
  • Pip
  • 2 posts

Posted 15 November 2009 - 14:11

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, 15 November 2009 - 14:11.


#53 Gaston

Gaston

    MIDIbox Newbie

  • Members
  • Pip
  • 2 posts

Posted 15 November 2009 - 18:58

I think I got it know, but where the hell is "Makefile.spec" and "mkmk.pl"?? Is it part of Mios? I think it should be, but it isn't in the mios_base folder...

Edited by Gaston, 19 November 2009 - 20:59.


#54 Pulsewidth947

Pulsewidth947

    MIDIbox Newbie

  • Members
  • Pip
  • 94 posts
  • LocationGY, England

Posted 30 January 2011 - 19:21

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.

#55 margat

margat

    MIDIbox Newbie

  • Members
  • Pip
  • 1 posts

Posted 21 October 2011 - 18:02

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?!

http://midibox.org/f...missing-mkmk-pl

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

#56 novski

novski

    MIDIbox Addict

  • Members
  • PipPip
  • 148 posts
  • Locationswitzerland

Posted 29 April 2012 - 21:51

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

#57 EsotericLabs

EsotericLabs

    MIDIbox Addict

  • Members
  • PipPip
  • 105 posts
  • LocationAmstelveen, NL

Posted 25 June 2012 - 15:28

It is possble to program entirely in Xcode 4.3 under Lion. See the post on http://midibox.org/f...code-43-latest/

#58 EsotericLabs

EsotericLabs

    MIDIbox Addict

  • Members
  • PipPip
  • 105 posts
  • LocationAmstelveen, NL

Posted 25 June 2012 - 16:07

It is possble to program entirely in Xcode 4.3 under Lion. See the post on http://midibox.org/f...code-43-latest/

#59 Triffki

Triffki

    MIDIbox Newbie

  • Members
  • Pip
  • 24 posts

Posted 17 October 2012 - 22:39

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.o...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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users