AZO234 / NP2kai

Neko Project II kai
http://domisan.sakura.ne.jp/article/np2kai/np2kai.html
MIT License
254 stars 62 forks source link

SDL2 compilation of Makefile21.unix fails. #53

Closed Art10001 closed 6 years ago

Art10001 commented 6 years ago

The issues are:

../sdl2/commng.c:71:2: error: unknown type name 'COMCFG'; did you mean 'COMMNG'? COMCFG cfg; ^~ COMMNG ../sdl2/commng.h:33:25: note: 'COMMNG' declared here typedef struct _commng COMMNG; ^ ../sdl2/commng.c:77:19: error: no member named 'com' in 'NP2OSCFG' cfg = &np2oscfg.com[0];


../sdl2/commng.c:81:19: error: no member named 'com' in 'NP2OSCFG'
                cfg = &np2oscfg.com[1];
                       ~~~~~~~~ ^
../sdl2/commng.c:85:19: error: no member named 'com' in 'NP2OSCFG'
                cfg = &np2oscfg.com[2];
                       ~~~~~~~~ ^
../sdl2/commng.c:89:19: error: no member named 'mpu' in 'NP2OSCFG'
                cfg = &np2oscfg.mpu;
                       ~~~~~~~~ ^
../sdl2/commng.c:104:11: error: member reference base type 'COMMNG'
      (aka 'struct _commng *') is not a structure or union
                if ((cfg->port >= COMPORT_COM1)
                     ~~~^ ~~~~
../sdl2/commng.c:105:11: error: member reference base type 'COMMNG'
      (aka 'struct _commng *') is not a structure or union
                 && (cfg->port <= COMPORT_COM4)) {
                     ~~~^ ~~~~
../sdl2/commng.c:109:17: error: member reference base type 'COMMNG'
      (aka 'struct _commng *') is not a structure or union
                } else if (cfg->port == COMPORT_MIDI) {
                           ~~~^ ~~~~
8 errors generated.
make: *** [../sdl2/commng.o] Error 1
make: *** Waiting for unfinished jobs....

All the required libraries are installed. It fails both under macOS and Linux.
AZO234 commented 6 years ago

Sorry. Thanks to helpful report! I fixed building on SDL2.

Art10001 commented 6 years ago

Thank you too, @AZO234! :D