Comments (9)
would you please give more info about the compiler version and your os?
from qhttp.
The version of QMake is
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
I am using linux lite 2.4 64 bit
On Mon, Sep 5, 2016 at 11:41 AM, amir zamani [email protected]
wrote:
would you please give more info about the compiler version and your os?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACExC4gfZwLjMwUle0Y77Lda-JG-sRcMks5qm9WlgaJpZM4J0vDx
.
from qhttp.
under Ubuntu and ArchLinux, I have tried g++ 5.4+
/ g++ 6.x
without any problem.
please also make sure that you are using a recent c++
compiler with full c++14
support.
from qhttp.
and under Ubuntu 14.04 and g++ 5.3
from qhttp.
OK , let me update my compiler to see if something change
On Mon, Sep 5, 2016 at 6:18 PM, amir zamani [email protected]
wrote:
and under Ubuntu 14.04 and g++ 5.3
[image: asciicast] https://asciinema.org/a/49652—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACExCzNtduJHx26tl8ZOJZ8JFYrPWMvPks5qnDLWgaJpZM4J0vDx
.
from qhttp.
I have updated my compiler to 6.2 and a new error has occurred instead .
r::HttpRequestParser() [with TImpl =
qhttp::server::QHttpConnectionPrivate]’
private/qhttpserverconnection_private.hpp:33:66: required from here
private/httpparser.hxx:74:18: error: invalid use of ‘auto’
return me(p)->body(p, at, length);
^
private/httpparser.hxx: In instantiation of ‘static int
qhttp::details::HttpParser::onMessageComplete(http_parser_) [with
TImpl = qhttp::server::QHttpConnectionPrivate; http_parser = http_parser]’:
private/httpparser.hxx:38:45: required from
‘qhttp::details::HttpParser::HttpParser(http_parser_type) [with
TImpl = qhttp::server::QHttpConnectionPrivate]’
private/httpparser.hxx:106:57: required from
‘qhttp::details::HttpRequestParser::HttpRequestParser() [with TImpl
= qhttp::server::QHttpConnectionPrivate]’
private/qhttpserverconnection_private.hpp:33:66: required from here
private/httpparser.hxx:78:18: error: invalid use of ‘auto’
return me(p)->messageComplete(p);
^
make[1]: *_* [../tmp/unix/qhttp/qhttpserverconnection.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/home/william/Desktop/BUS_BUDDY_DESKTOP/qhttp/src'
make: *** [sub-src-make_first] Error 2
On Mon, Sep 5, 2016 at 6:21 PM, William Kibira [email protected]
wrote:
OK , let me update my compiler to see if something change
On Mon, Sep 5, 2016 at 6:18 PM, amir zamani [email protected]
wrote:and under Ubuntu 14.04 and g++ 5.3
[image: asciicast] https://asciinema.org/a/49652—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACExCzNtduJHx26tl8ZOJZ8JFYrPWMvPks5qnDLWgaJpZM4J0vDx
.
from qhttp.
it simply says that the toolchain has not configured to compile c++11/14
please make sure CONFIG += c++11 c++14
is enabled in commondir.pri
and you can compile a trivial code like:
// shall return QByteArray
auto foo() {
return QString("unicode").toUtf8();
}
from qhttp.
specifying common dirs
DEFINES *= QHTTP_HAS_CLIENT
Qt5.5.1 on OSX needs both c++11 and c++14!! the c++14 is not enough
CONFIG += c++11 c++14
unix {
TEMPDIR = $$PRJDIR/tmp/unix/$$TARGET
macx:TEMPDIR = $$PRJDIR/tmp/osx/$$TARGET
}
win32 {
warning("Windows port of this library has not been tested nor
profiled.")
TEMPDIR = $$PRJDIR/tmp/win32/$$TARGET
DEFINES += _WINDOWS WIN32_LEAN_AND_MEAN NOMINMAX
}
DESTDIR = $$PRJDIR/xbin
MOC_DIR = $$TEMPDIR
OBJECTS_DIR = $$TEMPDIR
RCC_DIR = $$TEMPDIR
UI_DIR = $$TEMPDIR/Ui
LIBS += -L$$PRJDIR/xbin
INCLUDEPATH += . $$PRJDIR/src $$PRJDIR/3rdparty
It is enabled
On Mon, Sep 5, 2016 at 7:50 PM, amir zamani [email protected]
wrote:
it simply says that the toolchain has not configured to compile c++11/14
please make sure CONFIG += c++11 c++14 is enabled in commondir.pri and
you can compile a trivial code like:// shall return QByteArrayauto foo() {
return QString("unicode").toUtf8();
}—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACExC_Fci43gVeOgEL2CMUvzNt_XXoUiks5qnEg4gaJpZM4J0vDx
.
from qhttp.
Just tested this
include
int main(){
auto value = 4;
std::cout << value <<std::endl;
return 0;
}
~
and it compiled and ran.
On Mon, Sep 5, 2016 at 7:56 PM, William Kibira [email protected]
wrote:
specifying common dirs
DEFINES *= QHTTP_HAS_CLIENT
Qt5.5.1 on OSX needs both c++11 and c++14!! the c++14 is not enough
CONFIG += c++11 c++14
unix {
TEMPDIR = $$PRJDIR/tmp/unix/$$TARGET
macx:TEMPDIR = $$PRJDIR/tmp/osx/$$TARGET
}win32 {
warning("Windows port of this library has not been tested nor
profiled.")
TEMPDIR = $$PRJDIR/tmp/win32/$$TARGET
DEFINES += _WINDOWS WIN32_LEAN_AND_MEAN NOMINMAX
}DESTDIR = $$PRJDIR/xbin
MOC_DIR = $$TEMPDIR
OBJECTS_DIR = $$TEMPDIR
RCC_DIR = $$TEMPDIR
UI_DIR = $$TEMPDIR/Ui
LIBS += -L$$PRJDIR/xbinINCLUDEPATH += . $$PRJDIR/src $$PRJDIR/3rdparty
It is enabled
On Mon, Sep 5, 2016 at 7:50 PM, amir zamani [email protected]
wrote:it simply says that the toolchain has not configured to compile c++11/14
please make sure CONFIG += c++11 c++14 is enabled in commondir.pri and
you can compile a trivial code like:// shall return QByteArrayauto foo() {
return QString("unicode").toUtf8();
}—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACExC_Fci43gVeOgEL2CMUvzNt_XXoUiks5qnEg4gaJpZM4J0vDx
.
from qhttp.
Related Issues (20)
- QHttpServer listening on path NOT working HOT 2
- server connection time-out of 2minutes HOT 2
- QHttpRequest returns isSuccessful() == true even if the sending part has been interrupted
- data() signal also sends HTML data from multipart/form-data HOT 1
- QHTTP modifies POST boundary HOT 4
- Exmaple for onData handler instead of collectData HOT 1
- Consider moving back to C++11 HOT 2
- Is www root folder supported? HOT 1
- QHttpResponse::allBytesWritten stops emiting when writing HOT 1
- "Saved Reply" is not working
- Base64 Error
- Can't start the QHttpServer outside of main ? HOT 2
- hi.
- how to use Response wait time for receive data from server in client?
- Update the main code with fork improvements
- Socket is not released when HTTP parsing fails HOT 2
- Transfer this repository to a new place for development?
- QHttpClient::request always returns true, even if the passed url is wrong.
- error: incomplete type 'qhttp::server::QHttpResponse' named in nested name specifier HOT 4
- qHttp could implement the standard CORS handling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qhttp.