../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.
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];