Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to build mgba standlaone for wii ?
#1
Hi,I use my wii to run mgba standalone,but the speed is slow.when I saw your source on github,I found the audio SampleRate is 48KHZ.
Now I wan't change it to 32KHZ and re build the .DOL file for wii.
So,how should I do? I need what SDK on linux or windows to build it? Use cmake or gcc or other?
thanks!
Reply

#2
now I know howto build it.
为了修改音频由48khz为32khz
如下:
apt install cmake
下载devkitPPC并解压
wget https://sourceforge.net/projects/devkitp...2/download

安装libogc到devkitPPC
git clone https://github.com/mgba-emu/libogc
export DEVKITPRO=/home/toor/devkitPPC
make
make install

安装libfat,注意要修改其中的nds、等,删除它们
git clone https://github.com/devkitPro/libfat.git
export DEVKITPRO=/home/toor/devkitPPC
make
cp libogc/lib/wii/libfat.a /home/toor/devkitPPC/libogc/lib/wii/ -av

编译mgba,如果缺少头文件,那么从上面的libogc复制到devkit中
git clone https://github.com/mgba-emu/mgba.git
cd mgba
mkdir wii && cd wii
#然后修改源码后
export DEVKITPPC=/home/toor/devkitPPC
export DEVKITPRO=/home/toor/devkitPPC
cmake .. -DCMAKE_TOOLCHAIN_FILE=/root/mgba/src/platform/wii/CMakeToolchain.txt -G "Unix Makefiles"
make
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2024 Melroy van den Berg.