Apple development environment

Discussion in 'Indie Basics' started by PeterM, Jul 30, 2005.

  1. PeterM

    Original Member

    Joined:
    Aug 5, 2004
    Messages:
    343
    Likes Received:
    0
    Today I started work on porting my lib to OS X. It was going well using Project Builder, until I needed to build DevIL and had trouble with it.

    The Mac I have is an old iBook I bought from a work colleague, and it came with OS 10.2. I've updated it as far as it'll go using Software Update, but it's not enough to run Xcode. For that I need to buy an upgrade to 10.4.

    I was wondering, what tools do the Mac developers out there use? Project Builder, Xcode, plain makefiles, or anything else?

    Thanks for your help.

    Pete
     
    #1 PeterM, Jul 30, 2005
    Last edited: Jul 30, 2005
  2. stan

    Original Member Indie Author

    Joined:
    Jul 27, 2004
    Messages:
    188
    Likes Received:
    0
    *I*, though I'm not really a "Mac developper", used the shell and makefiles and such to build some libs (png, jpeg, ogg, SDL) and my game. Tried to build SDL with XCode, but it didn't work. Turned out to be much easier in the shell. That was under 10.3.
     
  3. ggambett

    Moderator Original Member Indie Author

    Joined:
    Jul 26, 2004
    Messages:
    1,982
    Likes Received:
    6
    I use the shell, something equivalent to makefiles (custom Python scripts, actually), and a syntax-highlighting editor. That's all you need, really.

    BTW, I have OS X 10.3 and XCode does run on it. So you may be able to get a cheap 10.3 instead of 10.4 if all you need is to run XCode.
     
  4. PeterM

    Original Member

    Joined:
    Aug 5, 2004
    Messages:
    343
    Likes Received:
    0
    Thanks for your responses guys. I've another related question, if that's ok.

    Are you able to make proper .app bundles without using Xcode, or do you use another tool for that?

    Pete
     
  5. Dingo Games

    Indie Author

    Joined:
    Jul 26, 2004
    Messages:
    143
    Likes Received:
    0
    Make sure you download the latest version of GCC and set it up to work with Project Builder. When I was using 10.2 a few months ago I had to do this manually. Doing this fixed the problems that I was having.

    I just compress my apps with stuffit. I didn't want to spend the time figuring how to make bundles. Actually I don't use mac enough to really know what a bundle is. :)
     
  6. Tom Cain

    Indie Author

    Joined:
    Jul 27, 2004
    Messages:
    284
    Likes Received:
    0
    Check your hardware specs before getting 10.4, as I don't think 10.4 will run on the oldest ones.

    App bundles are just special folders. The OS will show you the contents of a bundle as a folder structure if you control-click it and select the menu option. You can even drag stuff in and out. That being said, here is one of several tools to build an app bundle. This one is free:
    http://www.versiontracker.com/dyn/moreinfo/macosx/13927
     
  7. PeterM

    Original Member

    Joined:
    Aug 5, 2004
    Messages:
    343
    Likes Received:
    0
    The BundleMaker site has really good info about the contents of bundle folders, and so on.

    http://bundlemaker.forked.net/

    Thanks for that. Probably what I'll do is use the command line to compile and use BundleMaker to make the final bundle. I believe my iBook can run 10.4, but I'm not 100% sure and I don't want to take the risk (spend the cash).
     
  8. Ryan Clark

    Indie Author

    Joined:
    Oct 29, 2004
    Messages:
    656
    Likes Received:
    0
    I use Xcode to make my app bundle, and to edit the source files, but I do the actual compilation using the command line and Makefiles.

    I found that Xcode ignored my command to optimize (-O3)... I could only force it by compiling by hand with g++/make!
     
  9. Jim Buck

    Indie Author

    Joined:
    Jul 27, 2004
    Messages:
    1,158
    Likes Received:
    0
    If you do go the route of Python, you might want to look into a build tool called Scons. It's the makefile of the Python world.
     
  10. Emmanuel

    Moderator Original Member

    Joined:
    Nov 23, 2004
    Messages:
    859
    Likes Received:
    0
    xcode 1.5 will work with 10.3 (Panther); you can still get it from Apple,
    all you need is a free ADC membership, I just checked that you
    can still download it (600-some MB).

    This said, xcode is not much better than using gcc with your own
    scripts and a text editor.

    Best regards,
    Emmanuel
     

Share This Page

  • About Indie Gamer

    When the original Dexterity Forums closed in 2004, Indie Gamer was born and a diverse community has grown out of a passion for creating great games. Here you will find over 10 years of in-depth discussion on game design, the business of game development, and marketing/sales. Indie Gamer also provides a friendly place to meet up with other Developers, Artists, Composers and Writers.
  • Buy us a beer!

    Indie Gamer is delicately held together by a single poor bastard who thankfully gets help from various community volunteers. If you frequent this site or have found value in something you've learned here, help keep the site running by donating a few dollars (for beer of course)!

    Sure, I'll Buy You a Beer