User Tools

Site Tools


user:bh011695:start:macinstall_xcode

Installing Mac Os X Leopard

There really isn't a whole lot to this. The install was fairly straight forward on this one. The usual click next and wait for the most part.

  • Initially you'll get prompted as to whether or not you'd like to go through with the install. Click continue.
  • Next the installer will prompt you as to where you want to install the operating system. Install it to where ever you want it. In this case, lairMacHD. Click continue.
  • Now the installer asks whether you're doing a fresh install or an upgrade. In my case, a fresh install. And make sure to format the disk as journalled and continue.
  • Here's where you get asked about installing additional packages. Languages, printer drivers, and things like that. Keep it to the bare minimum. If you don't need it, don't bother installing it. It just wastes HDD space. More continue clicking :)
  • Now onto the real fun part. The waiting game. This could take a while so a drink and a snack are probably in order at this point.
  • After OS X has finished installing you'll create a username. I chose “mumblyjoe” with no password.
  • From here, login and go.

Doing some C++ in Xcode

I'm jotting this down just for the sake of doing so in case either A) I forget or B) somebody else needs to know how to do this. Personally, I found trying to make a C/C++ program in Xcode a bit cryptic. I think it was a good hour or so before I had figured out how to do it properly. So, in the event that someone else has the same problem, here we are.

Installing xCode
  • If you've already done this. Continue ahead.
  • xCode should be on your OS X disk. Insert the disk into the drive.
  • The file you're looking for is xcodetools.mpkg. Drag that onto your desktop, mount it, and start the installation.
  • For this, you only really need the core components, however, the UNIX tools may be useful to us. Install them if you like.
Creating a Program in Xcode

Okay, with the installation out of the way we can go to the meat of this. This is where I found things to get kind of awkward. The option to make a C/C++ is a bit hidden, or at least the right one is anyway. There's a bunch of C/C++ things that you might think are what you want but aren't. This is why things are a little weird here.

  • Once you're passed the assistant thing that pops up create a new project.
  • Scroll way down until you see the option to create a command line utility.
  • Click the command line utility followed by the C++ tool.
  • Give it a name and save it wherever you want it.
  • You'll see a main.cpp. This is your application file for your program.
  • Click on that and a hello world program should open up. Feel free to make something more interesting.
  • Click on the build button at the top. This will compile your Hello World or more interesting program.
  • If you go to the project organizer, there should now be an executable file.
  • Click on that and get greeted by a nice message or something far more interesting.

And there you have it. Hopefully that clears up doing C/C++ in Xcode.

user/bh011695/start/macinstall_xcode.txt · Last modified: 2010/12/16 12:17 by bh011695