ResidualVM logo Forum Index - ResidualVM website - Contact us - Rules Login    Register     Search curved edge
It is currently Sat Nov 18, 2017 2:52 am

All times are UTC




Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: Sun May 22, 2011 11:50 am 
Offline

Joined: Tue May 10, 2011 8:05 am
Posts: 45
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 Elowan on Mon May 23, 2011 1:26 pm, edited 6 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2011 7:02 pm 
Offline
ResidualVM Developer
User avatar

Joined: Wed Nov 24, 2010 2:44 am
Posts: 322
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2011 6:35 am 
Offline

Joined: Tue May 10, 2011 8:05 am
Posts: 45
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2011 1:18 pm 
Offline
ResidualVM Developer
User avatar

Joined: Wed Nov 24, 2010 2:44 am
Posts: 322
Yes, I had it changed to have the same in both github,forums and irc.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2011 5:44 pm 
Offline

Joined: Sun Sep 20, 2009 8:06 pm
Posts: 47
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2011 7:01 pm 
Offline
ResidualVM Developer
User avatar

Joined: Wed Nov 24, 2010 2:44 am
Posts: 322
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2011 7:07 pm 
Offline

Joined: Sun Sep 20, 2009 8:06 pm
Posts: 47
Ok Somaen, If I share some compiled ResidualVM I'll notice Date & Nb version.

Quote:
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 !


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2011 7:37 pm 
Offline
ResidualVM Developer
User avatar

Joined: Wed Nov 24, 2010 2:44 am
Posts: 322
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 25, 2011 6:57 pm 
Offline

Joined: Sun Sep 20, 2009 8:06 pm
Posts: 47
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 29, 2011 11:34 pm 
Offline

Joined: Thu May 12, 2011 6:26 am
Posts: 12
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 30, 2011 2:31 am 
Offline
ResidualVM Developer
User avatar

Joined: Wed Nov 24, 2010 2:44 am
Posts: 322
fixed.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 30, 2011 7:43 pm 
Offline

Joined: Sun Sep 20, 2009 8:06 pm
Posts: 47
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 :
Quote:
Hint: If you are on 10.5 Mac Intel, you can skip step 8.


Should became :
Quote:
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 ^^


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 30, 2011 8:47 pm 
Offline
User avatar

Joined: Mon May 04, 2009 12:08 am
Posts: 89
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:


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 30, 2011 9:11 pm 
Offline
ResidualVM Developer
User avatar

Joined: Wed Nov 24, 2010 2:44 am
Posts: 322
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 31, 2011 3:51 pm 
Offline

Joined: Sun Sep 20, 2009 8:06 pm
Posts: 47
There is my results with your 'how-to' :

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

Quote:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3  Next

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Forum design by ScummVM team, icons by raina, adopted for ResidualVM
curved edge   curved edge