emukidid / swiss-gc

Swiss - The swiss army knife of GameCube homebrew
GNU General Public License v2.0
1.23k stars 93 forks source link

[Question]: Having troubles compiling Swiss, regarding ZLib. #832

Closed m4x10187 closed 10 months ago

m4x10187 commented 10 months ago

Describe your question

Compiling the source code brings up an error, complaining about "zlib.h" not existing.

emily@emily-virtual-machine:~/swiss-gc$ make
Building on
make[1]: Entering directory '/home/emily/swiss-gc/cube/patches'
make[1]: Leaving directory '/home/emily/swiss-gc/cube/patches'
make[1]: Entering directory '/home/emily/swiss-gc/cube/swiss'
clean ...
make[1]: Leaving directory '/home/emily/swiss-gc/cube/swiss'
make[1]: Entering directory '/home/emily/swiss-gc/cube/packer'
clean ...
make[1]: Leaving directory '/home/emily/swiss-gc/cube/packer'
make[1]: Entering directory '/home/emily/swiss-gc/pc/usbgecko'
make[1]: Leaving directory '/home/emily/swiss-gc/pc/usbgecko'
make[1]: Entering directory '/home/emily/swiss-gc/cube/patches'
Building Codehandler ...
Building C Patches ...
Building Reboot ...
Building Stub ...
Building SD Patch ...
Building SD Patch + CARD ...
Building SD Patch + DTK ...
Building IDE-EXI-v1 Patch ...
Building IDE-EXI-v1 Patch + CARD ...
Building IDE-EXI-v1 Patch + DTK ...
Building IDE-EXI-v2 Patch ...
Building IDE-EXI-v2 Patch + CARD ...
Building IDE-EXI-v2 Patch + DTK ...
Building DVD Patch ...
Building DVD Patch + CARD ...
Building USBGecko Patch ...
Building WKF Patch ...
Building WKF Patch + CARD ...
Building WKF Patch + DTK ...
Building FSP Patch ...
Building FSP Patch + DTK ...
Building FSP Patch + ETH ...
Building GCLoader-v1 Patch ...
Building GCLoader-v1 Patch + CARD ...
Building GCLoader-v2 Patch ...
Building GCLoader-v2 Patch + CARD ...
make[1]: Leaving directory '/home/emily/swiss-gc/cube/patches'
make[1]: Entering directory '/home/emily/swiss-gc/cube/swiss'
Current Directory /home/emily/swiss-gc/cube/swiss
GIT Revision 5f3f8e19
images.scf
images.tpl
buttons.scf
buttons.tpl
bba.c
elf.c
exi.c
files.c
gameid.c
gcm.c
httpd.c
input.c
main.c
mcp.c
mp3.c
nkit.c
patcher.c
/home/emily/swiss-gc/cube/swiss/source/patcher.c:13:10: fatal error: zlib.h: No such file or directory
   13 | #include <zlib.h>
      |          ^~~~~~~~
compilation terminated.
make[2]: *** [/opt/devkitpro/devkitPPC//base_rules:21: patcher.o] Error 1
rm images.tpl buttons.tpl
make[1]: *** [Makefile:145: build] Error 2
make[1]: Leaving directory '/home/emily/swiss-gc/cube/swiss'
make: *** [Makefile:57: compile] Error 2

Add screenshots

No response

Extrems commented 10 months ago

pacman -S ppc-zlib

m4x10187 commented 10 months ago

That actually worked. You need to use sudo dkp-pacman -S ppc-zlib instead of pacman -S ppc-zlib. Once again thanks for helping out.