CraftSpider / GCDecompiler

A project to decompile and recompile gamecube games
MIT License
47 stars 7 forks source link

Can't install on WSL? #11

Open Vivian-Green opened 1 year ago

Vivian-Green commented 1 year ago

I get the following error on WSL, when I try the make command:

Running Make for
[  2%] Building CXX object CMakeFiles/GCDecompiler.dir/src/datatypes/color.cpp.o
In file included from /mnt/c/Users/acorb/Downloads/GCDecompiler-master/src/datatypes/color.cpp:2:
/mnt/c/Users/acorb/Downloads/GCDecompiler-master/include/datatypes/color.h:3:10: fatal error: types.h: No such file or directory
    3 | #include "types.h"
      |          ^~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/GCDecompiler.dir/build.make:76: CMakeFiles/GCDecompiler.dir/src/datatypes/color.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:112: CMakeFiles/GCDecompiler.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
setup.sh: 27: Syntax error: "}" unexpected

and yet, when I run find /usr/include -name types.h

/usr/include/x86_64-linux-gnu/asm/types.h
/usr/include/x86_64-linux-gnu/bits/types.h
/usr/include/x86_64-linux-gnu/sys/types.h
/usr/include/c++/11/parallel/types.h
/usr/include/tirpc/rpc/types.h
/usr/include/asm-generic/types.h
/usr/include/linux/types.h
/usr/include/linux/iio/types.h
/usr/include/linux/sched/types.h
root@DESKTOP-3VGKNK2:/mnt/c/Users/acorb/Downloads/GCDecompiler-master#

System info:

running on an intel i5-3570 if that's important OS: Windows 10 Pro, x86-64, build 19044.2846

WSL OS: Ubuntu 22.04.2 LTS Kernel: Linux 5.15.90.1-microsoft-standard-WSL2

result from wsl --version:

WSL version: 1.2.5.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19044.2846

CMake 3.22.1 Make 4.3 gcc (Ubuntu 11.3.0-1ubuntu1~22.04) aka just 11.3.0

CraftSpider commented 1 year ago

This project has not been maintained recently, I may be able to spend some time soon to make it build, however, in general you should prefer more well-maintained GameCube tools.

CraftSpider commented 1 year ago

Coming back to this (sorry for the long delay) - did you run setup.sh? It should install alpha_tools (a utility library of my own creation) into the lib directory, which is the source of types.h.