how to build mgba standlaone for wii ? - Printable Version +- mGBA Forums (https://forums.mgba.io) +-- Forum: mGBA (https://forums.mgba.io/forumdisplay.php?fid=1) +--- Forum: General (https://forums.mgba.io/forumdisplay.php?fid=3) +--- Thread: how to build mgba standlaone for wii ? (/showthread.php?tid=399) |
how to build mgba standlaone for wii ? - yoyoliyang - 04-08-2016 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! RE: how to build mgba standlaone for wii ? - yoyoliyang - 04-08-2016 now I know howto build it. 为了修改音频由48khz为32khz 如下: apt install cmake 下载devkitPPC并解压 wget https://sourceforge.net/projects/devkitpro/files/devkitPPC/devkitPPC_r27-i686-linux.tar.bz2/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 |