rxTools Source Code - Compilation Error

Discussion in '3DS - Flashcards & Custom Firmwares' started by whitefire, Jul 5, 2015.

  1. whitefire
    OP

    whitefire Member

    Newcomer
    13
    0
    Jul 4, 2015
    Romania
    Hello,

    I got the rxtools CFW from github and I wanted to compile it myself. I've installed everything mentioned in the readme file. However, something weird it happens when I compile and it makes it to stop and I can't figure out how to solve it. Here is the error:

    Code:
    make[1]: Entering directory `/d/ThingsToBeCopied/rxTools-master/rxtools'
    linking rxtools.elf
    built ... rxtools.bin
    make[1]: Leaving directory `/d/ThingsToBeCopied/rxTools-master/rxtools'
    0+1 records in
    1+0 records out
    917504 bytes (918 kB) copied, 0.003 seconds, 306 MB/s
    Base : 67893421
    Seed : 12756342
    make[1]: Entering directory `/d/ThingsToBeCopied/rxTools-master/rxmode'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/d/ThingsToBeCopied/rxTools-master/rxmode'
    make[1]: Entering directory `/d/ThingsToBeCopied/rxTools-master/rxmode'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/d/ThingsToBeCopied/rxTools-master/rxmode'
    make[1]: Entering directory `/d/ThingsToBeCopied/rxTools-master/rxmode'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/d/ThingsToBeCopied/rxTools-master/rxmode'
    make -C msethax/ all
    make[1]: Entering directory `/d/ThingsToBeCopied/rxTools-master/msethax'
    make[2]: Entering directory `/d/ThingsToBeCopied/rxTools-master/msethax/rxinstaller'
    grit /d/ThingsToBeCopied/rxTools-master/msethax/rxinstaller/gfx/drunkenlogo.png -fts -odrunkenlogo
    drunkenlogo.s
    arm-none-eabi-gcc -MMD -MP -MF /d/ThingsToBeCopied/rxTools-master/msethax/rxinstaller/build/drunkenlogo.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -c drunk
    enlogo.s -o drunkenlogo.o
    main.cpp
    arm-none-eabi-g++ -MMD -MP -MF /d/ThingsToBeCopied/rxTools-master/msethax/rxinstaller/build/main.d -Wno-multichar -g -Wall -O3 -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -iquote /d/T
    hingsToBeCopied/rxTools-master/msethax/rxinstaller/source -I/c/devkitPro/libnds/include -I/c/devkitPro/portlibs/arm/include -I/d/ThingsToBeCopied/rxTools-master/msethax/rxinstaller/build -DARM9 -
    fno-rtti -fno-exceptions -c /d/ThingsToBeCopied/rxTools-master/msethax/rxinstaller/source/main.cpp -o main.o
    d:/ThingsToBeCopied/rxTools-master/msethax/rxinstaller/source/main.cpp: In function 'int main(int, char**)':
    d:/ThingsToBeCopied/rxTools-master/msethax/rxinstaller/source/main.cpp:117:30: error: 'readFirmware' was not declared in this scope
      readFirmware(0,workbuffer,42);
                                  ^
    d:/ThingsToBeCopied/rxTools-master/msethax/rxinstaller/source/main.cpp:131:59: error: 'writeFirmware' was not declared in this scope
      int ret = writeFirmware(userSettingsOffset,workbuffer,512);
                                                               ^
    make[3]: *** [main.o] Error 1
    make[2]: *** [build] Error 2
    make[2]: Leaving directory `/d/ThingsToBeCopied/rxTools-master/msethax/rxinstaller'
    make[1]: *** [rxinstaller.nds] Error 2
    make[1]: Leaving directory `/d/ThingsToBeCopied/rxTools-master/msethax'
    make: *** [msethax/mset.bin] Error 2
    
    Any help will be appreciated. Thanks in advance.

    Whitefire.
     
  2. zoogie

    zoogie simple pimp tool

    Member
    6,514
    8,388
    Nov 30, 2014
    United States
    Do you have devkitpro installed?
     
  3. whitefire
    OP

    whitefire Member

    Newcomer
    13
    0
    Jul 4, 2015
    Romania
    Hello zoogie,

    I've installed everything: Devkitpro (DevkitARM), armips in msys folder, GCC and python 2.7 I'm on windows7 of course.

    Those two errors make me crazy (readFirmware() and WriteFirmware). I opened the main.cpp in msethax folder and I comment every "readFirmware() & writeFirmware()" function in the code, I exeuted make again and booom!!! I got the rxtools.dat but dirty one. It won't work.

    I need your help guys.

    Regards,
     
  4. whitefire
    OP

    whitefire Member

    Newcomer
    13
    0
    Jul 4, 2015
    Romania
    Hello,

    I got it to work I had a problem with my devkitARM installation. However, I wonder why I can't modify rxTools source code since it's source code made public. I mean I want to change the main menu (Launch rxMode -> Launch Emunand) but when I compile the project I got always the original rxTools even if the change is made. Is the main menu protect in some sort ?

    Appreciate any explanation.

    Thanks.
     
  5. Syphurith

    Syphurith Beginner

    Member
    641
    222
    Mar 8, 2013
    Switzerland
    Xi'an, Shaanxi Province
    Oh no. However you would have to clean the rxTools folder, as
    cd rxTools; make clean; make; cd ..; make
    then it should be updated.
    Well don't forget to copy your new rxtools.dat or whatever.