GUIDE: Compiling ResidualVM on a PPC Mac

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Elowan
Posts: 45
Joined: Tue May 10, 2011 8:05 am

GUIDE: Compiling ResidualVM on a PPC Mac

Post by Elowan »

A NOOBS TUTORIAL FOR COMPILING RESIDUAL ON PPC

So, what is this?
For those, who are still on an G4 Mac with OSX 10.5.8 and want to play Grim Fandango
thru ResidualVM and not thru emulation via VPC/Win98 - this is for you!

This procedure should work on any 12" powerbook G4 1.5Ghz, running 10.5.8.
Other ppc machines are not tested. If you got a different PPC machine or OSX version
, this might not work for you!

Hint: Every terminal command in quotes must be used without ""

Hint: If you are on 10.5 Mac Intel, you can skip step 9.

First, we need to get and setup some tools - this is maybe the hardest part.

1. Get a copy of XCode and make sure, you install the whole thing. X11 also must be installed (X11 User package), you will find this your Leopard CD/DVD, see "optional install" and/or on the internet.

2. If you dont have an account at Apple Developer Network, go create one. It takes only
a few minutes and you gain access to the tool you will need: XCode 3.1.4.
link: http://connect.apple.com/
You will find it there (a far bit down the page, or just simply do search within your
browser)

3. Download XCode 3.1.4 (about 1GB ) and install it on your Mac.

4. Now, you are set to install another one : MacPorts
link: http://www.macports.org/install.php

5. After you've successfully done this, open the terminal an type:
"sudo port -v selfupdate" and wait for some smaller downloads to end.

6. Now type "sudo port install libsdl" to get the last "tool" you need.
This will take a longer while (like 1 hour or a bit more, if you are on G4 1.5Ghz)
Just be patient and wait till this stuff finishes.

7. We also need Git to download the source: Type: "sudo port install git-core"

8. Ok, now it's time to get the latest version of ResidualVM. Just type "git clone git://github.com/residualvm/residualvm.git" into your terminal.
Now, change the directory: "cd residual"

9. After a short download go on with "./configure". After it finishes, you have to edit
a file called "config.h". You can open it in editor by typing "pico config.h". go down the lines
(arrow-down key), till you see "#ifndef....UINT64" "#define...UINT64" "#endif" and delete these lines. (ONLY THESE!)

10. Now, we can (finally) start building the application. Type "make bundle" into your terminal
and wait for the process to finish.

11. You can close the terminal now and open up you home directory in finder. Or just type "residual"
in spotlight and open the residual folder. In this folder, you should see an application called "ResidualVM"
with a yellow "R" icon. You can drag this into your dock or just doubleclick it to start ResidualVM.

This tutorial is based on a thread from residual forums.
link: http://forums.residualvm.org/viewtopic. ... sc&start=0

Thank you everybody for the awesome support!
Last edited by wiganpie on Mon May 23, 2011 1:26 pm, edited 6 times in total.
User avatar
somaen
ScummVM Developer
Posts: 376
Joined: Thu Apr 21, 2011 7:31 pm
Location: Trondheim, NO

Post by somaen »

I also added this to the wiki:
http://sourceforge.net/apps/mediawiki/r ... ResidualVM

If you don't like that, then I'll remove it, also tell me if I copied anything wrong.
Elowan
Posts: 45
Joined: Tue May 10, 2011 8:05 am

Post by Elowan »

Hi,

It looks good, nice wiki :)

Did you change your username?

I mostly did like you told me, so you done the real work and you should put your name on the wiki, too.

Greetings
User avatar
somaen
ScummVM Developer
Posts: 376
Joined: Thu Apr 21, 2011 7:31 pm
Location: Trondheim, NO

Post by somaen »

Yes, I had it changed to have the same in both github,forums and irc.
User avatar
Harrypoppins
Posts: 124
Joined: Sat Apr 25, 2009 1:23 pm

Post by Harrypoppins »

Thanks for tuto ! ;)

In my case I am on Leopard with an intel and ResidualVM don't work (it's not specify on download page unfortunatly -_-), but you give me the solution. :D

Do you think if I make it on my computer (intel 10.5.8 ) it'll work for the others mac users who are on 10.5 (ppc & intel).

If yes, i'm agree to upload mine version of residual ! ^^


One more time thanks for this great tuto, very interisting for residual and learning how compiling !

Cheers.
User avatar
somaen
ScummVM Developer
Posts: 376
Joined: Thu Apr 21, 2011 7:31 pm
Location: Trondheim, NO

Post by somaen »

Actually, the PPC-version should work on all Macs, since Rosetta emulates PPC, it might go rather slow however.

Yours should work on any Intel though, but if you do share it, PLEASE note the date, and revision, so it isn't confused with later versions, since ResidualVM is still under heavy development.
User avatar
Harrypoppins
Posts: 124
Joined: Sat Apr 25, 2009 1:23 pm

Post by Harrypoppins »

