To browse ScummVM Games, scroll up and choose a letter or select Browse by Genre. If you're feeling adventurous, try the advanced rom browser. Before you can start playing games with ScummVM, you first need to install Xcode on your Mac. Xcode is the development tool for Mac OS X and is available for free. To get its latest version, just search for it in the Mac App Store. Extract the Mac client package, Macclient.dmg, to a folder on the local disk. The default path is C:Program FilesMicrosoftSystem Center Configuration Manager for Mac client. Copy the Macclient.dmg file to a folder on the Mac computer. On the Mac computer, run Macclient.dmg to extract the files to a folder on the local disk. See what a m a n d a 🔮 (medtekresearch) has discovered on Pinterest, the world's biggest collection of ideas.

  1. Skumm Mac Os X
  2. Skumm Mac Os Catalina
  3. Skumm Mac Os 11
< Compiling ScummVM

If you're building ScummVM on Mac OS X for your own use only, then just doing things the 'normal' way works fine and you can ignore the below.

However, if it's a build you're planning to release to anyone else, there's some things you need to be aware of!

To support all the above versions of Mac OS X, we basically need to build two copies of ScummVM, and merge them together.

  • Our first build is a PPC build, which we'll compile using the 10.2 SDK
  • The second build is an Intel build, which we'll compile against the 10.4u SDK.


PPC build

For our PPC build to work on all PPC versions of Mac OS X from 10.2 and above, there's a few requirements:

  • We need to use GCC 3.3
  • We need to compile against the 10.2 SDK
  • All the libraries we make use of also need to be compiled using the above.

First, make sure you've installed the 10.2 SDK. This is part of the XCode distribution, but needs to be specifically installed.

Then, there's some environmental variables you need to define. Remember to do this both before you run ./configure, and before make!

Basically we're forcing the configure scripts, and make, to use GCC 3.3, and to use all the libraries and include files that are in the 10.2 SDK, instead of the system ones.

The above is actually the same, no matter whether you're compiling this version on an Intel machine or PPC machine. If you specify the above, you'll output a PPC binary in either case.

Skumm Mac Os X

Now, first we'll have to download and build the dependency libs we're needing for our build. SDL is the only required one, plus whatever optional libs you want, like libMAD, Ogg Vorbis, etc, etc. If you include zlib, there's some special instructions below.

The twist here, is that you should install these libs to a separate location from the regular system libraries. Since we're compiling PPC 10.2 specific versions, we don't want to overwrite our regular libraries. I went with /opt/1028libs/. Just set this with the --prefix option to the ./configure script, for all the libraries you're including. Do this, and make sure you've defined the above environmental libraries both when you do ./configure and when you do make, and you should be set. For some of the libraries you might also need to use the --host=powerpc-apple-darwin option when running the ./configure script.

To compile the SDL library (and maybe some of the other libraries) you will also need to set CPPFLAGS to a slightly different value than what is written above:

Once you've set up all the dependency libraries, you're ready to build ScummVM itself.

First, there a minor change we have to do to the ScummVM config.mk file.

Find the line that says:

Change this to whatever root you used to install the dependency libraries. In my case, I've changed it to:

Next we also have to modify the ports.mk file.

Find the section that starts with:

This is the part of ports.mk that compiles our static binary (so we can distribute it to others without them having to have all the libraries installed)In this section, find and remove this line:

Skumm Mac Os Catalina

Skumm

Also, if want to include zlib, change the line:

to

This will ensure we link zlib in statically instead of dynamically, which avoids some obscure problems we've had on 10.2.x.

Skumm Mac Os 11

At this point, we also need to make sure that the configure script finds the correct version of sdl-config (In other words, the one we compiled ourselves and put, for example, in /opt/1028libs.

We do this thusly:export PATH='/opt/1028libs/bin:$PATH' When you've done the above, it's time to run ./configure. For each library you want to include, you have to tell ScummVM where it can find it.So, for me, that would be:

--with-mad-prefix=/opt/1028libs

--with-vorbis-prefix=/opt/1028libs

When that's done, run make as usual (as always, make sure you've defined the environmental variables that enable cross compiling), and you're done.

Intel build

Similarly to the PPC build, there's a few requirements for making an Intel build that'll work on both 10.4 and 10.5

  • Compile using GCC 4.0 (In fact, you can't even compile Intel binaries using GCC 3.3)
  • Compile against the 10.4u SDK
  • Same for all dependency libraries.

Also note that you should run ./configure with --disable-nasm. The x86 assembly versions of the HQ2x and HQ3x scalers don't work properly on Mac OS X. Since Intel Macs are, by default, fast enough not to need them in either case, it's not a very big deal.

Compiling on an 10.4.x Intel box

If you're using 10.4.x and have an Intel CPU, you basically don't have to do anything special at all. Just compile ScummVM like you normally would, and use MacPorts or Fink for the dependency libraries.

Compiling on an 10.5.x Intel box

First, install the 10.4u SDK. Then define these environmental variables:

Compile all the libraries using the above, and then ScummVM itself (specifying where to find the libraries, like we did for the PPC build above).

Compiling on a PPC box

I don't do this myself, so I can't tell you the exact steps to do here. It shouldn't be much more than adding '-arch intel' to the CFLAGS and CXXFLAGS used above.

Putting it all together

Now we want to put merge the two binaries together, and make a package for distribution.

  • Run 'make bundle' for your PPC build, using all the PPC settings.
  • Do the same for the Intel build, using all the Intel settings.
  • Pick one of the build directories
  • Copy 'scummvm-static' from the PPC build directory, to a file called 'scummvm-static-ppc' in whatever build directory you chose.
  • Copy 'scummvm-static' from the Intel build directory, to 'scummvm-static-x86' in the same directory.
  • Run 'strip' on both of the above files to remove debugging info (otherwise the files will be tens of megabytes large).
  • Run 'lipo -create scummvm-static-x86 scummvm-static-ppc -output scummvm-static'
  • Run 'make osxsnap'

Tada! The resulting ScummVM-snapshot.dmg is a package of ScummVM that should work on Mac OS X 10.2, 10.3, 10.4, 10.5, both Intel and PPC builds.

Retrieved from 'https://wiki.scummvm.org/index.php?title=Compiling_ScummVM/Mac_OS_X_Crosscompiling&oldid=16535'