ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > Wii Port > ScummVM/Wii compilation instructions? Goto page 1, 2  Next
ScummVM/Wii compilation instructions?
  Author    Thread Reply to topic
Bossk



Joined: 03 Nov 2008
Posts: 107
ScummVM/Wii compilation instructions? 

Can anyone (dhewg) tell me how to compile ScummVM for the Wii properly?
I have devkitPro + libogc (git) + libfat (svn + joedj's patches) installed, and scummvm svn checked out.

The configure script does not support the wii backend yet.


Last edited by Bossk on Tue Nov 04, 2008 12:37 pm; edited 1 time in total

 Reply with quote  
Post Mon Nov 03, 2008 2:21 pm 
 View user's profile Send private message
Bossk



Joined: 03 Nov 2008
Posts: 107
 

Okay. I got it figured out.
I compiled the latest SVN checkout with the latest devkitPPC, libogc, libfat.
I also crosscompiled libmpeg2, libogg, libvorbis, libtremor.

This means I now have a Wii ScummVM binary with:

- SDHC support
- libfat speedups (no hickups in COMI)
- MPEG2 support for Broken Sword movies
- Ogg/Vorbis support

Only crosscompiling libFLAC is still a major pain, so no flac support for me just yet. Luckily I don't use flac Wink

(Disclaimer: all compiled at work, haven't actually tested my scummvm-wii.dol yet. Will do so tonight.)

 Reply with quote  
Post Tue Nov 04, 2008 12:36 pm 
 View user's profile Send private message
wfeltmate



Joined: 26 May 2008
Posts: 20
 

could you post how you did it?
I'm still trying to figure it out

 Reply with quote  
Post Tue Nov 04, 2008 2:25 pm 
 View user's profile Send private message
Bossk



Joined: 03 Nov 2008
Posts: 107
 

You need the very latest versions of:
- devkitPro / devkitPPC (r15)
- libogc (I used the latest git, but svn may work too)
- libfat (I used the latest git, but svn may work too)

Having a proper uptodate compiling environment is the key.

 Reply with quote  
Post Wed Nov 05, 2008 1:00 pm 
 View user's profile Send private message
Mr_Nick666



Joined: 11 Apr 2007
Posts: 146
Location: Bideford, Devon, UK
 

Did it all run ok is the question?

 Reply with quote  
Post Wed Nov 05, 2008 1:02 pm 
 View user's profile Send private message Visit poster's website
Bossk



Joined: 03 Nov 2008
Posts: 107
 

I haven't been able to test it yet.
I do have time tonight though, so I hope to report a success here.

 Reply with quote  
Post Wed Nov 05, 2008 1:18 pm 
 View user's profile Send private message
Farog



Joined: 05 Nov 2008
Posts: 4
 

i also hope you're successfull, because i only have an 4gb sdhc and a 128 mb sd card and the 128 one is a litle bit too smal for all the great scumm games Wink

 Reply with quote  
Post Wed Nov 05, 2008 5:16 pm 
 View user's profile Send private message
wfeltmate



Joined: 26 May 2008
Posts: 20
 

Ok... I have devkitPPC(r15), libogc(git), libfat(cvs) and the latest scummVM(svn), but I keep getting a "support for wii backend not implemented in configure script yet" error during configure and a fatreadahead error when I try to run make(understandably, give the configure result).

What am I doing wrong here?

 Reply with quote  
Post Thu Nov 06, 2008 12:43 am 
 View user's profile Send private message
Bossk



Joined: 03 Nov 2008
Posts: 107
 

Yes, those are the versions you need.

The configure script indeed does not support the wii backed yet.
Go to backends/platforms/wii and call 'make' there. If everything goes well you will get a scummvm-wii.dol in that directory.
If you don't have libflac, libmpeg2, libtremor crosscompiled for the gekko you may have to edit the Makefile to disable those libraries at first.

BTW, Compiling scummvm with all engines and MPEG2, Ogg/Vorbis, FLAC support as I did results in a too large .dol Wink
I'm getting an Out of Memory error when running COMI.

I'm hoping to fix that.

 Reply with quote  
Post Thu Nov 06, 2008 8:23 am 
 View user's profile Send private message
Farog



Joined: 05 Nov 2008
Posts: 4
 

too bad, i realy want a version that suports sdhc cards, but i don't get how to compile it Sad

 Reply with quote  
Post Thu Nov 06, 2008 4:31 pm 
 View user's profile Send private message
wfeltmate



Joined: 26 May 2008
Posts: 20
 

I don't know how to get past this error, but I'll post the steps up until this point.


quote:
../../../backends/platform/wii/main.cpp: In function 'int main(int, char**)':
../../../backends/platform/wii/main.cpp:80: error: 'fatEnableReadAhead' was not declared in this scope
make: *** [backends/platform/wii/main.o] Error 1



1) Go here and follow the instructions. If you are running windows, then you should heed their advice and use the installer. If you are using most any flavour of linux, then you can create a directory anywhere(but I would really recommend somewhere within your home directory to be safe).

The example package isn't required at all, but as it shows on that page, the directory structure should look like this:

devkitpro
|
+-- devkitPPC
+-- wiiload
| +lin32
| +win32
+-- libogc

Wiiload should only have the folder for your OS. Linux = lin32 and Windows = win32. You can grab wiiload from here: http://wiibrew.org/wiki/Wiiload

1b) FOR LINUX ONLY. Edit ~/.bashrc and add
quote:
export DEVKITPRO=/path/to/devkitpro # replace this by your actual path
export DEVKITPPC=$DEVKITPRO/devkitPPC
PATH=$PATH:$DEVKITPPC/bin
PATH=$PATH:$DEVKITPRO/wiiload/lin32



