Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Unable to build QtHttpServer project.
Qt 6.11 is out! See what's new in the release blog

Unable to build QtHttpServer project.

Scheduled Pinned Locked Moved Solved General and Desktop
58 Posts 5 Posters 8.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jsulmJ jsulm

    @R_cts What error? Please post full output - how else can anybody say why the binary is not created?

    R Offline
    R Offline
    R_cts
    wrote on last edited by
    #46

    @jsulm
    04:28:32: Starting: "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" -j8
    C:/Qt/Tools/mingw810_64/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Users/ServerAdmin/build-qthttpserver-Desktop_Qt_5_15_2_MinGW_64_bit-Debug/examples/httpserver/simple'
    g++ -c -fno-keep-inline-dllexport -g -fno-exceptions -Wall -Wextra -Wextra -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_HTTPSERVER_LIB -DQT_SSLSERVER_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -IC:\Users\ServerAdmin\qthttpserver\examples\httpserver\simple -I. -I......\include -I......\include\QtHttpServer -I......\include\QtSslServer -IC:\Qt\5.15.2\mingw81_64\include -IC:\Qt\5.15.2\mingw81_64\include\QtWebSockets -IC:\Qt\5.15.2\mingw81_64\include\QtNetwork -IC:\Qt\5.15.2\mingw81_64\include\QtConcurrent -IC:\Qt\5.15.2\mingw81_64\include\QtCore -I.moc\debug -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.7.25-winx64\include -IC:\Utils\postgresql\pgsql\include -IC:\Qt\5.15.2\mingw81_64\mkspecs\win32-g++ -o .obj\debug\main.o C:\Users\ServerAdmin\qthttpserver\examples\httpserver\simple\main.cpp
    C:\Qt\5.15.2\mingw81_64\bin\rcc.exe -name assets C:\Users\ServerAdmin\qthttpserver\examples\httpserver\simple\assets.qrc -o .rcc\debug\qrc_assets.cpp
    g++ -c -fno-keep-inline-dllexport -g -fno-exceptions -Wall -Wextra -Wextra -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_HTTPSERVER_LIB -DQT_SSLSERVER_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -IC:\Users\ServerAdmin\qthttpserver\examples\httpserver\simple -I. -I......\include -I......\include\QtHttpServer -I......\include\QtSslServer -IC:\Qt\5.15.2\mingw81_64\include -IC:\Qt\5.15.2\mingw81_64\include\QtWebSockets -IC:\Qt\5.15.2\mingw81_64\include\QtNetwork -IC:\Qt\5.15.2\mingw81_64\include\QtConcurrent -IC:\Qt\5.15.2\mingw81_64\include\QtCore -I.moc\debug -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.7.25-winx64\include -IC:\Utils\postgresql\pgsql\include -IC:\Qt\5.15.2\mingw81_64\mkspecs\win32-g++ -o .obj\debug\qrc_assets.o .rcc\debug\qrc_assets.cpp
    g++ -Wl,-subsystem,console -s -o debug\simple.exe .obj/debug/main.o .obj/debug/qrc_assets.o -LC:\openssl\lib -LC:\Utils\my_sql\mysql-5.7.25-winx64\lib -LC:\Utils\postgresql\pgsql\lib C:\Users\ServerAdmin\build-qthttpserver-Desktop_Qt_5_15_2_MinGW_64_bit-Debug\lib\libQt5HttpServer.a C:\Users\ServerAdmin\build-qthttpserver-Desktop_Qt_5_15_2_MinGW_64_bit-Debug\lib\libQt5SslServer.a C:\Qt\5.15.2\mingw81_64\lib\libQt5WebSockets.a C:\Qt\5.15.2\mingw81_64\lib\libQt5Network.a C:\Qt\5.15.2\mingw81_64\lib\libQt5Concurrent.a C:\Qt\5.15.2\mingw81_64\lib\libQt5Core.a
    mingw32-make[1]: Leaving directory 'C:/Users/ServerAdmin/build-qthttpserver-Desktop_Qt_5_15_2_MinGW_64_bit-Debug/examples/httpserver/simple'
    04:28:44: The process "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" exited normally.

    jsulmJ 1 Reply Last reply
    0
    • R R_cts

      @jsulm
      04:28:32: Starting: "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" -j8
      C:/Qt/Tools/mingw810_64/bin/mingw32-make -f Makefile.Debug
      mingw32-make[1]: Entering directory 'C:/Users/ServerAdmin/build-qthttpserver-Desktop_Qt_5_15_2_MinGW_64_bit-Debug/examples/httpserver/simple'
      g++ -c -fno-keep-inline-dllexport -g -fno-exceptions -Wall -Wextra -Wextra -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_HTTPSERVER_LIB -DQT_SSLSERVER_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -IC:\Users\ServerAdmin\qthttpserver\examples\httpserver\simple -I. -I......\include -I......\include\QtHttpServer -I......\include\QtSslServer -IC:\Qt\5.15.2\mingw81_64\include -IC:\Qt\5.15.2\mingw81_64\include\QtWebSockets -IC:\Qt\5.15.2\mingw81_64\include\QtNetwork -IC:\Qt\5.15.2\mingw81_64\include\QtConcurrent -IC:\Qt\5.15.2\mingw81_64\include\QtCore -I.moc\debug -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.7.25-winx64\include -IC:\Utils\postgresql\pgsql\include -IC:\Qt\5.15.2\mingw81_64\mkspecs\win32-g++ -o .obj\debug\main.o C:\Users\ServerAdmin\qthttpserver\examples\httpserver\simple\main.cpp
      C:\Qt\5.15.2\mingw81_64\bin\rcc.exe -name assets C:\Users\ServerAdmin\qthttpserver\examples\httpserver\simple\assets.qrc -o .rcc\debug\qrc_assets.cpp
      g++ -c -fno-keep-inline-dllexport -g -fno-exceptions -Wall -Wextra -Wextra -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_HTTPSERVER_LIB -DQT_SSLSERVER_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -IC:\Users\ServerAdmin\qthttpserver\examples\httpserver\simple -I. -I......\include -I......\include\QtHttpServer -I......\include\QtSslServer -IC:\Qt\5.15.2\mingw81_64\include -IC:\Qt\5.15.2\mingw81_64\include\QtWebSockets -IC:\Qt\5.15.2\mingw81_64\include\QtNetwork -IC:\Qt\5.15.2\mingw81_64\include\QtConcurrent -IC:\Qt\5.15.2\mingw81_64\include\QtCore -I.moc\debug -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.7.25-winx64\include -IC:\Utils\postgresql\pgsql\include -IC:\Qt\5.15.2\mingw81_64\mkspecs\win32-g++ -o .obj\debug\qrc_assets.o .rcc\debug\qrc_assets.cpp
      g++ -Wl,-subsystem,console -s -o debug\simple.exe .obj/debug/main.o .obj/debug/qrc_assets.o -LC:\openssl\lib -LC:\Utils\my_sql\mysql-5.7.25-winx64\lib -LC:\Utils\postgresql\pgsql\lib C:\Users\ServerAdmin\build-qthttpserver-Desktop_Qt_5_15_2_MinGW_64_bit-Debug\lib\libQt5HttpServer.a C:\Users\ServerAdmin\build-qthttpserver-Desktop_Qt_5_15_2_MinGW_64_bit-Debug\lib\libQt5SslServer.a C:\Qt\5.15.2\mingw81_64\lib\libQt5WebSockets.a C:\Qt\5.15.2\mingw81_64\lib\libQt5Network.a C:\Qt\5.15.2\mingw81_64\lib\libQt5Concurrent.a C:\Qt\5.15.2\mingw81_64\lib\libQt5Core.a
      mingw32-make[1]: Leaving directory 'C:/Users/ServerAdmin/build-qthttpserver-Desktop_Qt_5_15_2_MinGW_64_bit-Debug/examples/httpserver/simple'
      04:28:44: The process "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" exited normally.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #47

      @R_cts said in Unable to build QtHttpServer project.:

      -o debug\simple.exe

      Looks good, there should be simple.exe inside debug directory

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      0
      • jsulmJ jsulm

        @R_cts said in Unable to build QtHttpServer project.:

        -o debug\simple.exe

        Looks good, there should be simple.exe inside debug directory

        R Offline
        R Offline
        R_cts
        wrote on last edited by
        #48

        @jsulm No debug folder is empty

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #49

          What do you have in that folder ?

          @R_cts said in Unable to build QtHttpServer project.:

          C:/Users/ServerAdmin/build-qthttpserver-Desktop_Qt_5_15_2_MinGW_64_bit-Debug/examples/httpserver/simple

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          R 2 Replies Last reply
          0
          • SGaistS SGaist

            What do you have in that folder ?

            @R_cts said in Unable to build QtHttpServer project.:

            C:/Users/ServerAdmin/build-qthttpserver-Desktop_Qt_5_15_2_MinGW_64_bit-Debug/examples/httpserver/simple

            R Offline
            R Offline
            R_cts
            wrote on last edited by
            #50

            @SGaist Nothing , its empty.

            1 Reply Last reply
            0
            • SGaistS SGaist

              What do you have in that folder ?

              @R_cts said in Unable to build QtHttpServer project.:

              C:/Users/ServerAdmin/build-qthttpserver-Desktop_Qt_5_15_2_MinGW_64_bit-Debug/examples/httpserver/simple

              R Offline
              R Offline
              R_cts
              wrote on last edited by
              #51

              @SGaist I am compiling same program in linux machine also, in that machine......I am getting error "error while loading shared libraries: libQt5HttpServer.so.5: cannot open shared object file: No such file or directory".

              JonBJ 1 Reply Last reply
              0
              • R R_cts

                @SGaist I am compiling same program in linux machine also, in that machine......I am getting error "error while loading shared libraries: libQt5HttpServer.so.5: cannot open shared object file: No such file or directory".

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by
                #52

                @R_cts
                Start by locating the file, and running ldd on it. If it has any missing dependencies this is often reported as "cannot open, no such file" on the original library file. Otherwise your system is not set to locate wherever you have actually put ibQt5HttpServer.so.5, or it doesn't exist.

                R 1 Reply Last reply
                0
                • JonBJ JonB

                  @R_cts
                  Start by locating the file, and running ldd on it. If it has any missing dependencies this is often reported as "cannot open, no such file" on the original library file. Otherwise your system is not set to locate wherever you have actually put ibQt5HttpServer.so.5, or it doesn't exist.

                  R Offline
                  R Offline
                  R_cts
                  wrote on last edited by
                  #53

                  @JonB Running ldd on libQt5HttpServer.so.5 I got "
                  /home/cts/Desktop/Test/build-qthttpserver-Desktop_Qt_5_15_1_GCC_64bit-Debug/lib/libQt5HttpServer.so.5: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5.15' not found (required by /home/cts/Desktop/Test/build-qthttpserver-Desktop_Qt_5_15_1_GCC_64bit-Debug/lib/libQt5HttpServer.so.5) /home/cts/Desktop/Test/build-qthttpserver-Desktop_Qt_5_15_1_GCC_64bit-Debug/lib/libQt5HttpServer.so.5: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5.15' not found (required by /home/cts/Desktop/Test/build-qthttpserver-Desktop_Qt_5_15_1_GCC_64bit-Debug/lib/libQt5SslServer.so.5)
                  linux-vdso.so.1 (0x00007ffee75fd000)
                  libQt5SslServer.so.5 => /home/cts/Desktop/Test/build-qthttpserver-Desktop_Qt_5_15_1_GCC_64bit-Debug/lib/libQt5SslServer.so.5 (0x00007f0a04316000)
                  libQt5WebSockets.so.5 => not found
                  libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f0a04141000)
                  libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f0a03bf8000)
                  libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f0a03a17000)
                  libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0a03825000)
                  libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0a03800000)
                  libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f0a037e4000)
                  libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0a037de000)
                  libicui18n.so.66 => /usr/lib/x86_64-linux-gnu/libicui18n.so.66 (0x00007f0a034df000)
                  libicuuc.so.66 => /usr/lib/x86_64-linux-gnu/libicuuc.so.66 (0x00007f0a032f9000)
                  libpcre2-16.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f0a03276000)
                  libdouble-conversion.so.3 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007f0a0325e000)
                  libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f0a03135000)
                  libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0a02fe6000)
                  libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0a02fcb000)
                  /lib64/ld-linux-x86-64.so.2 (0x00007f0a0437a000)
                  libicudata.so.66 => /usr/lib/x86_64-linux-gnu/libicudata.so.66 (0x00007f0a0150a000)
                  libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f0a01495000)

                  "

                  JonBJ 1 Reply Last reply
                  0
                  • R R_cts

                    @JonB Running ldd on libQt5HttpServer.so.5 I got "
                    /home/cts/Desktop/Test/build-qthttpserver-Desktop_Qt_5_15_1_GCC_64bit-Debug/lib/libQt5HttpServer.so.5: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5.15' not found (required by /home/cts/Desktop/Test/build-qthttpserver-Desktop_Qt_5_15_1_GCC_64bit-Debug/lib/libQt5HttpServer.so.5) /home/cts/Desktop/Test/build-qthttpserver-Desktop_Qt_5_15_1_GCC_64bit-Debug/lib/libQt5HttpServer.so.5: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5.15' not found (required by /home/cts/Desktop/Test/build-qthttpserver-Desktop_Qt_5_15_1_GCC_64bit-Debug/lib/libQt5SslServer.so.5)
                    linux-vdso.so.1 (0x00007ffee75fd000)
                    libQt5SslServer.so.5 => /home/cts/Desktop/Test/build-qthttpserver-Desktop_Qt_5_15_1_GCC_64bit-Debug/lib/libQt5SslServer.so.5 (0x00007f0a04316000)
                    libQt5WebSockets.so.5 => not found
                    libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f0a04141000)
                    libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f0a03bf8000)
                    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f0a03a17000)
                    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0a03825000)
                    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0a03800000)
                    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f0a037e4000)
                    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0a037de000)
                    libicui18n.so.66 => /usr/lib/x86_64-linux-gnu/libicui18n.so.66 (0x00007f0a034df000)
                    libicuuc.so.66 => /usr/lib/x86_64-linux-gnu/libicuuc.so.66 (0x00007f0a032f9000)
                    libpcre2-16.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f0a03276000)
                    libdouble-conversion.so.3 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007f0a0325e000)
                    libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f0a03135000)
                    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0a02fe6000)
                    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0a02fcb000)
                    /lib64/ld-linux-x86-64.so.2 (0x00007f0a0437a000)
                    libicudata.so.66 => /usr/lib/x86_64-linux-gnu/libicudata.so.66 (0x00007f0a0150a000)
                    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f0a01495000)

                    "

                    JonBJ Offline
                    JonBJ Offline
                    JonB
                    wrote on last edited by
                    #54

                    @R_cts
                    So you have problems to address from that output.

                    R 1 Reply Last reply
                    0
                    • JonBJ JonB

                      @R_cts
                      So you have problems to address from that output.

                      R Offline
                      R Offline
                      R_cts
                      wrote on last edited by
                      #55

                      @JonB What i need to do?

                      JonBJ 1 Reply Last reply
                      0
                      • R R_cts

                        @JonB What i need to do?

                        JonBJ Offline
                        JonBJ Offline
                        JonB
                        wrote on last edited by
                        #56

                        @R_cts
                        Deal with all the not founds! But I'm afraid I know they are at issue but not why they are at issue in your build situation. If you cannot figure yourself, you'll have to await a build expert here to have a look at the output.

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #57

                          Did you call make install after building the module ?

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          R 1 Reply Last reply
                          1
                          • SGaistS SGaist

                            Did you call make install after building the module ?

                            R Offline
                            R Offline
                            R_cts
                            wrote on last edited by
                            #58

                            @SGaist Thankyou so much it worked and i just need to copy the dll files at the debug folder of simple and afterrequest.

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved