Open AlconDivino opened 6 years ago
Hi I am going to try to walk you through the mental steps you should follow to debug C++ builds because it seems like you are pretty new to this.
What does the message <some_variable> was not declared in this scope
tell you? This is the kind of error message you would get if your entire program was like this:
#include <cstdio>
int main(int argc, char** argv) {
printf("%f\n", some_variable);
return 0;
}
some_variable
was never defined. When encountering a message like this when building someone else's library (that other people have built successfully) from source, it is safe to assume that the author did not make a mistake and forget to define a variable and this variable is likely defined in a third party library the author is using.
The first result of googling LCCSCF_USE_SSL
tells us this variable is from libwebsockets. Looking back at how you modified the makefile, you set libwebsockets_include
to /usr/include/
. So your mistake is that wherever libwebsockets installed it's include files to is not visible from /usr/include/
.
i updated the libwebsocketspackage and now i compiled everything and i can work with it.
Yes i'm pretty new and thanks for the advice.
Now i'm gonna see how that whole json thing works and I'llbe fine
Pretty much the title. I got rasbian on raspberry pi. i installed libcurl4-openssl-dev and libwebsockets-dev with the apt-get command.
now i included the libraries and header into the makefile looking like this:
Now i Try to run make in the directory and now i get the following errors with a lot of warnings but lets leave that aside:`
Any ideas what could be the cause?