- 1
- Posts
- 1
- Years
- Seen Feb 12, 2025
I'm attempting to build DraftEmerald (https://github.com/Kobazco/DraftEmerald) from Alpharad's Youtube video of him and 5 others playing this hack. (https://www.youtube.com/watch?v=svgylR1xRwk&t=727s)
I'm using MSYS2 and every time I attempt to build it it gives me this error despite downloading everything in the tutorial:
"
convert_png.c:5:10: fatal error: png.h: No such file or directory
5 | #include <png.h>
| ^~~
compilation terminated.
make[2]: [Makefile:18: gbagfx] Error 1
make[1]: [Makefile:169: tools/gbagfx] Error 2
arm-none-eabi-gcc -Wall -Wextra -Wno-switch -Werror -std=c11 -O2 main.c extended.c -o aif2pcm -lm
arm-none-eabi-gcc -Wall -Wextra -Werror -std=c11 -O2 bin2c.c -o bin2c
arm-none-eabi-gcc gbafix.c -o gbafix
arm-none-eabi-gcc -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 -lpng -lz
/bin/bash: line 1: tools/scaninc/scaninc.exe: No such file or directory
"
It says I'm missing a file called png.h and scaninc.exe but I have no idea where these files could located or how I could get them. This is the last thing I need to build this and I'm out of ideas.... can anyone help?
I'm using MSYS2 and every time I attempt to build it it gives me this error despite downloading everything in the tutorial:
"
convert_png.c:5:10: fatal error: png.h: No such file or directory
5 | #include <png.h>
| ^~~
compilation terminated.
make[2]: [Makefile:18: gbagfx] Error 1
make[1]: [Makefile:169: tools/gbagfx] Error 2
arm-none-eabi-gcc -Wall -Wextra -Wno-switch -Werror -std=c11 -O2 main.c extended.c -o aif2pcm -lm
arm-none-eabi-gcc -Wall -Wextra -Werror -std=c11 -O2 bin2c.c -o bin2c
arm-none-eabi-gcc gbafix.c -o gbafix
arm-none-eabi-gcc -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 -lpng -lz
/bin/bash: line 1: tools/scaninc/scaninc.exe: No such file or directory
"
It says I'm missing a file called png.h and scaninc.exe but I have no idea where these files could located or how I could get them. This is the last thing I need to build this and I'm out of ideas.... can anyone help?
Last edited: