Closed yellomonkey closed 7 years ago
Creating directories Beginning release build Compiling: src/main.c -> build/release/main.o In file included from src/main.c:31:0: src/main.c: In function ‘main’: include/ctroller.h:18:37: error: ‘VERSION_MAJOR’ undeclared (first use in this function) #define CTROLLER_VERSION MAKEBCDVER(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH ^ include/ctroller.h:12:7: note: in definition of macro ‘MAKEBCDVER’ ((major & 0xf) << 8 | (minor & 0xf) << 4 | (patch & 0xf)) ^ src/main.c:152:36: note: in expansion of macro ‘CTROLLER_VERSION’ if (hid.version != CTROLLER_VERSION) { ^ include/ctroller.h:18:37: note: each undeclared identifier is reported only once for each function it appears in #define CTROLLER_VERSION MAKEBCDVER(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH ^ include/ctroller.h:12:7: note: in definition of macro ‘MAKEBCDVER’ ((major & 0xf) << 8 | (minor & 0xf) << 4 | (patch & 0xf)) ^ src/main.c:152:36: note: in expansion of macro ‘CTROLLER_VERSION’ if (hid.version != CTROLLER_VERSION) { ^ include/ctroller.h:18:52: error: ‘VERSION_MINOR’ undeclared (first use in this function) #define CTROLLER_VERSION MAKEBCDVER(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH ^ include/ctroller.h:12:28: note: in definition of macro ‘MAKEBCDVER’ ((major & 0xf) << 8 | (minor & 0xf) << 4 | (patch & 0xf)) ^ src/main.c:152:36: note: in expansion of macro ‘CTROLLER_VERSION’ if (hid.version != CTROLLER_VERSION) { ^ include/ctroller.h:18:67: error: ‘VERSION_PATCH’ undeclared (first use in this function) #define CTROLLER_VERSION MAKEBCDVER(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH ^ include/ctroller.h:12:49: note: in definition of macro ‘MAKEBCDVER’ ((major & 0xf) << 8 | (minor & 0xf) << 4 | (patch & 0xf)) ^ src/main.c:152:36: note: in expansion of macro ‘CTROLLER_VERSION’ if (hid.version != CTROLLER_VERSION) { ^ Makefile:194: recipe for target 'build/release/main.o' failed make[1]: *** [build/release/main.o] Error 1 Makefile:124: recipe for target 'release' failed make: *** [release] Error 2
For future reference:
Building ctroller outside of a git repository would fail prior to 42e65bf because of macros being left undefined.
ctroller