WiFi Lora 32 OTA sample will not compile

Hi
When try to compile the example OTAA_OLED sketch I get the following errors.
I have installed the latest library and boards. Any information is welcome

In file included from C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:1:0:
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src/LoRa.h:78:13: error: use of enum ‘eDeviceState’ without previous declaration
extern enum eDeviceState DeviceState;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src/LoRa.h:87:24: error: ‘DeviceClass_t’ has not been declared
void DeviceStateInit(DeviceClass_t CLASS);
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src/LoRa.h:90:20: error: ‘DeviceClass_t’ has not been declared
void DeviceSleep(DeviceClass_t CLASS,uint8_t debuglevel);
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:12:20: error: use of enum ‘eDeviceState’ without previous declaration
RTC_DATA_ATTR enum eDeviceState DeviceState;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:13:1: error: ‘LoRaMacPrimitives_t’ does not name a type
LoRaMacPrimitives_t LoRaMacPrimitives;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:14:1: error: ‘LoRaMacCallback_t’ does not name a type
LoRaMacCallback_t LoRaMacCallbacks;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:15:1: error: ‘MibRequestConfirm_t’ does not name a type
MibRequestConfirm_t mibReq;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:21:20: error: ‘LORAWAN_DEVICE_EUI’ was not declared in this scope
uint8_t DevEui[] = LORAWAN_DEVICE_EUI;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:22:20: error: ‘LORAWAN_APPLICATION_EUI’ was not declared in this scope
uint8_t AppEui[] = LORAWAN_APPLICATION_EUI;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:23:20: error: ‘LORAWAN_APPLICATION_KEY’ was not declared in this scope
uint8_t AppKey[] = LORAWAN_APPLICATION_KEY;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:26:35: error: ‘LORAWAN_NWKSKEY’ was not declared in this scope
RTC_DATA_ATTR uint8_t NwkSKey[] = LORAWAN_NWKSKEY;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:27:35: error: ‘LORAWAN_APPSKEY’ was not declared in this scope
RTC_DATA_ATTR uint8_t AppSKey[] = LORAWAN_APPSKEY;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:32:21: error: ‘LORAWAN_DEVICE_ADDRESS’ was not declared in this scope
uint32_t DevAddr = LORAWAN_DEVICE_ADDRESS;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:37:19: error: ‘LORAWAN_APP_PORT’ was not declared in this scope
uint8_t AppPort = LORAWAN_APP_PORT;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:38:23: error: ‘LORAWAN_APP_DATA_SIZE’ was not declared in this scope
uint8_t AppDataSize = LORAWAN_APP_DATA_SIZE;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:40:25: error: ‘LORAWAN_CONFIRMED_MSG_ON’ was not declared in this scope
uint8_t IsTxConfirmed = LORAWAN_CONFIRMED_MSG_ON;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:51:26: error: aggregate ‘ComplianceTest_s ComplianceTest’ has incomplete type and cannot be defined
struct ComplianceTest_s ComplianceTest;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp: In function ‘bool SendFrame()’:
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:153:5: error: ‘McpsReq_t’ was not declared in this scope
McpsReq_t mcpsReq;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:154:5: error: ‘LoRaMacTxInfo_t’ was not declared in this scope
LoRaMacTxInfo_t txInfo;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:155:47: error: ‘txInfo’ was not declared in this scope
if( LoRaMacQueryTxPossible( AppDataSize, &txInfo ) != LORAMAC_STATUS_OK )
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:155:54: error: ‘LoRaMacQueryTxPossible’ was not declared in this scope
if( LoRaMacQueryTxPossible( AppDataSize, &txInfo ) != LORAMAC_STATUS_OK )
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:155:59: error: ‘LORAMAC_STATUS_OK’ was not declared in this scope
if( LoRaMacQueryTxPossible( AppDataSize, &txInfo ) != LORAMAC_STATUS_OK )
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:158:9: error: ‘mcpsReq’ was not declared in this scope
mcpsReq.Type = MCPS_UNCONFIRMED;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:158:24: error: ‘MCPS_UNCONFIRMED’ was not declared in this scope
mcpsReq.Type = MCPS_UNCONFIRMED;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:161:44: error: ‘LORAWAN_DEFAULT_DATARATE’ was not declared in this scope
mcpsReq.Req.Unconfirmed.Datarate = LORAWAN_DEFAULT_DATARATE;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:167:13: error: ‘mcpsReq’ was not declared in this scope
mcpsReq.Type = MCPS_UNCONFIRMED;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:167:28: error: ‘MCPS_UNCONFIRMED’ was not declared in this scope
mcpsReq.Type = MCPS_UNCONFIRMED;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:171:48: error: ‘LORAWAN_DEFAULT_DATARATE’ was not declared in this scope
mcpsReq.Req.Unconfirmed.Datarate = LORAWAN_DEFAULT_DATARATE;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:175:13: error: ‘mcpsReq’ was not declared in this scope
mcpsReq.Type = MCPS_CONFIRMED;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:175:28: error: ‘MCPS_CONFIRMED’ was not declared in this scope
mcpsReq.Type = MCPS_CONFIRMED;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:180:46: error: ‘LORAWAN_DEFAULT_DATARATE’ was not declared in this scope
mcpsReq.Req.Confirmed.Datarate = LORAWAN_DEFAULT_DATARATE;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:184:30: error: ‘mcpsReq’ was not declared in this scope
if( LoRaMacMcpsRequest( &mcpsReq ) == LORAMAC_STATUS_OK )
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:184:38: error: ‘LoRaMacMcpsRequest’ was not declared in this scope
if( LoRaMacMcpsRequest( &mcpsReq ) == LORAMAC_STATUS_OK )
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:184:43: error: ‘LORAMAC_STATUS_OK’ was not declared in this scope
if( LoRaMacMcpsRequest( &mcpsReq ) == LORAMAC_STATUS_OK )
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp: In function ‘void OnTxNextPacketTimerEvent()’:
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:198:2: error: ‘MibRequestConfirm_t’ was not declared in this scope
MibRequestConfirm_t mibReq;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:199:5: error: ‘LoRaMacStatus_t’ was not declared in this scope
LoRaMacStatus_t status;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:203:5: error: ‘mibReq’ was not declared in this scope
mibReq.Type = MIB_NETWORK_JOINED;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:203:19: error: ‘MIB_NETWORK_JOINED’ was not declared in this scope
mibReq.Type = MIB_NETWORK_JOINED;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:204:5: error: ‘status’ was not declared in this scope
status = LoRaMacMibGetRequestConfirm( &mibReq );
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:204:51: error: ‘LoRaMacMibGetRequestConfirm’ was not declared in this scope
status = LoRaMacMibGetRequestConfirm( &mibReq );
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:206:19: error: ‘LORAMAC_STATUS_OK’ was not declared in this scope
if( status == LORAMAC_STATUS_OK )
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:210:27: error: ‘DEVICE_STATE_SEND’ was not declared in this scope
DeviceState = DEVICE_STATE_SEND;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:215:27: error: ‘DEVICE_STATE_JOIN’ was not declared in this scope
DeviceState = DEVICE_STATE_JOIN;
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp: At global scope:
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:226:26: error: variable or field ‘McpsConfirm’ declared void
static void McpsConfirm( McpsConfirm_t *mcpsConfirm )
^
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:226:26: error: ‘McpsConfirm_t’ was not declared in this scope
C:\Users\John\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src\LoRa.cpp:226:41: error: ‘mcpsConfirm’ was not declared in this scope
static void McpsConfirm( McpsConfirm_t *mcpsConfirm )
^
exit status 1
Error compiling for board WiFi LoRa 32(V2).

It may be that the library is incomplete, use git pull to give it a try.

Thanks for the reply
I did try git for the board manager but will give it a go for the library

Using git to clone the library and board manager solved it.

Thanks