Ok Somaen, If I share some compiled ResidualVM I'll notice Date & Nb version.
Actually, the PPC-version should work on all Macs, since Rosetta emulates PPC, it might go rather slow however.
That is the question, if i compile ResidualVM on my intel with 10.5.8 it's not PPC ? Sorry but there is a misunderstanding, and my english isn't pretty good too... ^^'

So here is a way to compile an "Universal" (I don't know which word use) version for Intel 10.5 & 10.6 ?
Thanks for reply & godd night !
User avatar
somaen
ScummVM Developer
Posts: 376
Joined: Thu Apr 21, 2011 7:31 pm
Location: Trondheim, NO

Post by somaen »

There are 3 mac platforms (well actually 4, but we support 3):
PPC
Intel 32-bit
Intel 64-bit

PPC-files work on all 3. (10.4 (possibly), 10.5, 10.6)
Intel 32-files work on Intel 32 and 64 (10.5 and 10.6)
Intel 64-files work only on Intel 64, and if they use SDL, only on 10.6.

Edit: Just for completeness, the fourth is PPC 64-bit, which never had much support for GUI-programs.

Also, yes, it is possible to merge all of the above 3 into a proper Universal Binary, that contains all 3.
User avatar
Harrypoppins
Posts: 124
Joined: Sat Apr 25, 2009 1:23 pm

Post by Harrypoppins »

Thanks for theses informations, you rocks ! :)

Have a good week you two. ^^

Edit : Problem at step 7 :

When I type "git clone git://github.com/residualvm/residualvm.git" into terminal I've the following message : "-bash: git: command not found"

Any Idea ? Thanks.
KuroShiro
Posts: 473
Joined: Thu May 15, 2008 7:42 am
Location: Somewhere Out There

Post by KuroShiro »

Harrypoppins wrote:Thanks for theses informations, you rocks ! :)

Have a good week you two. ^^

Edit : Problem at step 7 :

When I type "git clone git://github.com/residualvm/residualvm.git" into terminal I've the following message : "-bash: git: command not found"

Any Idea ? Thanks.
You need to install and set up the actual git program before trying to use it in the terminal. This should probably be added to the tutorial. :P
User avatar
somaen
ScummVM Developer
Posts: 376
Joined: Thu Apr 21, 2011 7:31 pm
Location: Trondheim, NO

Post by somaen »

fixed.
User avatar
Harrypoppins
Posts: 124
Joined: Sat Apr 25, 2009 1:23 pm

Post by Harrypoppins »

Thanks Kuroshiro ! :D

I'll try that tomorow and give you my results (and share it if it work).

Have a good night ! :)
Edit : I've found mistake somaen :
Hint: If you are on 10.5 Mac Intel, you can skip step 8.
Should became :
Hint: If you are on 10.5 Mac Intel, you can skip step 9.
(and you should edit the wiki)
-> there is no offense it's just for the others noob and i'm thankful for your help & replies. Cheers ^^
User avatar
MeddlingMonk
Posts: 221
Joined: Wed Jan 21, 2009 10:06 pm

Post by MeddlingMonk »

Minor point, but the tutorial refers at the beginning to OSX 10.5.9. You wouldn't want anyone to get the vapors because they can't find a non-existent update, would you? :wink:
User avatar
somaen
ScummVM Developer
Posts: 376
Joined: Thu Apr 21, 2011 7:31 pm
Location: Trondheim, NO

Post by somaen »

Fixed, I overlooked the git-requirement, as I _think_ XCode 4 comes with git prepackaged. It isn't really required though, as you CAN download from the github-page too, but that would require a bit more thorough explanation.
User avatar
Harrypoppins
Posts: 124
Joined: Sat Apr 25, 2009 1:23 pm

Post by Harrypoppins »

There is my results with your 'how-to' :
Hint: If you are on 10.5 Mac Intel, you can skip step 9.
9. After a short download go on with "./configure". After it finishes, you have to edit
a file called "config.h". You can open it in editor by typing "pico config.h". go down the lines
(arrow-down key), till you see "#ifndef....UINT64" "#define...UINT64" "#endif" and delete these lines. (ONLY THESE!)
I'm on 10.5.8 Intel (2.13 GHz Intel Core 2 Duo) and I have to follow step 9 (if not I have error message while I make the bundle).

So I've succesfully compile ResidualVM, thanks everybody ! ^^

I will open a new subject with my version of residual (with info, I've dont forget Somaen).

Cheers.
:D

Edit : Is it normal there isn't any option into 'graphic' in 'Options' & on 'Edit' with Grim Fandango ?
Fullscreen work but i've have to edit 'ResidualVM Preferences' and add line :
fullscreen=true
And the cursor's mouse isn't hidden.
(excuse me if these are stupid questions, I'm just affraid to done some mistakes while compiling)
Here is the link of my compiled version : (30/05/11 0.0.07git3ab63f8)
http://www.megaupload.com/?f=GH0OQ1I5
Post Reply