Hacking Can't Compile Luma 3DS

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
So I'm trying to compile Luma..... for a..... secret project ( ͡° ͜ʖ ͡°)
I've installed all of the dependacies like armips and firmtool. I've also placed armips.exe and makerom.exe in System32 so I can globally execute them from CMD.

Running MAKE from CMD gets me this:

C:\Users\User\Desktop\Luma3DS-7.1\Luma3DS-7.1\ng\Luma3DS>make
make[1]: Entering directory `/c/Users/User/Desktop/Luma3DS-7.1/Luma3DS-7.1/ng/Luma3DS/sysmodules/loader'
make[1]: armips: Command not found
make[1]: *** [build/romfsredir.bin] Error 127
make[1]: Leaving directory `/c/Users/User/Desktop/Luma3DS-7.1/Luma3DS-7.1/ng/Luma3DS/sysmodules/loader'
make: *** [build/loader.cxi] Error 2



And running MAKE from Git Bash gets me this:


User@DESKTOP-U70CG97 MINGW64 ~/Desktop/Luma3DS-7.1/Luma3DS-7.1/ng/Luma3DS (master)
$ make
0 [main] make 12556 open_stackdumpfile: Dumping stack trace to make.exe.stackdump
make: *** [build/loader.cxi] Error 5

User@DESKTOP-U70CG97 MINGW64 ~/Desktop/Luma3DS-7.1/Luma3DS-7.1/ng/Luma3DS (master)
$

Any help/memes is/are greatly appreciated :)
 

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
14,998
Country
Micronesia, Federated States of
put armips.exe in the same dir as makefile, then open command prompt in that same dir and run make
 

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
put armips.exe in the same dir as makefile, then open command prompt in that same dir and run make
Just tried, no dice. It seems to be looking for armips.exe in some other directory because I keep getting make[1]: armips: Command not found. I put it in both the directory with makefile and System32.
 

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
14,998
Country
Micronesia, Federated States of
Just tried, no dice. It seems to be looking for armips.exe in some other directory because I keep getting make[1]: armips: Command not found. I put it in both the directory with makefile and System32.
Try following this
http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path

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

You can also add it to an already existing PATH location like C:\devkitPro\devkitARM\bin or whatever. I havent' tried this myself but it should work.
 

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
Try following this
http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path

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

You can also add it to an already existing PATH location like C:\devkitPro\devkitARM\bin or whatever. I havent' tried this myself but it should work.
I put both armips.exe and makerom.exe in the folder you specified, but now I get the following:

C:\Users\User\Desktop\Luma3DS-7.1\Luma3DS-7.1\ng\Luma3DS>make
make[1]: Entering directory `/c/Users/User/Desktop/Luma3DS-7.1/Luma3DS-7.1/ng/Luma3DS/sysmodules/loader'
make[1]: Leaving directory `/c/Users/User/Desktop/Luma3DS-7.1/Luma3DS-7.1/ng/Luma3DS/sysmodules/loader'
make[1]: Entering directory `/c/Users/User/Desktop/Luma3DS-7.1/Luma3DS-7.1/ng/Luma3DS/sysmodules/rosalina'
arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -g -mcpu=mpcore -mfloat-abi=hard -mtp=soft -fno-builtin -std=c11 -O2 -flto -ffast-math -mword-relocations -fomit-frame-pointer -ffunction-sections -fdata-sections -I/c/devkitPro/libctru/include -Iinclude -DARM11 -D_3DS -c -o build/3dsx.o source/3dsx.c
source/3dsx.c: In function 'Ldr_CodesetFrom3dsx':
source/3dsx.c:247:26: error: 'RUNFLAG_APTCHAINLOAD' undeclared (first use in this function)
pst->runFlags |= RUNFLAG_APTCHAINLOAD;
^~~~~~~~~~~~~~~~~~~~
source/3dsx.c:247:26: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [build/3dsx.o] Error 1
make[1]: Leaving directory `/c/Users/User/Desktop/Luma3DS-7.1/Luma3DS-7.1/ng/Luma3DS/sysmodules/rosalina'
make: *** [build/rosalina.cxi] Error 2
 

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
I put both armips.exe and makerom.exe in the folder you specified, but now I get the following:
Ok, after doing this it seemed to encounter a problem with Rosalina. I was able to compile Luma 7.1 just fine after doing this..... weird.
 

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
Oh man I had to wipe my pc so I had to setup my 3ds environment again and followed this old guide for aureinand ;)
https://gbatemp.net/threads/tutorial-how-to-sync-compile-aureinand.420787/
Great guide
It compiles almost anything 3ds wise
Oh man I had to wipe my pc so I had to setup my 3ds environment again and followed this old guide for aureinand ;)
https://gbatemp.net/threads/tutorial-how-to-sync-compile-aureinand.420787/
Great guide
It compiles almost anything 3ds wise
Unfortunately everything the guide told me to update/install I already had. I can compile Luma 7.1 just fine. I get the following error with Luma 8.0 and Luma 8.1:

C:\Users\User\Desktop\Luma3DS>make
make[1]: Entering directory `/c/Users/User/Desktop/Luma3DS/sysmodules/loader'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/Users/User/Desktop/Luma3DS/sysmodules/loader'
make[1]: Entering directory `/c/Users/User/Desktop/Luma3DS/sysmodules/rosalina'
arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -g -mcpu=mpcore -mfloat-abi=hard -mtp=soft -fno-builtin -std=c11 -O2 -flto -ffast-math -mword-relocations -fomit-frame-pointer -ffunction-sections -fdata-sections -I/c/devkitPro/libctru/include -Iinclude -DARM11 -D_3DS -c -o build/3dsx.o source/3dsx.c
source/3dsx.c: In function 'Ldr_CodesetFrom3dsx':
source/3dsx.c:247:26: error: 'RUNFLAG_APTCHAINLOAD' undeclared (first use in this function)
pst->runFlags |= RUNFLAG_APTCHAINLOAD;
^~~~~~~~~~~~~~~~~~~~
source/3dsx.c:247:26: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [build/3dsx.o] Error 1
make[1]: Leaving directory `/c/Users/User/Desktop/Luma3DS/sysmodules/rosalina'
make: *** [build/rosalina.cxi] Error 2
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    LeoTCK @ LeoTCK: yes for nearly a month i was officially a wanted fugitive, until yesterday when it ended