- 1
- Posts
- 3
- Years
- Seen Feb 22, 2024
Hello everyone! It's been a very long time since I've last been active on pokecommunity but recently I have been hit with a wave of interest to get up and try my hand at making a Pokemon Emerald ROM Hack! I have decided to go the decompile route as I've heard it's easier and more user friendly. Unfortunately, I'm not even into the hacking stage and I've already ran into an issue. I've followed the Install guide on the github for Windows (msys2) and I believe I have done everything correctly however when I try to use the make command to re-compile the game I run into the following issue:
$ make
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpng', required by 'virtual:world', not found
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpng', required by 'virtual:world', not found
convert_png.c:5:10: fatal error: png.h: No such file or directory
5 | #include <png.h>
| ^~~~~~~
compilation terminated.
make[2]: *** [Makefile:26: gbagfx.exe] Error 1
make[1]: *** [make_tools.mk:12: tools/gbagfx] Error 2
cc -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -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.exe -lpng -lz
(then a crap-ton of repeated lines saying "/bin/bash: line 1: tools/scaninc/scaninc.exe: No such file or directory")
make: *** [Makefile:398: build/emerald/sym_bss.ld] Error 127
make: *** Deleting file 'build/emerald/sym_bss.ld'
And that's that. If anybody smarter than me knows the issue and can help please reach out it would be so appreciated. Thank you!
$ make
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpng', required by 'virtual:world', not found
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpng', required by 'virtual:world', not found
convert_png.c:5:10: fatal error: png.h: No such file or directory
5 | #include <png.h>
| ^~~~~~~
compilation terminated.
make[2]: *** [Makefile:26: gbagfx.exe] Error 1
make[1]: *** [make_tools.mk:12: tools/gbagfx] Error 2
cc -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -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.exe -lpng -lz
(then a crap-ton of repeated lines saying "/bin/bash: line 1: tools/scaninc/scaninc.exe: No such file or directory")
make: *** [Makefile:398: build/emerald/sym_bss.ld] Error 127
make: *** Deleting file 'build/emerald/sym_bss.ld'
And that's that. If anybody smarter than me knows the issue and can help please reach out it would be so appreciated. Thank you!