Solved Unable to build QtHttpServer project.
-
I am unable to build this project https://codereview.qt-project.org/qt-labs/qthttpserver. I am running this on 64 bit windows 10 machine. Do i need to install anything else or set any path??
I am getting these errors:
C:\Users\raldak\Downloads\qthttpserver-master\qthttpserver-master\src\httpserver\qhttpserverresponder.cpp:30:10: fatal error: QtHttpServer/qhttpserverresponder.h: No such file or directory
#include <QtHttpServer/qhttpserverresponder.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\raldak\Downloads\qthttpserver-master\qthttpserver-master\src\httpserver\qhttpserver.cpp:30:10: fatal error: QtHttpServer/qhttpserver.h: No such file or directory
#include <QtHttpServer/qhttpserver.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
In file included from C:\Users\raldak\Downloads\qthttpserver-master\qthttpserver-master\src\httpserver\qhttpserverliterals.cpp:30:
C:\Users\raldak\Downloads\qthttpserver-master\qthttpserver-master\src\httpserver\qhttpserverliterals_p.h:43:10: fatal error: QtHttpServer/qthttpserverglobal.h: No such file or directory
#include <QtHttpServer/qthttpserverglobal.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\raldak\Downloads\qthttpserver-master\qthttpserver-master\src\httpserver\qhttpserverrequest.cpp:30:
C:\Users\raldak\Downloads\qthttpserver-master\qthttpserver-master\src\httpserver\qhttpserverrequest_p.h:33:10: fatal error: QtHttpServer/qhttpserverrequest.h: No such file or directory
#include <QtHttpServer/qhttpserverrequest.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from C:\Users\raldak\Downloads\qthttpserver-master\qthttpserver-master\src\httpserver\qhttpserverrouter.cpp:30:
C:\Users\raldak\Downloads\qthttpserver-master\qthttpserver-master\src\httpserver\qhttpserverrouter_p.h:33:10: fatal error: QtHttpServer/qhttpserverrouter.h: No such file or directory
#include <QtHttpServer/qhttpserverrouter.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
C:\Users\raldak\Downloads\qthttpserver-master\qthttpserver-master\src\httpserver\qhttpserverresponse.cpp:30:10: fatal error: QtHttpServer/qhttpserverresponse.h: No such file or directory
#include <QtHttpServer/qhttpserverresponse.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\raldak\Downloads\qthttpserver-master\qthttpserver-master\src\httpserver\qhttpserverrouterrule.cpp:30:10: fatal error: QtHttpServer/qhttpserverrouterrule.h: No such file or directory
#include <QtHttpServer/qhttpserverrouterrule.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
C:\Users\raldak\Downloads\qthttpserver-master\qthttpserver-master\src\httpserver\qabstracthttpserver.cpp:30:10: fatal error: QtHttpServer/qabstracthttpserver.h: No such file or directory
#include <QtHttpServer/qabstracthttpserver.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
mingw32-make[3]: *** [Makefile.Debug:740: .obj/debug/qhttpserver.o] Error 1
mingw32-make[3]: *** Waiting for unfinished jobs....
mingw32-make[3]: *** [Makefile.Debug:1085: .obj/debug/qhttpserverrouter.o] Error 1
mingw32-make[3]: *** [Makefile.Debug:768: .obj/debug/qhttpserverliterals.o] Error 1
mingw32-make[3]: *** [Makefile.Debug:933: .obj/debug/qhttpserverresponder.o] Error 1
mingw32-make[3]: *** [Makefile.Debug:851: .obj/debug/qhttpserverrequest.o] Error 1
mingw32-make[3]: *** [Makefile.Debug:1154: .obj/debug/qhttpserverrouterrule.o] Error 1
mingw32-make[3]: *** [Makefile.Debug:669: .obj/debug/qabstracthttpserver.o] Error 1
mingw32-make[3]: *** [Makefile.Debug:1017: .obj/debug/qhttpserverresponse.o] Error 1
mingw32-make[3]: Leaving directory 'C:/Users/raldak/Downloads/qthttpserver-master/build-qthttpserver-Desktop_Qt_5_15_1_MinGW_64_bit-Debug/src/httpserver'
mingw32-make[2]: *** [Makefile:45: debug] Error 2
mingw32-make[1]: *** [Makefile:76: sub-httpserver-make_first] Error 2
mingw32-make: *** [Makefile:52: sub-src-make_first] Error 2Please help me out.
-
@R_cts said in Unable to build QtHttpServer project.:
This link is invalid.
What Qt version do you use?
How do you build?
Please provide more information. -
Hi,
Are you trying to build https://code.qt.io/cgit/qt-labs/qthttpserver.git/ ?
In any any case, please provide the information requested by @jsulm.
-
@jsulm I am using 5.15.1 qt version
MinGW 64 bit Desktop kit -
Those headers are created by syncqt.pl - you have to run it during configure / before configure. See also https://forum.qt.io/post/625391 for example.
-
@jsulm https://github.com/qt-labs/qthttpserver this is the link for the code
-
@Christian-Ehrlicher Sorry for the trouble but can you please share any link or steps to run "sync.profile" script on windows machine or do i need to rename it??
-
It should be done automatically, provided you have pearl available. Is it the case ?
-
@SGaist I tried to do the same using command "perl sync.profile" still I am getting the same error
-
@Christian-Ehrlicher I am still getting the same error.
-
Did you start the build from scratch in a clean out of source folder ?
-
@SGaist Yes
-
@SGaist mkspecs/modules-inst/qt_lib_httpserver.pri
mkspecs/modules-inst/qt_lib_httpserver_private.pri
mkspecs/modules/qt_lib_httpserver.pri
mkspecs/modules-inst/qt_lib_sslserver.pri
mkspecs/modules-inst/qt_lib_sslserver_private.pri
mkspecs/modules/qt_lib_sslserver.pri
Can above lines from Makefile be a problem.......as they don't have path with in C drive??? -
@R_cts Do i need to install QT and open ssl again?
-
@R_cts said in Unable to build QtHttpServer project.:
@SGaist mkspecs/modules-inst/qt_lib_httpserver.pri
mkspecs/modules-inst/qt_lib_httpserver_private.pri
mkspecs/modules/qt_lib_httpserver.pri
mkspecs/modules-inst/qt_lib_sslserver.pri
mkspecs/modules-inst/qt_lib_sslserver_private.pri
mkspecs/modules/qt_lib_sslserver.pri
Can above lines from Makefile be a problem.......as they don't have path with in C drive???I do not understand what you are asking with regard to these files since they are relative paths.
How are they related to the issue at hand ?
-
@SGaist 23:05:34: Starting C:\Users\ServerAdmin\Documents\rd_dev\build-qthttpserver-Desktop_Qt_5_15_1_MinGW_32_bit-Debug\tests\auto\qhttpserver\debug\tst_qhttpserver.exe ...
23:05:34: Failed to start program. Path or permissions wrong?
23:05:34: C:\Users\ServerAdmin\Documents\rd_dev\build-qthttpserver-Desktop_Qt_5_15_1_MinGW_32_bit-Debug\tests\auto\qhttpserver\debug\tst_qhttpserver.exe exited with code -1
23:05:34: The process failed to start. Either the invoked program "C:\Users\ServerAdmin\Documents\rd_dev\build-qthttpserver-Desktop_Qt_5_15_1_MinGW_32_bit-Debug\tests\auto\qhttpserver\debug\tst_qhttpserver.exe" is missing, or you may have insufficient permissions to invoke the program.Now i am getting this error.
-
@R_cts said in Unable to build QtHttpServer project.:
C:\Users\ServerAdmin\Documents\rd_dev\build-qthttpserver-Desktop_Qt_5_15_1_MinGW_32_bit-Debug\tests\auto\qhttpserver\debug\tst_qhttpserver.exe
So, does this file exist?
-
@jsulm No, C:\Users\ServerAdmin\Documents\rd_dev\build-qthttpserver-Desktop_Qt_5_15_1_MinGW_32_bit-Debug\tests\auto\qhttpserver\debug......this folder is empty, i have checked the permission also, I have full control in "rd_dev" folder
-
@R_cts Did you build your app? If the executable is not there then you did not.
-
@jsulm That is my issue actually , I am unable to build this project
Right now I am getting the following error
C:\Users\ServerAdmin\Documents\rd_dev\QTHttpServer\src\httpserver\qabstracthttpserver.cpp:38:10: fatal error: private/qabstracthttpserver_p.h: No such file or directory
#include "private/qabstracthttpserver_p.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
mingw32-make[3]: *** [Makefile.Debug:796: .obj/debug/qabstracthttpserver.o] Error 1
mingw32-make[3]: *** Waiting for unfinished jobs....
C:\Users\ServerAdmin\Documents\rd_dev\QTHttpServer\src\httpserver\qhttpserver.cpp:39:10: fatal error: private/qhttpserver_p.h: No such file or directory
#include <private/qhttpserver_p.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
mingw32-make[3]: *** [Makefile.Debug:897: .obj/debug/qhttpserver.o] Error 1
mingw32-make[3]: Leaving directory 'C:/Users/ServerAdmin/Documents/rd_dev/build-qthttpserver-Desktop_Qt_5_15_1_MinGW_64_bit-Debug/src/httpserver'
mingw32-make[2]: *** [Makefile:45: debug] Error 2
mingw32-make[2]: Leaving directory 'C:/Users/ServerAdmin/Documents/rd_dev/build-qthttpserver-Desktop_Qt_5_15_1_MinGW_64_bit-Debug/src/httpserver'
mingw32-make[1]: *** [Makefile:76: sub-httpserver-make_first] Error 2
mingw32-make[1]: Leaving directory 'C:/Users/ServerAdmin/Documents/rd_dev/build-qthttpserver-Desktop_Qt_5_15_1_MinGW_64_bit-Debug/src'
mingw32-make: *** [Makefile:52: sub-src-make_first] Error 2
23:48:35: The process "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project qthttpserver (kit: Desktop Qt 5.15.1 MinGW 64-bit)
When executing step "Make"