ROM Hack I need help configuring NTR's plugin creation setup.

  • Thread starter Thread starter Agent Moose
  • Start date Start date
  • Views Views 914
  • Replies Replies 0

Agent Moose

Well-Known Member
Member
Joined
Dec 6, 2014
Messages
407
Reaction score
124
Trophies
0
Age
35
XP
582
Country
United States
So I've been wanting to take advantage of NTR's plugin feature, so I am trying to setup the compile proccess for creation of the plugins but all I ever get is errors once I try (I'm on OSX):
Whale:~ AgentMoose$ cd /Users/AgentMoose/Desktop/ntr_helloworld-master
Whale:ntr_helloworld-master AgentMoose$ python build.py
rm: obj/*.o: No such file or directory
rm: bin/*.elf: No such file or directory
sh: arm-none-eabi-gcc: command not found
sh: arm-none-eabi-gcc: command not found
sh: arm-none-eabi-ld: command not found
cp: *.o: No such file or directory
cp: a.out: No such file or directory
sh: arm-none-eabi-objcopy: command not found
rm: *.o: No such file or directory
rm: *.out: No such file or directory
sh: copy: command not found
Whale:ntr_helloworld-master AgentMoose$

This is the build.py file:
#!/usr/bin/python
import sys
import os
import ftplib
import glob

# the path plugin was copied to
COPYTOPATH = '/Users/AgentMoose/Desktop/hello.plg'

CC = "arm-none-eabi-gcc"
CP = "arm-none-eabi-g++"
OC = "arm-none-eabi-objcopy"
LD = "arm-none-eabi-ld"
CTRULIB = '../libctru'
DEVKITARM = '/Users/AgentMoose/devkitPro/devkitARM'
LIBPATH = '-L ' + DEVKITARM + '/lib/gcc/arm-none-eabi/4.8.2' + ' -L ' + DEVKITARM + '/arm-none-eabi/lib'

def allFile(pattern):
s = "";
for file in glob.glob(pattern):
s += file + " ";
return s;

def run(cmd):
os.system(cmd)

cwd = os.getcwd()
run("rm obj/*.o")
run("rm bin/*.elf")
run(CC+ " -Os -s -g -I include -I include/libntrplg " + allFile('source/libntrplg/*.c') + allFile('source/ns/*.c') + allFile('source/*.c') + allFile('source/libctru/*.c') + " -c -march=armv6 -mlittle-endian ");
run(CC+" -Os " + allFile('source/libntrplg/*.s') + allFile('source/ns/*.s') + allFile('source/*.s') + allFile('source/libctru/*.s') + " -c -s -march=armv6 -mlittle-endian ");

run(LD + ' ' + LIBPATH + " -pie --print-gc-sections -T 3ds.ld -Map=homebrew.map " + allFile("*.o") + " -lc -lgcc --nostdlib" )
run("cp -r *.o obj/ ")
run("cp a.out bin/homebrew.elf ")
run(OC+" -O binary a.out payload.bin -S")
run("rm *.o")
run("rm *.out")
run('copy payload.bin ' + COPYTOPATH);


Any clue why I am getting those errors. I'm pretty sure I have everything in the right spot, and I know it's all up to date.
 

Site & Scene News

Popular threads in this forum