Hacking Noob-Proof guide to compile RxTools source.

  • Thread starter Thread starter capito27
  • Start date Start date
  • Views Views 23,802
  • Replies Replies 132
  • Likes Likes 18
Can i suggest anyone with MINGW problems to use MSYS2?
After installed MSYS2, open its console (ie, D:\Msys2\Msys_??.bat)
and give it "pacman -Syu --noconfirm" then "pacman -S base-devel --noconfirm"
be sure GCC and Make is chosen, or simply ENTER if do not care about it.
then you could "gcc -V" to take a look at its version.
Then add it to your path, as what you did with original MINGW.
 
Last edited by Syphurith,
Can i suggest anyone with MINGW problems to use MSYS2?
After installed MSYS2, open its console (ie, D:\Msys2\Msys_??.bat) and give it "pacman -Syu base-devel"
be sure GCC and Make is chosen, or simply ENTER if do not care about it.
then you could "gcc -V" to take a look at its version.
Then add it to your path, as what you did with original MINGW.

i use Msys/Mingw for my "regular" C/C++ programming on windows, what's the difference ?
 
i use Msys/Mingw for my "regular" C/C++ programming on windows, what's the difference ?
1. Mingw32 for x86, Mingw64 or x64. Both supports.
2. Actively maintained, so you would see it updates frequently if use "pacman -Syu" regularly.
And "mintty" instead of "cmd" cause it is much easier.
Oh, i may wrote a wrong command. Let me edit it out.
 
I just compiled it I think successfully, it might be worth mentioning in the OP that after following steps you need to reboot for the noobs, like myself :P Also I get this error

make[1]: Entering directory `/c/Users/Kirsty/Downloads/Compressed/rxTools-master
/CakeHax'
make[1]: *** No rule to make target `bigpayload'. Stop.
make[1]: Leaving directory `/c/Users/Kirsty/Downloads/Compressed/rxTools-master/
CakeHax'
make: *** [rxTools.dat] Error 2

[EDIT] Also rxtools.bin is just 896KB, isn't it supposed to be 4MB?
 
Last edited by coolfuze,
I just compiled it I think successfully, it might be worth mentioning in the OP that after following steps you need to reboot for the noobs, like myself :P Also I get this error

make[1]: Entering directory `/c/Users/Kirsty/Downloads/Compressed/rxTools-master
/CakeHax'
make[1]: *** No rule to make target `bigpayload'. Stop.
make[1]: Leaving directory `/c/Users/Kirsty/Downloads/Compressed/rxTools-master/
CakeHax'
make: *** [rxTools.dat] Error 2

[EDIT] Also rxtools.bin is just 896KB, isn't it supposed to be 4MB?

It's because you didn't clone the git.
You just downloaded rxtools-master branch manually.
if you want to do it manually you have to enter in CakeHax folder on git and download the sources and the same thing to p3DS folder inside cakeHax folder.
 
It's because you didn't clone the git.
You just downloaded rxtools-master branch manually.
if you want to do it manually you have to enter in CakeHax folder on git and download the sources and the same thing to p3DS folder inside cakeHax folder.
Thanks, this is becoming less and less noob friendly :P Wish this could be ammended in the first post. Hint hint, @capito27 ;)
 
Did someone compiled armips on msys/mingw32 i tried all the day and still have the issues with to_wstring is not a member of std.

I know i need c++0x (or 11) the cmakelist is configured with -std=c++11 but i can't compile it myself.
 
Thanks, this is becoming less and less noob friendly :P Wish this could be ammended in the first post. Hint hint, @capito27 ;)

just install https://git-scm.com/download/win
choice git for cmd command when install
then : git clone --recursive https://github.com/roxas75/rxTools.git

and make ....

--------------------- MERGED ---------------------------

https://github.com/roxas75/rxTools/blob/master/README.md

How to build

Requirements for Windows:

Requirements for GNU/Linux:

Just run make and rxTools.dat should be generated in the release folder, along with all the other packets. If you get the make: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3) error on Windows, look at your PATH and move any path with parenthesis to the end of it
 
