• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[pokeemerald] can’t recompile the freshly downloaded pokeemerald decomp

  • 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!
     
    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!
    The errors are telling you that you don't have libpng installed. The INSTALL.md has instructions for that in the "Setting up msys2" section (steps 3-5).
     
    Back
    Top