2) Don't download libogc from that page. You will instead want to use and build it and then libfat from cvs. On linux(and possibly windows if cvs is installed) you can do that by using the following commands. Make sure that you have browsed to the directory you wish to download them to in your terminal/command prompt.

cvs -d:pserver:anonymous@devkitpro.cvs.sourceforge.net:/cvsroot/devkitpro login

cvs -z3 -d:pserver:anonymous@devkitpro.cvs.sourceforge.net:/cvsroot/devkitpro co -P libogc

cvs -z3 -d:pserver:anonymous@devkitpro.cvs.sourceforge.net:/cvsroot/devkitpro co -P libfat

3) You will then need to build/compile and install them. First you will need to do this to libogc. On linux(I don't know the steps for windows) this can be done by the commands make and then make install in the libogc directory. Next, in the libfat directory, issue the commands make wii-release and then make ogc-install

4) Download the latest copy of the ScummVM source code from the SVN, extract and browse to the backends/platform/wii/ directory and issue the command make. If all goes well, then it should build a .dol file for you.

As a note though, you may get some errors in relation to libflac, libmpeg2 and libtremor. If you do and it won't compile you will either have to cross-compile them(don't look at me) or disable them in the make file. To do so, simply open it in a text error and replace USE_TREMOR=1 with USE_TREMOR=0 and do the same for USE_FLAC and USE_MPEG2. Save, exit and try again.


If all goes well congrats, if not hopefully someone can point out where we are going wrong.
 Reply with quote  
Post Fri Nov 07, 2008 3:47 am 
 View user's profile Send private message
Bossk



Joined: 03 Nov 2008
Posts: 107
 

Ok several people have asked for SDHC binaries, so here they are. Please read the included readme.

I am not dhewg or a scummvm developer.
I don't know if dhewg approves of this, and hope he does not mind. If you do, please let me know.

scummvm-wii-SDHC_20081107.rar

 Reply with quote  
Post Fri Nov 07, 2008 3:25 pm 
 View user's profile Send private message
joda



Joined: 01 Nov 2008
Posts: 2
 

Thanks a whole lot!

 Reply with quote  
Post Fri Nov 07, 2008 6:20 pm 
 View user's profile Send private message
Farog



Joined: 05 Nov 2008
Posts: 4
 

thanks Bossk ^^
I'll try it out as soon as i can, hopeing for good results Wink

also thanks to wfeltmate for posting the compiling steps ^^

 Reply with quote  
Post Sat Nov 08, 2008 12:18 am 
 View user's profile Send private message
Farog



Joined: 05 Nov 2008
Posts: 4
 

ok, with this version the sdhc cards could be read, but the pointer of the wiimote doesn,t work Sad

 Reply with quote  
Post Sat Nov 08, 2008 10:02 am 
 View user's profile Send private message
  Display posts from previous:      
Reply to topic

Forum Jump:
 
Goto page 1, 2  Next


Forum Rules:
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
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge