PikalaxALT / firered-speedchoice

Pokemon FireRed speedchoice
8 stars 3 forks source link

Build Error #2

Closed matthewkirby closed 3 years ago

matthewkirby commented 3 years ago

I was trying to build this and ran into an error

$ make -j12
inigen.c:4:10: fatal error: capstone/capstone.h: No such file or directory
    4 | #include <capstone/capstone.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:28: inigen] Error 1
make: *** [Makefile:163: tools/inigen] Error 2
gcc -g -Og -Wall -iquote ../../include inigen.c elf.c util.c -o inigen -lcapstone
gcc -g -Og -Wall -iquote ../../include inigen.c elf.c util.c -o inigen -lcapstone
gcc -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O3 -flto -DPNG_SKIP_SETJMP_CHECK main.c convert_png.c gfx.c jasc_pal.c lz.c rl.c util.c font.c huff.c -o gbagfx  -lpng -lz
inigen.c:4:10: fatal error: capstone/capstone.h: No such file or directory
    4 | #include <capstone/capstone.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:28: inigen] Error 1
make: *** [Makefile:163: tools/inigen] Error 2
make: *** Waiting for unfinished jobs....

I can build the base fire red game without any issues. Also INSTALLATION.md hasn't been updated for this repo.

matthewkirby commented 3 years ago

Alright, it turns out that I was missing a dependency that is not needed for the base firered install libcapstone-dev. Once I Installed that I ran a make clean and attempt the build again.

$ make -j12
tools/gbagfx/gbagfx graphics/field_specials/unk_83F60B0.pal graphics/field_specials/unk_83F60B0.gbapal
tools/gbagfx/gbagfx graphics/field_specials/unk_83F60D0.pal graphics/field_specials/unk_83F60D0.gbapal
tools/gbagfx/gbagfx graphics/field_specials/unk_83F60F0.pal graphics/field_specials/unk_83F60F0.gbapal
tools/gbagfx/gbagfx graphics/field_specials/unk_83F6110.pal graphics/field_specials/unk_83F6110.gbapal
make[2]: *** No rule to make target 'build/src/flash.o', needed by 'build/sym_common.ld'.  Stop.
make[1]: *** [Makefile:169: payload] Error 2
make: *** [Makefile:270: berry_fix] Error 2
make: *** Waiting for unfinished jobs....
arm-none-eabi-as -mcpu=arm7tdmi --defsym FIRERED=1 --defsym REVISION=1 --defsym ENGLISH=1 --defsym MODERN=0 -o build/firered-speedchoice/src/main_menu.o build/firered-speedchoice/src/main_menu.s
matthewkirby commented 3 years ago

Thanks for the fix! The build works great now!