- 58
- Posts
- 9
- Years
- Seen Jan 7, 2017
I've found a pack of code on Jambo's GitHub: https://github.com/Jambo51/OakTutorial
I use windows 8.1 as my operating system, but i just can't compile this code.
I have installed make, and copied the 3 files from the bin directory as is shown in the "mega evolution code compilation tutorial".
Then I create a new folder naming "build" in the folder.
Then I rename the ROM to test.gba and then put it in the folder with the codes.
Then I double-click the configure.py to get the "makefile" and it seems successful.
Then I open the terminal in the directory and write "make" but there's an error saying that the system can't find the specific file.
The words shown in it is:
The makefile generated by the python script is:
Could anyone solve this problem?
I use windows 8.1 as my operating system, but i just can't compile this code.
I have installed make, and copied the 3 files from the bin directory as is shown in the "mega evolution code compilation tutorial".
Then I create a new folder naming "build" in the folder.
Then I rename the ROM to test.gba and then put it in the folder with the codes.
Then I double-click the configure.py to get the "makefile" and it seems successful.
Then I open the terminal in the directory and write "make" but there's an error saying that the system can't find the specific file.
The words shown in it is:
Code:
arm-linux-gnueabi-as -c bootstrap.s -o bootsrtrap.o
process_begin: CreateProcess([COLOR="Red"]NULL[/COLOR], arm-linux-gnueabi-as -c bootstrap.s -o bootsrtrap.o, ...) failed.
The makefile generated by the python script is:
Code:
CC=arm-linux-gnueabi-gcc-4.7
CXX=arm-linux-gnueabi-gcc-4.7
AS=arm-linux-gnueabi-as
LD=arm-linux-gnueabi-ld
OBJCOPY=arm-linux-gnueabi-objcopy
OBJDUMP=arm-linux-gnueabi-objcopy
XXD=xxd
IMG=todo
COMPRESS=toolchain/gbalzss
PADBIN=toolchain/padbin
OPTS=-fauto-inc-dec -fcompare-elim -fcprop-registers -fdce -fdefer-pop -fdse -fguess-branch-probability -fif-conversion2 -fif-conversion -fipa-pure-const -fipa-profile -fipa-reference -fmerge-constants -fsplit-wide-types -ftree-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -ftree-phiprop -ftree-sra -ftree-pta -ftree-ter -funit-at-a-time -fomit-frame-pointer -fthread-jumps -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-checks -fdevirtualize -fexpensive-optimizations -fgcse -fgcse-lm -finline-small-functions -findirect-inlining -fipa-sra -foptimize-sibling-calls -fpartial-inlining -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns -fschedule-insns2 -fstrict-aliasing -fstrict-overflow -ftree-switch-conversion -ftree-tail-merge -ftree-pre -ftree-vrp -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-slp-vectorize -fvect-cost-model -fipa-cp-clone -ffast-math -fforward-propagate -finline-functions-called-once -fmerge-all-constants -fmodulo-sched -fmodulo-sched-allow-regmoves -fgcse-sm -fgcse-las -funsafe-loop-optimizations -fconserve-stack
DEFINES=-DBPRE -DSOFTWARE_VERSION=0
CFLAGS=-mthumb -mthumb-interwork -mcpu=arm7tdmi $(OPTS) -mlong-calls -march=armv4t -Wall -O3 $(DEFINES)
CXXFLAGS=-mthumb -mthumb-interwork -mcpu=arm7tdmi $(OPTS) -mlong-calls -march=armv4t -Wall -O3 $(DEFINES)
ASFLAGS=-mthumb
LDFLAGS=
all: bootstrap.o strings.h main.o
$(LD) $(LDFLAGS) -o a.o -T linker.lsc -T BPRE.sym bootstrap.o main.o
$(OBJCOPY) -O binary a.o a.bin
main.o: main.c
$(CC) $(CFLAGS) -c main.c
bootstrap.o: bootstrap.s
$(AS) $(AFLAGS) -c bootstrap.s -o bootstrap.o
strings.h: strings.csv
python3 poke2c.py strings.csv
clean:
rm -rf bootstrap.o strings.h main.o a.o a.bin
insert:
dd conv=notrunc of=test.gba if=a.bin bs=1 seek=8388608
Could anyone solve this problem?