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

Error: no matching function for call to 'OV2640Streamer::OV2640Streamer(OV2640&)' #26

Open
sridharangopal opened this issue Jan 24, 2020 · 7 comments

Comments

@sridharangopal
Copy link

streamer = new OV2640Streamer(cam); // our streamer for UDP/TCP based RTP transport

While trying to build this example using pio, I get the following error: error: no matching function for call to 'OV2640Streamer::OV2640Streamer(OV2640&)'
platformio.ini file contents I used:

[env:esp32cam]
platform = espressif32
board = esp32cam
framework = arduino
lib_deps = Micro-RTSP, ESP8266_SSD1306

It looks like there is no constructor defined that takes only one argument - the cam object.

Please advise on how to best get past this error.

@Net-time
Copy link

Sounds a bit like a problem I had with Arduino IDE, when I copied the sketch the source catalog was not copied so the #include src/"OV2640Streamer.h" or similar failed. Does your build have OV2640Streamer.h mapped or in the path?

@ccomincini
Copy link

Same problem here while trying to compile with Arduino ide.
Has anybody found a solution?

@dcmwong
Copy link

dcmwong commented May 12, 2020

Just had this same error with pio run How do we map OV2640Streamer.h ? Where is that located?

@dcmwong
Copy link

dcmwong commented May 12, 2020

I found the answer by placing the example folder into the root folder so the src sits in the same place where all the .h files live. I had to install some dependencies and then pio run worked

@FortinFred
Copy link

I'm using pio in VS Code here and the resolved dependency has a two params constructor which is out of sync with this repo....

Example

streamer = new OV2640Streamer(cam); // our streamer for UDP/TCP based RTP transport

.pio\libdeps\esp32cam\Micro-RTSP\src\OV2640Streamer.h

#pragma once

#include "CStreamer.h"
#include "OV2640.h"

class OV2640Streamer : public CStreamer
{
    bool m_showBig;
    OV2640 &m_cam;

public:
    OV2640Streamer(SOCKET aClient, OV2640 &cam);

    virtual void    streamImage(uint32_t curMsec);
};

@inaciose
Copy link

inaciose commented May 3, 2021

You should not use example in this repo with the library installed by plataformio.
Use the example in .pio/libdeps/esp32cam/Micro-RTSP folder instead

@Pablojosep
Copy link

I got this error by mixing files from different Micro-RTSP, by different I mean from several githubs. It was solved by deleting all the files and using just the files from this very git.

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

7 participants