Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error in Arduino IDE #54

Open
orlin369 opened this issue Feb 3, 2024 · 5 comments
Open

Compiling error in Arduino IDE #54

orlin369 opened this issue Feb 3, 2024 · 5 comments

Comments

@orlin369
Copy link

orlin369 commented Feb 3, 2024

Hello I am using Arduino IDE and trying to build the project.

This error comes out:

C:\Users\User\Documents\Arduino\libraries\Micro-RTSP\examples\ESP32-devcam\ESP32-devcam.ino: In function 'void loop()':
C:\Users\User\Documents\Arduino\libraries\Micro-RTSP\examples\ESP32-devcam\ESP32-devcam.ino:220:40: error: no matching function for call to 'CStreamer::addSession(WiFiClient&)'
         streamer->addSession(rtspClient);
                                        ^
In file included from c:\Users\User\Documents\Arduino\libraries\Micro-RTSP\src/SimStreamer.h:4,
                 from C:\Users\User\Documents\Arduino\libraries\Micro-RTSP\examples\ESP32-devcam\ESP32-devcam.ino:6:
c:\Users\User\Documents\Arduino\libraries\Micro-RTSP\src/CStreamer.h:16:19: note: candidate: 'CRtspSession* CStreamer::addSession(SOCKET)'
     CRtspSession *addSession( SOCKET aClient );
                   ^~~~~~~~~~
c:\Users\User\Documents\Arduino\libraries\Micro-RTSP\src/CStreamer.h:16:19: note:   no known conversion for argument 1 from 'WiFiClient' to 'SOCKET' {aka 'WiFiClient*'}

exit status 1

Compilation error: no matching function for call to 'CStreamer::addSession(WiFiClient&)'

Would you be able to help?

Regards

@lejibxl
Copy link

lejibxl commented Feb 12, 2024

I have the same error

@djsaveRUS
Copy link

I have a couple of problems with this library.
The first is that it doesn't show up in the library manager.(Arduino IDE 2.3.x)
And if I transfer a sketch to a folder with sketches and run it as a regular tape, I get a compilation error.
`C:\Users\Superman\Documents\Arduino\ESP32-CAM-RSTP-server\ESP32-CAM-RSTP-server.ino: In function 'void setup()':
C:\Users\Superman\Documents\Arduino\ESP32-CAM-RSTP-server\ESP32-CAM-RSTP-server.ino:184:38: error: no matching function for call to 'OV2640Streamer::OV2640Streamer(OV2640&)'
streamer = new OV2640Streamer(cam); // our streamer for UDP/TCP based RTP transport
^
In file included from C:\Users\Superman\Documents\Arduino\ESP32-CAM-RSTP-server\ESP32-CAM-RSTP-server.ino:7:
c:\Users\Superman\Documents\Arduino\libraries\Micro-RTSP\src/OV2640Streamer.h:12:5: note: candidate: 'OV2640Streamer::OV2640Streamer(OV2640*)'
OV2640Streamer(OV2640 cam);
^~~~~~~~~~~~~~
c:\Users\Superman\Documents\Arduino\libraries\Micro-RTSP\src/OV2640Streamer.h:12:5: note: no known conversion for argument 1 from 'OV2640' to 'OV2640
'
c:\Users\Superman\Documents\Arduino\libraries\Micro-RTSP\src/OV2640Streamer.h:6:7: note: candidate: 'OV2640Streamer::OV2640Streamer(const OV2640Streamer&)'
class OV2640Streamer : public CStreamer
^~~~~~~~~~~~~~
c:\Users\Superman\Documents\Arduino\libraries\Micro-RTSP\src/OV2640Streamer.h:6:7: note: no known conversion for argument 1 from 'OV2640' to 'const OV2640Streamer&'
c:\Users\Superman\Documents\Arduino\libraries\Micro-RTSP\src/OV2640Streamer.h:6:7: note: candidate: 'OV2640Streamer::OV2640Streamer(OV2640Streamer&&)'
c:\Users\Superman\Documents\Arduino\libraries\Micro-RTSP\src/OV2640Streamer.h:6:7: note: no known conversion for argument 1 from 'OV2640' to 'OV2640Streamer&&'
C:\Users\Superman\Documents\Arduino\ESP32-CAM-RSTP-server\ESP32-CAM-RSTP-server.ino: In function 'void loop()':
C:\Users\Superman\Documents\Arduino\ESP32-CAM-RSTP-server\ESP32-CAM-RSTP-server.ino:220:40: error: no matching function for call to 'CStreamer::addSession(WiFiClient&)'
streamer->addSession(rtspClient);
^
In file included from c:\Users\Superman\Documents\Arduino\libraries\Micro-RTSP\src/SimStreamer.h:4,
from C:\Users\Superman\Documents\Arduino\ESP32-CAM-RSTP-server\ESP32-CAM-RSTP-server.ino:6:
c:\Users\Superman\Documents\Arduino\libraries\Micro-RTSP\src/CStreamer.h:16:19: note: candidate: 'CRtspSession* CStreamer::addSession(SOCKET)'
CRtspSession addSession( SOCKET aClient );
^~~~~~~~~~
c:\Users\Superman\Documents\Arduino\libraries\Micro-RTSP\src/CStreamer.h:16:19: note: no known conversion for argument 1 from 'WiFiClient' to 'SOCKET' {aka 'WiFiClient
'}

exit status 1

Compilation error: no matching function for call to 'OV2640Streamer::OV2640Streamer(OV2640&)'`

ESP32-CAM-RSTP-server.zip
I will be glad if someone corrects the code so that it works.

@canDry
Copy link

canDry commented Feb 23, 2024

Using this library: https://github.com/circuitrocks/ESP32-RTSP/tree/master worked for me.
Note: remember to first remove the existing Micro-RTSP from libraries before importing this one.

@liuyang3688
Copy link

class constructor or function parameter need a pointer instead of object.

repo code has obvious error.

@gajarskymartin
Copy link

for this particular issue it is enough to put an address to addSession
streamer->addSession(&rtspClient);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants