ScummVM/Wii compilation instructions?
Moderator: ScummVM Team
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.
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.
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
(Disclaimer: all compiled at work, haven't actually tested my scummvm-wii.dol yet. Will do so tonight.)
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
(Disclaimer: all compiled at work, haven't actually tested my scummvm-wii.dol yet. Will do so tonight.)
- Mr_Nick666
- Posts: 132
- Joined: Wed Apr 11, 2007 9:59 am
- Location: Bideford, Devon, UK
- Contact:
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?
What am I doing wrong here?
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
I'm getting an Out of Memory error when running COMI.
I'm hoping to fix that.
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
I'm getting an Out of Memory error when running COMI.
I'm hoping to fix that.
I don't know how to get past this error, but I'll post the steps up until this point.
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
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.
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).../../../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
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
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.
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
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