Ok, I successfully builded the .3ds, .elf and .cia files on Windows. please follow as below:
1) Download the
mskt repo sm64-port (the original sm64_3ds repo it's full LINUX based and on Windows will be more complicated to tell you).
2) from MingW64, install the following libs, copy this code:
Code:
pacman -S 3ds-dev git make python3 mingw-w64-x86_64-gcc unzip --noconfirm
3) after copy this and press ok:
Code:
wget https://github.com/3DSGuy/Project_CTR/releases/download/makerom-v0.17/makerom-v0.17-win_x86_64.zip
4) after copy this and press ok:
Code:
unzip -d /opt/devkitpro/tools/bin/ makerom-v0.17-win_x86_64.zip
5) after to be sure with your enviroment settings, copy this and press ok:
Code:
export PATH="$PATH:/opt/devkitpro/tools/bin" && echo "OK!"
export DEVKITPRO=/opt/devkitpro && echo "OK!"
export DEVKITARM=/opt/devkitpro/devkitARM && echo "OK!"
export DEVKITPPC=/opt/devkitpro/devkitPPC && echo "OK!"
6) after copy this and press ok:
Code:
cp /c/temp/baserom.us.z64 ./ && echo "OK!"
7) not sure about but make any way, you have to create an empty "temp" folder into C: (C:\temp) and place the
baserom.us.z64 into it.
8) Lastly, start to build to write "make" into Mingw64; and the builder will work like a charm.....
Let me know.....
I found all the solutions for Windows with 3DS project, even to build with the Official 3DS repo and MSYS missing libs if you are interested......
After all the previous libs Enviroment installations, you have to make extra work here. Make like that:
1) Open Mingw64 and download the
Official 3DS Repo like that:
Code:
git clone https://github.com/sm64-port/sm64_3ds.git
2) After that always in Mingw64, copy this and press enter:
3) Now we start to install the special libs audio missing to build Mingw64/ MSYS, into the sm64_3ds repo folder. So cpy this and press enter:
4) After we have to download the audiofile libs into it, copy this and press enter:
Code:
git clone https://github.com/mpruett/audiofile.git
5) After copy this and press enter:
6) After copy this and press enter:
7) Once done the previos code. After copy this and press enter:
Code:
PATH=/mingw64/bin:/mingw32/bin:$PATH LIBS=-lstdc++ ./configure --disable-docs
8) Once done the previos code. After copy this and press enter:
Code:
PATH=/mingw64/bin:/mingw32/bin:$PATH make
9) Once done the previos code. After copy this and press enter:
10) Once done the previos code. Now this will create the lib empty folder into the "tools" folder . So after copy this and press enter:
11) Once done the previos code. Now this will copy/ create the lib files into the "lib" folder under "tools" directory . So after copy this and press enter:
Code:
cp libaudiofile/.libs/libaudiofile.a ../lib/ && cp libaudiofile/.libs/libaudiofile.la ../lib/
12) Once done the previos code. After copy this and press enter:
Code:
PATH=/mingw64/bin:/mingw32/bin:$PATH make
13) Once done. Close Mingw64, and copy and paste your
baserom.us.z64 file into the
sm64_3ds folder.
14) Now re-open Mingw64 and copy this and press enter:
15) Now you can build, copy this and press enter:
16) Once finished to build, if comeout that the .elf file it's builded successfully , but the .3dsx file will
NOT build and gives you this error as below:
Code:
make: 3dsxtool: No such file or directory
make: *** [Makefile:847: build/us_3ds/sm64.us.f3dex2e.3dsx] Error 127
Have means that with this custom lib installation we have to give back the sourching PATH.
17) So to solve this, don't close the MIngw64 and keep it into the sm64_3ds directory; copy this and press enter:
Code:
export PATH="$PATH:/opt/devkitpro/tools/bin" && echo "OK!"
18) And than you can build even the .3dsx file, copy this and press enter:
Check your build folder and you will have all the files there......