arc80/FlapHero

Error when running `./plytool codegen`

aceiii opened this issue · 1 comments

Followed the instructions in the readme to try to build the code.

  • cd to plytool/repos directory
  • clone FlapHero repo
  • cd up a level to the workspace root
  • run ./plytool codegen

The last command results in the following:

$ ./plytool codegen
Wrote /projects/plywood/repos/FlapHero/src/flapGame/flapGame/codegen/switch-flap-GameState-Mode-Playing-TimeDilation.inl
Wrote /projects/plywood/repos/FlapHero/src/flapGame/flapGame/codegen/switch-flap-GameState-Mode-Falling-Mode.inl
Wrote /projects/plywood/repos/FlapHero/src/flapGame/flapGame/codegen/switch-flap-GameState-Mode.inl
Wrote /projects/plywood/repos/FlapHero/src/flapGame/flapGame/codegen/switch-flap-GameState-LifeState.inl
Wrote /projects/plywood/repos/FlapHero/src/flapGame/flapGame/codegen/switch-flap-GameState-Rotator.inl
Wrote /projects/plywood/repos/FlapHero/src/flapGame/flapGame/codegen/switch-flap-GameState-Camera.inl
Wrote /projects/plywood/repos/FlapHero/src/flapGame/flapGame/codegen/switch-flap-Button-State.inl
/projects/plywood/repos/FlapHero/src/flapGame/flapGame/DrawContext.h(15, 36): error: expected ';' before 'quantize'
/projects/plywood/repos/FlapHero/src/flapGame/flapGame/DrawContext.h(15, 36): error: declaration does not declare anything
/projects/plywood/repos/FlapHero/src/flapGame/flapGame/DrawContext.h(15, 47): error: declaration does not declare anything
/projects/plywood/repos/FlapHero/src/flapGame/flapGame/DrawContext.h(15, 53): error: expected declaration before '{'
/projects/plywood/repos/FlapHero/src/flapGame/flapGame/DrawContext.h(22, 36): error: expected ';' before 'clip'
/projects/plywood/repos/FlapHero/src/flapGame/flapGame/DrawContext.h(22, 41): error: 'const' qualifier not allowed here
/projects/plywood/repos/FlapHero/src/flapGame/flapGame/DrawContext.h(22, 51): error: expected ')' before '&'
[1]    30339 illegal hardware instruction  ./plytool codegen

Possibly related to arc80/plywood#9

OS: macOS Catalina Version 10.15.7

Was definitely related to arc80/plywood#9
After resolving that, I was able to build FlapHero just fine.