I would like if someone could please help me, I followed the tutorial steps to a "T" and I used to have this setup on my computer but I reformatted awhile back and sadly last it. I am pretty sure everything is setup correctly. Here is the error i'm getting:
C:\Users\Tutorials\Desktop\Tutorials\rxTools-master\rxTools-master>make
make[1]: Entering directory `/c/Users/Tutorials/Desktop/Tutorials/rxTools-master
/rxTools-master/rxtools'
make[2]: stat: c:/Users/laramie/Downloads/rxTools-master/rxTools-master/rxtools/
source/features/CTRDecryptor.c: Permission denied
make[2]: *** No rule to make target `c:/Users/laramie/Downloads/rxTools-master/r
xTools-master/rxtools/source/features/CTRDecryptor.c', needed by `CTRDecryptor.o
'. Stop.
make[1]: *** [build] Error 2
make[1]: Leaving directory `/c/Users/Tutorials/Desktop/Tutorials/rxTools-master/
rxTools-master/rxtools'
make: *** [rxtools/rxtools.bin] Error 2

C:\Users\Tutorials\Desktop\Tutorials\rxTools-master\rxTools-master>

Also, I have ran the command prompt as admin.

EDIT: Fixed I simply had my path in the wrong order... Rookie mistake..
 
Last edited by laramie, , Reason: Fixed
The makefiles are still jacked up. Using the git clone helped out a lot, but I was getting stuck while it was dealing with the rxmode stuff. It was trying to execute cfwtool.exe from ../../tools but it wasn't there or built yet. I went into each of the folders in the /tools/toolsrc folder and made each one individually (which created the .exe files and moved them to tools/toolsrc... why? Why not directly move them to /tools if that's where they will be executed from?

But... there is no makefile or build.bat in the tools/toolsrc/xor folder. I just copied the build.bat from the cfwtool folder and edited the name in the file.

This thread has been a big help, but noob proof my a$$! I have now completed a build of the latest .git. Although there are a ton of warnings during the whole process...

Edit: Actually just now I was in an rxTools 2.6 folder. After that worked, I did the same thing in the latest .git (manually got the stuff in toolsrc built and move the .exe files to tools) and It appears to have built with far less warnings (if any... went by too fast to see). (typing make, read below for: make release)

Edit2: I first grabbed the mingw binaries for ImageMagick and put it in my mingw folder and added the /bin directory to my path. Then had 2 .dll files I had to download: libbz2-2.dll and libbz-1.dll. Then there was another error, so I went back to the ImageMagick page and scrolled down and felt stupid. There are windows binaries. Grabbed the top one and installed it (Win64 dynamic at 16 bits-per-pixel), then closed and reopened my command prompt. Now "make release" completes just fine.

Did someone compiled armips on msys/mingw32 i tried all the day and still have the issues with to_wstring is not a member of std.

I know i need c++0x (or 11) the cmakelist is configured with -std=c++11 but i can't compile it myself.
You don't. Even the rxtools readme clearly states that you build it with visual studio (free, and doesn't interfere with mingw or anything that I can tell). But you don't need to build it. The OP has a link to an older version that's already built and works fine.
 
Last edited by urherenow,
I installed git, did git clone --recursive https://github.com/roxas75/rxTools.git, copied the resulting rxtools folder from C: to G: (kept the original folder in C: as a copy)
Then from G:\rxtools I did "Make" and got up to here:
...
reboot.bin
titlekey.bin
nat_patch.bin
agb_patch.bin
twl_patch.bin
make[1]: Entering directory `/g/rxTools/CakeHax'
arm-none-eabi-as -mcpu=mpcore -mlittle-endian -o build/mset_4x/arm11_tools.o so
urce/arm11_tools.s
make[1]: arm-none-eabi-as: Command not found
make[1]: *** [build/mset_4x/arm11_tools.o] Error 127
make[1]: Leaving directory `/g/rxTools/CakeHax'
make: *** [rxTools.dat] Error 2

My Path includes C:\Program Files\ImageMagick;c:\devkitPro\msys\bin;c:\MinGW\bin;.... ;C:\Program Files (x86)\Git\cmd

What is the problem?

I've included the whole output text for reference.
 

Attachments

I installed git, did git clone --recursive https://github.com/roxas75/rxTools.git, copied the resulting rxtools folder from C: to G: (kept the original folder in C: as a copy)
Then from G:\rxtools I did "Make" and got up to here:
...
reboot.bin
titlekey.bin
nat_patch.bin
agb_patch.bin
twl_patch.bin
make[1]: Entering directory `/g/rxTools/CakeHax'
arm-none-eabi-as -mcpu=mpcore -mlittle-endian -o build/mset_4x/arm11_tools.o so
urce/arm11_tools.s
make[1]: arm-none-eabi-as: Command not found
make[1]: *** [build/mset_4x/arm11_tools.o] Error 127
make[1]: Leaving directory `/g/rxTools/CakeHax'
make: *** [rxTools.dat] Error 2

My Path includes C:\Program Files\ImageMagick;c:\devkitPro\msys\bin;c:\MinGW\bin;.... ;C:\Program Files (x86)\Git\cmd

What is the problem?

I've included the whole output text for reference.
Look in rxTools/tools. How many .exe files are there? There should be the same number as there are folders in rxTools/tools/toolsrc. If not, build all of them seperately and move the .exe files to rxTools/tools.
 
Last edited by urherenow,
I installed git, did git clone --recursive https://github.com/roxas75/rxTools.git, copied the resulting rxtools folder from C: to G: (kept the original folder in C: as a copy)
Then from G:\rxtools I did "Make" and got up to here:
...
reboot.bin
titlekey.bin
nat_patch.bin
agb_patch.bin
twl_patch.bin
make[1]: Entering directory `/g/rxTools/CakeHax'
arm-none-eabi-as -mcpu=mpcore -mlittle-endian -o build/mset_4x/arm11_tools.o so
urce/arm11_tools.s
make[1]: arm-none-eabi-as: Command not found
make[1]: *** [build/mset_4x/arm11_tools.o] Error 127
make[1]: Leaving directory `/g/rxTools/CakeHax'
make: *** [rxTools.dat] Error 2

My Path includes C:\Program Files\ImageMagick;c:\devkitPro\msys\bin;c:\MinGW\bin;.... ;C:\Program Files (x86)\Git\cmd

What is the problem?

I've included the whole output text for reference.
Swap it should be c:\MinGW\bin;.... ;c:\devkitPro\msys\bin;:\Program Files\ImageMagick;C:\Program Files (x86)\Git\cmd. Mostly likely not the exact order since i don't have your exact path here... But MinGw should be first, then all the dedvkitpro stuff and then the imagemagick stuff.
 

Site & Scene News

Popular threads in this forum