Need help compiling Luma3DS

Discussion in '3DS - Flashcards & Custom Firmwares' started by player0, Nov 13, 2016.

  1. player0
    OP

    player0 GBAtemp Regular

    Member
    194
    10
    Sep 2, 2006
    Was trying to make some changes, so pulled code from git, wanted to compile but failed. Here were the steps taken:
    1. Ran devkitProUpdater-1.6.0.exe
    2. Ticked devkitARM
    3. Installed devkitProUpdater (comes with libctru 1.1.0)
    4. Put armips.exe and makerom.exe under devkitPro\msys\bin
    5. Ran MSys
    6. export PATH=$PATH:/e/Dev/devkitPro/devkitARM/bin:/e/Dev/devkitPro/devkitARM/arm-none-eabi/bin:/e/Dev/devkitPro/devkitARM/libexec/gcc/arm-none-eabi/5.3.0/:/e/Dev/devkitPro/devkitARM/libexec/gcc/arm-none-eabi/5.3.0/install-tools
    7. git clone --recursive https://github.com/AuroraWright/Luma3DS.git
    8. cd Luma3DS
    9. make
    error:
    $ make
    ARMIPS Assembler v0.8.0 (Jan 25 2016 00:21:31) by Kingcom
    Done.
    ARMIPS Assembler v0.8.0 (Jan 25 2016 00:21:31) by Kingcom
    Done.
    ARMIPS Assembler v0.8.0 (Jan 25 2016 00:21:31) by Kingcom
    Done.
    ARMIPS Assembler v0.8.0 (Jan 25 2016 00:21:31) by Kingcom
    Done.
    make[1]: Entering directory `/e/Dev/Luma3DS/injector'
    arm-none-eabi-gcc -Xlinker --defsym="__start__=0x14000000" -specs=3dsx.specs -mcpu=mpcore -mfloat-abi=hard -mtp=soft -o build/injector.elf -L/E/Dev/devkitPro/libctru/lib -lctru
    e:/dev/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: cannot open output file build/injector.elf: No such file or directory
    collect2.exe: error: ld returned 1 exit status
    make[1]: *** [build/injector.elf] Error 1
    make[1]: Leaving directory `/e/Dev/Luma3DS/injector'
    make: *** [build/injector.bin] Error 2

    if run directly the line
    $ arm-none-eabi-gcc -Xlinker --defsym="__start__=0x14000000" -specs=3dsx.specs -mcpu=mpcore -mfloat-abi=hard -mtp=soft -o build/injector.elf -L/E/Dev/devkitPro/libctru/lib -lctru
    e:/dev/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/lib/armv6k/fpu/3dsx_crt0.o: In function `ClrLoop':
    (.crt0+0x8c): undefined reference to `main'
    collect2.exe: error: ld returned 1 exit status

    Any help? Thanks in advance!
     
  2. Lilith Valentine

    Lilith Valentine GBATemp's Wolfdog™ Spooky cute.

    Member
    20,081
    21,215
    Sep 13, 2009
    Antarctica
    Between insane and insecure
  3. Ev1lbl0w

    Ev1lbl0w GBAtemp Regular

    Member
    237
    55
    Dec 19, 2014
    He says he's trying to change the code, so he needs to be able to compile it. I can't help you in that @player0
     
  4. Lilith Valentine

    Lilith Valentine GBATemp's Wolfdog™ Spooky cute.

    Member
    20,081
    21,215
    Sep 13, 2009
    Antarctica
    Between insane and insecure
    Did try asking on the official thread?
     
  5. player0
    OP

    player0 GBAtemp Regular

    Member
    194
    10
    Sep 2, 2006
    bump
     
  6. brushguy

    brushguy Member

    Newcomer
    21
    5
    Dec 26, 2014
    Germany
    Well, i am no programmer myself but there are two things you may want to check...

    First, it seems you have to specify a path just for /devkitpro - so it can find e/Dev/devkitPro/libctru/*.
    You will see at the end of the line right under make[1]. (Not sure about this.)

    Then you really should update ctrulib / libctru, the latest changes have been made on 10.11.2016.
    Edit:
    git clone --recursive https://github.com/smealum/ctrulib.git
    make -s install

    Good luck.
     
    Last edited by brushguy, Nov 15, 2016