Ich kann nicht mehr kompilieren. Kann jemand helfen?

Hallo,

ich habe früher unter Windows keine Probleme gehabt. Bin jetzt auf einem LinuxPC, und kann auf einmal nicht mehr kompilieren.

→ Aktuelle TNG Version aus dem Git
→ Die Bibilotheken aus der Readme mit dem Bibilothekverwalter heruntergeladen
→ constants.hpp editiert für classic und 3button
→ platform.local in den angegebenen Ordner verschoben

Jetzt bekomme ich diese Meldung

>In file included from /home/nicole/Downloads/TonUINO-TNG/TonUINO-TNG.ino:1:0:
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipOriginal.h:30:1: error: expected class-name before '{' token
 {
 ^
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipOriginal.h:34:13: error: 'Mp3_Packet_WithCheckSum' does not name a type
     typedef Mp3_Packet_WithCheckSum SendPacket;
             ^~~~~~~~~~~~~~~~~~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipOriginal.h:35:13: error: 'Mp3_Packet_WithCheckSum' does not name a type
     typedef Mp3_Packet_WithCheckSum ReceptionPacket;
             ^~~~~~~~~~~~~~~~~~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipOriginal.h:37:18: error: 'SendPacket' does not name a type
     static const SendPacket generatePacket(uint8_t command, uint16_t arg, bool requestAck = false)
                  ^~~~~~~~~~
In file included from /home/nicole/Downloads/TonUINO-TNG/TonUINO-TNG.ino:2:0:
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipBase.h:33:40: error: 'Mp3_Packet_WithCheckSum' does not name a type
     static uint16_t calcChecksum(const Mp3_Packet_WithCheckSum& packet)
                                        ^~~~~~~~~~~~~~~~~~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipBase.h:44:29: error: 'Mp3_Packet_WithCheckSum' has not been declared
     static void setChecksum(Mp3_Packet_WithCheckSum* out)
                             ^~~~~~~~~~~~~~~~~~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipBase.h:52:40: error: 'Mp3_Packet_WithCheckSum' does not name a type
     static bool validateChecksum(const Mp3_Packet_WithCheckSum& in)
                                        ^~~~~~~~~~~~~~~~~~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipBase.h: In static member function 'static uint16_t Mp3ChipBase::calcChecksum(const int&)':
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipBase.h:36:51: error: request for member 'version' in 'packet', which is of non-class type 'const int'
         for (const uint8_t* packetByte = &(packet.version); packetByte != &(packet.hiByteCheckSum); packetByte++)
                                                   ^~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipBase.h:36:84: error: request for member 'hiByteCheckSum' in 'packet', which is of non-class type 'const int'
         for (const uint8_t* packetByte = &(packet.version); packetByte != &(packet.hiByteCheckSum); packetByte++)
                                                                                    ^~~~~~~~~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipBase.h: In static member function 'static void Mp3ChipBase::setChecksum(int*)':
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipBase.h:48:14: error: request for member 'hiByteCheckSum' in '* out', which is of non-class type 'int'
         out->hiByteCheckSum = (sum >> 8);
              ^~~~~~~~~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipBase.h:49:14: error: request for member 'lowByteCheckSum' in '* out', which is of non-class type 'int'
         out->lowByteCheckSum = (sum & 0xff);
              ^~~~~~~~~~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipBase.h: In static member function 'static bool Mp3ChipBase::validateChecksum(const int&)':
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipBase.h:55:51: error: request for member 'hiByteCheckSum' in 'in', which is of non-class type 'const int'
         return (sum == ((static_cast<uint16_t>(in.hiByteCheckSum) << 8) | in.lowByteCheckSum));
                                                   ^~~~~~~~~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipBase.h:55:78: error: request for member 'lowByteCheckSum' in 'in', which is of non-class type 'const int'
         return (sum == ((static_cast<uint16_t>(in.hiByteCheckSum) << 8) | in.lowByteCheckSum));
                                                                              ^~~~~~~~~~~~~~~
In file included from /home/nicole/Downloads/TonUINO-TNG/TonUINO-TNG.ino:3:0:
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipIncongruousNoAck.h: At global scope:
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipIncongruousNoAck.h:34:13: error: 'Mp3_Packet_WithCheckSum' does not name a type
     typedef Mp3_Packet_WithCheckSum SendPacket;
             ^~~~~~~~~~~~~~~~~~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipIncongruousNoAck.h:35:13: error: 'Mp3_Packet_WithCheckSum' does not name a type
     typedef Mp3_Packet_WithCheckSum ReceptionPacket;
             ^~~~~~~~~~~~~~~~~~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipIncongruousNoAck.h:37:18: error: 'SendPacket' does not name a type
     static const SendPacket generatePacket(uint8_t command, uint16_t arg, bool requestAck = false)
                  ^~~~~~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipIncongruousNoAck.h: In static member function 'static bool Mp3ChipIncongruousNoAck::commandSupportsAck(uint8_t)':
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/Mp3ChipIncongruousNoAck.h:56:27: error: 'Mp3_Commands_Requests' was not declared in this scope
         return (command > Mp3_Commands_Requests);
                           ^~~~~~~~~~~~~~~~~~~~~
In file included from /home/nicole/Downloads/TonUINO-TNG/TonUINO-TNG.ino:5:0:
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h: In instantiation of 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::sendPacket(uint8_t, uint16_t, bool) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000; uint8_t = unsigned char; uint16_t = unsigned int]':
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:561:27:   required from 'DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::reply_t DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::retryCommand(uint8_t, uint8_t, uint16_t, bool) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000; uint8_t = unsigned char; uint16_t = unsigned int]'
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:599:21:   required from 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::setCommand(uint8_t, uint16_t) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000; uint8_t = unsigned char; uint16_t = unsigned int]'
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:270:19:   required from 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::start() [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000]'
/home/nicole/Downloads/TonUINO-TNG/src/mp3.hpp:218:56:   required from here
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:458:45: error: no type named 'SendPacket' in 'class Mp3ChipIncongruousNoAck'
         typename T_CHIP_VARIANT::SendPacket packet = T_CHIP_VARIANT::generatePacket(command, arg, requestAck);
                                             ^~~~~~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:458:45: error: no type named 'SendPacket' in 'class Mp3ChipIncongruousNoAck'
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h: In instantiation of 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::loop() [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000]':
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:453:13:   required from 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::drainResponses() [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000]'
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:547:27:   required from 'DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::reply_t DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::retryCommand(uint8_t, uint8_t, uint16_t, bool) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000; uint8_t = unsigned char; uint16_t = unsigned int]'
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:599:21:   required from 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::setCommand(uint8_t, uint16_t) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000; uint8_t = unsigned char; uint16_t = unsigned int]'
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:270:19:   required from 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::start() [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000]'
/home/nicole/Downloads/TonUINO-TNG/src/mp3.hpp:218:56:   required from here
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:76:59: error: no type named 'ReceptionPacket' in 'class Mp3ChipIncongruousNoAck'
             _serial.available() >= static_cast<int>(sizeof(typename T_CHIP_VARIANT::ReceptionPacket)))
                                                           ^
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h: In instantiation of 'bool DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::readPacket(DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::reply_t*) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000]':
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:606:26:   required from 'DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::reply_t DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::listenForReply(uint8_t) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000; uint8_t = unsigned char]'
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:562:39:   required from 'DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::reply_t DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::retryCommand(uint8_t, uint8_t, uint16_t, bool) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000; uint8_t = unsigned char; uint16_t = unsigned int]'
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:599:21:   required from 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::setCommand(uint8_t, uint16_t) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000; uint8_t = unsigned char; uint16_t = unsigned int]'
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:270:19:   required from 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD, T_CHIP_VARIANT, C_ACK_TIMEOUT>::start() [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; T_CHIP_VARIANT = Mp3ChipIncongruousNoAck; long unsigned int C_ACK_TIMEOUT = 4000]'
/home/nicole/Downloads/TonUINO-TNG/src/mp3.hpp:218:56:   required from here
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:471:50: error: no type named 'ReceptionPacket' in 'class Mp3ChipIncongruousNoAck'
         typename T_CHIP_VARIANT::ReceptionPacket in;
                                                  ^~
/home/nicole/Arduino/libraries/DFPlayer_Mini_Mp3_by_Makuna/src/DFMiniMp3.h:471:50: error: no type named 'ReceptionPacket' in 'class Mp3ChipIncongruousNoAck'
exit status 1
Fehler beim Kompilieren für das Board Arduino Nano.

Kann mir jemand helfen? Ich mache bestimmt etwas ganz dummes falsch…

Hmm, komisch. Für mich sieht es so aus, als wenn Dateien in der DFPlayer Library korrupt sind, insbesondere die in „src/internal“. Versuche doch mal die Library neu zu installieren (erst löschen, dann wieder installieren).