asiekierka / wasm4-aot

Ahead-of-time compiled WASM-4 runtime
MIT License
30 stars 3 forks source link

No such file or directory: cart.h #2

Closed rajsite closed 1 year ago

rajsite commented 1 year ago

Trying out wasm4-aot to compile for gba and ran into the following build error:

/workspaces/wasm4-aot (main ✗) $ ./build.sh corn.wasm gba corn.gba
make: Nothing to be done for 'all'.
framebuffer.cpp
cc1plus: warning: command-line option '-Wno-pointer-sign' is valid for C/ObjC but not for C++
wasm-shim.c
main.c
/workspaces/wasm4-aot/src/main.c:6:10: fatal error: cart.h: No such file or directory
    6 | #include "cart.h"
      |          ^~~~~~~~
compilation terminated.
make[1]: *** [/opt/devkitpro/devkitARM//base_rules:85: main.o] Error 1
make: *** [Makefile.dkp-gba:106: build-dkp-gba] Error 2
cp: cannot stat 'wasm4-aot-gba.gba': No such file or directory

Which seems to point to:

https://github.com/asiekierka/wasm4-aot/blob/b92664130f9769ebb749e7614c25310237319cf5/src/main.c#L6

Removing the cart.h include from main.c seems to work for the gba platform.

asiekierka commented 1 year ago

That was indeed an include missed during an older refactor - hank you!