Does anyone know how I can cross-compile software for a 1999 iMac G3 with a PowerPC processor? Are there resources on how to develop for this CPU and is there any community around it?

  • kalleboo@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    15 hours ago

    I’ve been dabbling in C development for classic Mac OS when I’ve had some spare time over the past year. I’ve been doing it directly on my old Macs, a PowerMac G4 when I’m at my desk or a PowerBook G3 Lombard when I’m in the living room.

    I’ve been using CodeWarrior as a compiler/IDE. For documentation I have a copy of Inside Macintosh in HTML format from an old Apple Developer CD, a copy of “A Hobbyist’s Guide to Programming the Mac OS in C” in PDF format, and a program called “Toolbox Assistant” for quick reference. Occasionally using MacsBug as a debugger when I’m outside of the IDE. All of this can be found on Macintosh Garden or just Google.

    edit: My focus has been more on utility-type applications but if you’re more into games or something there are a bunch of books here with different focuses https://vintageapple.org/macprogramming/

  • dparticiple@sh.itjust.works
    link
    fedilink
    arrow-up
    14
    ·
    2 days ago

    I can’t speak for cross-compilation, but I was a serious Mac developer on System 7 - MacOS 9 back in the day, and Metrowerks CodeWarrior was my tool of choice for C/C++ . A thread on 68KMLA from a few years ago has an extensive discussion of CodeWarrior: https://68kmla.org/bb/threads/metrowerks-codewarrior-best-version-and-updates.42338/

    Bravo for keeping this great old software and hardware going (System 7 is perhaps my favorite OS of all time). Let us know what you build!

    • dr_robotBones@reddthat.comOP
      link
      fedilink
      arrow-up
      3
      ·
      21 hours ago

      Wow I had no clue it would be possible to develop on the machine itself! I’m glad people have maintained archives of this system’s software, it may be worth it to develop on the iMac itself, thank you!

      • [object Object]@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        19 hours ago

        I mean, I’ve played ‘Deja Vu’ in a MacOS emulator on my Android tablet. Having first to boot from a system floppy image, then adding the game image. I’m quite sure there are archives of old Mac software around, just archive.org should have plenty.

        The most annoying aspect of getting software into the emulator was the fact that a lot of it is distributed in archives made by a popular compressing utility for Classic MacOS, I forget what it’s called. The util is proprietary, and even with my flexible morals I didn’t want to sully my emulator with it.

        • dparticiple@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          18 hours ago

          If I had to guess, I’d say that you’re referring to StuffIt archives (with a .sit file extension). They were the most common classic MacOS archive format. Copies of StuffItExpander (free, if I remember correctly) are readily available, however unrar on *nix platforms will also extract them and retain the Mac resource fork according to https://github.com/PiSCSI/piscsi/issues/630 . Good luck!

          • [object Object]@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            16 hours ago

            That’s the name, yeah.

            Personally I don’t expect to be fiddling with this stuff again anytime soon, although ‘Deja Vu 2’ remains on the tablet unfinished, so far.

  • chonglibloodsport@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    2 days ago

    There absolutely is a vintage Mac 68K and PowerPC development community, if you allow me to be loose with the word community. To my knowledge, there isn’t a single, centralized space for people discussing and sharing tips and projects for vintage Macs. Instead, there are a lot of different people and mini communities spread all over the place, not all of which are specific to development.

    First of all, there’s MARCHintosh and the wider community of vintage Mac retrocomputing enthusiasts, including Ron’s Computer Videos and Mac84.

    Next there’s the 68KMLA forums which, despite the name, also include PowerPC Macs for discussion. There’s also the MacRumors forums which have numerous sections for earlier Macs.

    Now, for cross-compiling, the main project I’m aware of is Retro68 which supports 68K and PowerPC targets. I’ve never used it though so I can’t vouch for it.

    If you’ve never developed software for Mac before, you’re going to want some documentation. Thankfully, there’s a nice library over at Vintage Apple! Also be sure to check out the various collections over at Internet Archive (the filtering options on the left are extremely powerful).

    To get more specific you’ll have to provide more specifics about the type of development you’re interested in. Is it Mac OS 9 or X? I assume you have an iMac G3 and you’ll want to run software on it. Have you serviced the machine to avoid damaging it with leaky capacitors or batteries? Have you replaced the mechanical hard drive with an SSD using an IDE/SATA converter?

    These are all things to consider if you want to keep your iMac going as a long term hobby!

    • dr_robotBones@reddthat.comOP
      link
      fedilink
      arrow-up
      4
      ·
      21 hours ago

      This is quite awesome! Unfortunately as far as servicing goes the machine has been sitting in our basement for years, no work has been done on it. I’m glad its still working, hopefully I can deal with the capacitors before its too late. It has its original hard drive which still works and has some cool old games on it and its running the original MacOS 9.

      • dparticiple@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        14 hours ago

        Take a look at https://recapamac.com.au/ . The chap is no longer in the recapping business, but offers some helpful resources. Also consider replacing the PRAM battery – I’m not a vintage iMac expert but know that this has been an issue with other older Macs.

      • chonglibloodsport@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        21 hours ago

        I have an old Mac Classic from 1990-1991 or so sitting in my basement collecting dust. I need to clean it up and crack it open to do a full recap soon. I’m going to grab a BlueSCSI to replace the internal hard drive with a fast SD card. These old machines absolutely FLY when you get them on solid state storage. It’s pretty amazing how nice they feel to use when everything loads instantly!

      • rekabis@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        18 hours ago

        It has its original hard drive which still works

        For reliability you should really switch to an IDE SSD.

        Yes, they do exist. OWC sells them, albeit in laptop HDD size, so you will need an IDE adapter.

  • th3dogcow@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    2 days ago

    This forum and Macintosh Garden would be worth taking a look.

    Back in the day, an easy programming tool for Mac was called Real Basic. Like VB but on a Mac.

    I don’t have any PPC hardware anymore, but now I kind of wish I did lol.

    Hope this points you in the right direction.

  • azimir@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    2 days ago

    Well, one option would be either Open or NetBSD. They both have Power PC architecture ports and come with compilers. It would not be cross compiling, but you could run native and compile the source there.

    • dr_robotBones@reddthat.comOP
      link
      fedilink
      arrow-up
      2
      ·
      21 hours ago

      Its really amazing how the Unix-like OSes can run on anything! I plan on keeping the original OS though, but thank you for the information.

  • themoken@startrek.website
    link
    fedilink
    arrow-up
    5
    ·
    2 days ago

    Are you putting Linux on it, or are you looking to run MacOS?

    If you’re doing Linux, doing a GCC cross tool chain (with a tool like crosstool-ng) should be a good start.

  • beeng@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 day ago

    Check out T2 Linux… I see it supports lots of hardware.

    Edit: ahh g3 is a little too far. G4 minimum I think for T2

  • Brosplosion@lemmy.zip
    link
    fedilink
    arrow-up
    2
    ·
    2 days ago

    The Yocto project supports PowerPC as a compilation option so you could build a lightweight distribution from source that way