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. [Solved]Building custom Qt from source
Forum Updated to NodeBB v4.3 + New Features

[Solved]Building custom Qt from source

Scheduled Pinned Locked Moved General and Desktop
34 Posts 3 Posters 16.8k Views 4 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.
  • SGaistS SGaist

    Just C:\OpenSSL_win32\include or C:\OpenSSL_win32\include\openssl ?

    A Offline
    A Offline
    astodolski
    wrote on last edited by
    #5

    @SGaist

    Not exactly but similar. The include is: C:\openssl-1.0.2d\include\openssl

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

      Then the path is one level too deep. You need to use C:\openssl-1.0.2d\include\

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

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Then the path is one level too deep. You need to use C:\openssl-1.0.2d\include\

        A Offline
        A Offline
        astodolski
        wrote on last edited by astodolski
        #7

        @SGaist
        Ok, I actually had one level down as you shown and the error persists. That is, ...\include\ and ...\include\openssl. Both were tried and yet had errors:
        fatal error C1083: Cannot open include file: 'openssl/ssl.h': No such file or directory (access\qnetworkreplyhttpimpl.cpp)

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

          Might be a silly question but did you pass the corresponding -I and -L arguments to configure ?

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

          A 1 Reply Last reply
          0
          • SGaistS SGaist

            Might be a silly question but did you pass the corresponding -I and -L arguments to configure ?

            A Offline
            A Offline
            astodolski
            wrote on last edited by
            #9

            @SGaist
            Yes. A part of the configure options is shown below:
            -ssl -openssl -I C:\openssl-1.0.2d\include -L C:\openssl-1.0.2d\lib

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

              When doing the -I and -L corrections, did you do it from a clean state ?

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

              A 1 Reply Last reply
              0
              • SGaistS SGaist

                When doing the -I and -L corrections, did you do it from a clean state ?

                A Offline
                A Offline
                astodolski
                wrote on last edited by
                #11

                @SGaist
                Meaning a nmake clean?

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

                  No: confclean.

                  Better yet: use a shadow build, this way you can keep your sources clean and just nuke the thing if you need to restart.

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

                  A 1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    astodolski
                    wrote on last edited by astodolski
                    #13

                    C:\Qt\qt5>nmake confclean

                    Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
                    Copyright (C) Microsoft Corporation. All rights reserved.

                    NMAKE : fatal error U1073: don't know how to make 'confclean'
                    Stop.

                    Perhaps confclean is not a valid target in any of the created Makefiles?

                    1 Reply Last reply
                    0
                    • JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #14

                      confclean actually doesn't exist in Qt 5. IIRC, it was hard to make it work with Qt's modular structure. See https://bugreports.qt.io/browse/QTBUG-34304 for a discussion.

                      Did you get the source code from git? Or did you download the source package?

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      A 1 Reply Last reply
                      0
                      • JKSHJ JKSH

                        confclean actually doesn't exist in Qt 5. IIRC, it was hard to make it work with Qt's modular structure. See https://bugreports.qt.io/browse/QTBUG-34304 for a discussion.

                        Did you get the source code from git? Or did you download the source package?

                        A Offline
                        A Offline
                        astodolski
                        wrote on last edited by
                        #15

                        @JKSH
                        code.qt.io/qt using git

                        1 Reply Last reply
                        0
                        • SGaistS SGaist

                          No: confclean.

                          Better yet: use a shadow build, this way you can keep your sources clean and just nuke the thing if you need to restart.

                          A Offline
                          A Offline
                          astodolski
                          wrote on last edited by
                          #16

                          @SGaist said:

                          No: confclean.

                          Reason for using clean instead of confclean referenced here thanks to @JKSH

                          1 Reply Last reply
                          0
                          • JKSHJ Offline
                            JKSHJ Offline
                            JKSH
                            Moderators
                            wrote on last edited by
                            #17

                            Assuming that you checked out the code to C:\Qt\git, use the following commands to clean your source tree:

                            > cd C:\Qt\git\
                            > git clean -dfx
                            > git submodule foreach "git clean -dfx"
                            

                            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                            A 2 Replies Last reply
                            0
                            • JKSHJ JKSH

                              Assuming that you checked out the code to C:\Qt\git, use the following commands to clean your source tree:

                              > cd C:\Qt\git\
                              > git clean -dfx
                              > git submodule foreach "git clean -dfx"
                              
                              A Offline
                              A Offline
                              astodolski
                              wrote on last edited by
                              #18

                              @JKSH said:

                              Assuming that you checked out the code to C:\Qt\git, use the following commands to clean your source tree:

                              > cd C:\Qt\git\
                              > git clean -dfx
                              > git submodule foreach "git clean -dfx"
                              

                              So this is in regards to making a correction and perform a re-build? I didn't do that for the initial build.

                              From memory, I do a checkout, init-repository --no-webkit, and then perform the configure step and finally the call to nmake.

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

                                My bad, old reflex from Qt 4. However, I'd recommend an out of source build, so you don't have to clean anything, just nuke the current build folder content and restart

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

                                A 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  My bad, old reflex from Qt 4. However, I'd recommend an out of source build, so you don't have to clean anything, just nuke the current build folder content and restart

                                  A Offline
                                  A Offline
                                  astodolski
                                  wrote on last edited by
                                  #20

                                  @SGaist said:

                                  I'd recommend an out of source build, so you don't have to clean anything

                                  Hi,

                                  Not sure I understand what "out of source" means. I get the part about nuke the current folder. If what you mean is just delete the build folder and start again, then I must ask, does not doing a clean solve that?

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

                                    It literally means build from another folder outside of Qt's source tree so basically:

                                    cd qt_build
                                    C:\Path\to\Qt\configure 
                                    

                                    Indeed, the result is pretty much the same however It's generally faster (at least for me until now) to delete a folder than to recursively go through all Qt's modules and clean one after the other.

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

                                    A 2 Replies Last reply
                                    1
                                    • SGaistS SGaist

                                      It literally means build from another folder outside of Qt's source tree so basically:

                                      cd qt_build
                                      C:\Path\to\Qt\configure 
                                      

                                      Indeed, the result is pretty much the same however It's generally faster (at least for me until now) to delete a folder than to recursively go through all Qt's modules and clean one after the other.

                                      A Offline
                                      A Offline
                                      astodolski
                                      wrote on last edited by
                                      #22

                                      @SGaist
                                      Understood. Issue still dogging me though as to why it can't find the include files for openssl

                                      1 Reply Last reply
                                      0
                                      • A astodolski

                                        @JKSH said:

                                        Assuming that you checked out the code to C:\Qt\git, use the following commands to clean your source tree:

                                        > cd C:\Qt\git\
                                        > git clean -dfx
                                        > git submodule foreach "git clean -dfx"
                                        

                                        So this is in regards to making a correction and perform a re-build? I didn't do that for the initial build.

                                        From memory, I do a checkout, init-repository --no-webkit, and then perform the configure step and finally the call to nmake.

                                        JKSHJ Offline
                                        JKSHJ Offline
                                        JKSH
                                        Moderators
                                        wrote on last edited by
                                        #23

                                        @astodolski said:

                                        So this is in regards to making a correction and perform a re-build?

                                        Yes.

                                        I didn't do that for the initial build.

                                        Before your initial build, your folders were already clean, so you didn't need to clean them.

                                        @SGaist said:

                                        I'd recommend an out of source build, so you don't have to clean anything, just nuke the current build folder content and restart

                                        Yes, that sounds very useful and it works for both git and non-git sources, I'll need to try this the next time I build!

                                        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

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

                                          @astodolski
                                          Can you share the full configure line you are using and the build setup summary ?

                                          @JKSH
                                          Out of source is just so great, you should ;)

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

                                          A 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