Problem compiling sketch

I did merge my former offline script that was working perfectly with my IOT commection and am pretty sure I made no mistakes.

I back them manually installed the DYPlayer lib since it wasn't listed in the libs.
I already compiled offline with it many times with no problem.

I later moved my sketch folder and it's lib folder around but moved it back as I'm pretty sure.

I cant compile now my offline/IOT mix script in the IDE because of an error which I think is he dosen't find the lib. Correct me if I'm wrong.

What might be the reason? Do I need to have that lib online as well? How?

Here's the error:

C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino:107:30: error: no matching function for call to 'DY::Player::Player(HardwareSerial*)'
 DY::Player Music(&SerialPort1);  // Initialise the player on UART1, pins TX: 33, RX: 25.
                              ^
C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino:107:30: note: candidates are:
In file included from C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino:31:0:
c:\Users\Gorkde\Documents\Arduino\Sketches\libraries\dyplayer\src/DYPlayerArduino.h:29:5: note: DY::Player::Player()
     Player();
     ^
c:\Users\Gorkde\Documents\Arduino\Sketches\libraries\dyplayer\src/DYPlayerArduino.h:29:5: note:   candidate expects 0 arguments, 1 provided
c:\Users\Gorkde\Documents\Arduino\Sketches\libraries\dyplayer\src/DYPlayerArduino.h:24:9: note: constexpr DY::Player::Player(const DY::Player&)
   class Player : public DYPlayer
         ^
c:\Users\Gorkde\Documents\Arduino\Sketches\libraries\dyplayer\src/DYPlayerArduino.h:24:9: note:   no known conversion for argument 1 from 'HardwareSerial*' to 'const DY::Player&'
c:\Users\Gorkde\Documents\Arduino\Sketches\libraries\dyplayer\src/DYPlayerArduino.h:24:9: note: constexpr DY::Player::Player(DY::Player&&)
c:\Users\Gorkde\Documents\Arduino\Sketches\libraries\dyplayer\src/DYPlayerArduino.h:24:9: note:   no known conversion for argument 1 from 'HardwareSerial*' to 'DY::Player&&'
C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino: In function 'void setup()':
C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino:122:45: error: invalid conversion from 'int' to 'SerialMode' [-fpermissive]
   SerialPort1.begin(9600, SERIAL_8N1, 33, 25);   // Serielle Schnittstelle 1 für Audio an
                                             ^
In file included from C:\Users\Gorkde\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/Arduino.h:263:0,
                 from C:\Users\Gorkde\AppData\Local\arduino\sketches\0554A32745997D69F61E04DF56669D0B\sketch\Tuerschloss.ino.cpp:1:
C:\Users\Gorkde\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/HardwareSerial.h:87:10: error:   initializing argument 3 of 'void HardwareSerial::begin(long unsigned int, SerialConfig, SerialMode, uint8_t)' [-fpermissive]
     void begin(unsigned long baud, SerialConfig config, SerialMode mode, uint8_t tx_pin);
          ^
C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino:123:46: error: invalid conversion from 'int' to 'SerialMode' [-fpermissive]
   SerialPort2.begin(57600, SERIAL_8N1, 16, 17);  // Serielle Schnittstelle 2 für Fingerprint Sensor an
                                              ^
In file included from C:\Users\Gorkde\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/Arduino.h:263:0,
                 from C:\Users\Gorkde\AppData\Local\arduino\sketches\0554A32745997D69F61E04DF56669D0B\sketch\Tuerschloss.ino.cpp:1:
C:\Users\Gorkde\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/HardwareSerial.h:87:10: error:   initializing argument 3 of 'void HardwareSerial::begin(long unsigned int, SerialConfig, SerialMode, uint8_t)' [-fpermissive]
     void begin(unsigned long baud, SerialConfig config, SerialMode mode, uint8_t tx_pin);
          ^
exit status 1

Compilation error: no matching function for call to 'DY::Player::Player(HardwareSerial*)'

Ok, just tested I now get the same error message with my formerly working offline script so it seems I messed something up moving the libs folder around in the beginning.

But I have no idea what?

Hello,

Where did you install this lib?

Is this a ZIP folder? How did you install it?

Are you sure you didn't change the code? Because unless I'm wrong the error ins't that it doesn't find the lib files, but more like you're using a function that doesn't exist in those files

It's in a subfolder in the same folder as all other libs and unpacked.

As I said i used it hundreds of times before witout problems but after moving the libraries folder around and back (at least thats what I assumed) its not recognized anymore.

Wait I'll take a screenshot.

Didn't you forget to include the 'xx.h' file? The name might be 'DYPlayer.h' but not sure, I'm not familiar with this lib

No its there and included .



Could you try to download the lib again, as ZIP file and install the lib in the IDE

BTW, in the list of the lib, do you see yours?

Ah ok it seeme that option is new? Back then I had to unzip it and move the folder myself into the libs directory.

At least thats what I did back a year ago and it worked until i moved the folder around.

Btw. its also not shown in the libraries tab. Is there some way to updat the tab? Earlier it showed up once I moved the folder in there.

Will look to download again now.

Is it the IDE that is having the error, or the cloud.

The lib isnt available in the cloud as far as I know but I now having the same error with formerly working script that has no cloud functions so it must be an IDE problem.

I don't know how we would do it. For me it's automatic. Maybe you need to reboot the software, the computer, or maybe you didn't put it back in th good folder. There is more than one folder for the library... It tends to lost me too

Trying to install the lib the way you suggested from zip gave me this:

Do you see the library installed in the Library Manager on the left of your sceen (IDE2.x) What is the name of the library?

I would delete (copy past somewhere else to keep the files, just in case) the library from the folder where you pasted it, and try again the installation

This is getting code from the cloud did you know that?

C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino:107:30: error: no matching function for call to 'DY::Player::Player(HardwareSerial*)'

No I dont see it in the left tab under libs. I remember I did back then. But when I use the top it's listed under "contributed"

That means you need to install it using the menu Sketch/Include Library/Add .ZIP Library. Now it will appear in the Library Manager and it hopefully will compile.

As I said it' also not working anymore with my offline script that hasn't any IOT online stuff and that worked perfectly before.

I also tried shutting down the connector program in the taskbar because I assumed it might be the problem but it's not.

As I said above I tried.
I could only remove the already installed one.

Problem is I dont have the originam zip anymore and now the 4.04 isn't available anymore it seems.

I think you need to install the library the way I showed you (official way) then compile. If you do get an error make sure prefs are set to verbose. Re post the source and the error log both in code tags. What I can see at the moment is a sketch in the Remote folder ie cloud.