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. Static compile error Qt5.12.0: bootstrap-private

Static compile error Qt5.12.0: bootstrap-private

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 7 Posters 6.2k Views
  • 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 Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Did you download the sources using the MaintenanceTool ?

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

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dalishi
      wrote on last edited by dalishi
      #3

      I downloaded the source using qt-unified-linux-x64-3.0.6-online.run.

      Btw, deleting the -prefix option in configure works just fine. Weird.

      T 1 Reply Last reply
      0
      • D dalishi

        I downloaded the source using qt-unified-linux-x64-3.0.6-online.run.

        Btw, deleting the -prefix option in configure works just fine. Weird.

        T Offline
        T Offline
        Taytoo
        wrote on last edited by Taytoo
        #4

        @dalishi Were you able to solve it? I've run into same issue. I'm trying on windows though.

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

          @Taytoo, @dalishi removed the prefix option from its configure options.

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

          T 1 Reply Last reply
          0
          • SGaistS SGaist

            @Taytoo, @dalishi removed the prefix option from its configure options.

            T Offline
            T Offline
            Taytoo
            wrote on last edited by
            #6

            @SGaist But then it will install Qt to "C:\Qt\Qt-5.12.0", instead of my preference "C:\Qt\Static\5.12.0"?

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

              You asked what @dalishi did, I didn't say it would be the best solution. As for the default prefix used, I don't currently know.

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

              D 1 Reply Last reply
              0
              • T Taytoo

                @SGaist But then it will install Qt to "C:\Qt\Qt-5.12.0", instead of my preference "C:\Qt\Static\5.12.0"?

                D Offline
                D Offline
                dalishi
                wrote on last edited by dalishi
                #8

                @Taytoo Hi Sorry i didnot see your message. I cannot remember what I have tried last time but I do remember sometimes you need to run the configure from /Src otherwise certain modules cannot be found. But this might not be the case for your Qt version. I'm not sure about Windows. I can only list the steps that worked for me fyi. I also found this tutorial quite useful. It also talks about windows and most important with troubleshootings.

                For my case, Qt 5.12.0 on Ubuntu16.04.3.

                1. Install Qt from online installer in the standard way. Now you have your Qt in a home folder.
                2. Build static Qt libraries:
                $ mkdir ~/qt5-static-build  // where you want to put your static Qt libs
                $ cd ~/qt5-static-build       
                $ mkdir build               // prefer shadow build
                $ mkdir install             // where you want to install your static Qt libs
                $ cd build
                $ ~/Qt/5.12.0/Src/configure -static -release -prefix /path-to/qt5-static-build/install -skip webengine -nomake tests -nomake examples
                $ make -j8
                $ make install              // Compiled static Qt libs will be installed /path-to/qt5-static-build/install
                
                1. Link you application to static Qt libs
                $ cd app-source-code/         // Usually this is your Qt project folder
                $ mkdir static-build          // Shadow build for your app
                $ cd static-build 
                ~/qt5-static-build/install/bin/qmake -config release ..   // Just make sure the qmake you used is the one we installed in Step 2
                $ make
                

                This works for me though and hope this helps. Cheeers.

                1 Reply Last reply
                1
                • SGaistS SGaist

                  You asked what @dalishi did, I didn't say it would be the best solution. As for the default prefix used, I don't currently know.

                  D Offline
                  D Offline
                  dalishi
                  wrote on last edited by
                  #9

                  @SGaist Hi think this topic can be closed as resolved.

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    bogdan_bdg
                    wrote on last edited by bogdan_bdg
                    #10

                    This happened to me when I - the same as you - tried to build and install in the same directory. IOW if the -prefix pointed to the directory I issued the configure from. After separating build and install directories the error didn't show up anymore.

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      ananomous
                      wrote on last edited by
                      #11

                      Hi , I try to compile Qt5.7.0 on ubuntu 20.04 for cross compilation platform, using following command:

                      ./configure -release -prefix /usr/local/Qt-5.7.0 -opensource -confirm-license -nomake examples -fontconfig -skip qtwayland -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip canvas3d
                      -skip qtgamepad -skip qtlocation -skip qtmacextras -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtdatavis3d -skip qtconnectivity
                      -no-openssl -skip qtdeclarative -qreal float -skip qttools

                      Error :

                      Project ERROR: Unknown module(s) in QT: bootstrap-private
                      make[1]: *** [Makefile:114: sub-rcc-make_first] Error 3
                      make[1]: *** Waiting for unfinished jobs....
                      Project ERROR: Unknown module(s) in QT: bootstrap-private
                      make[1]: *** [Makefile:89: sub-moc-make_first] Error 3

                      Any help?

                      JonBJ 1 Reply Last reply
                      0
                      • A ananomous

                        Hi , I try to compile Qt5.7.0 on ubuntu 20.04 for cross compilation platform, using following command:

                        ./configure -release -prefix /usr/local/Qt-5.7.0 -opensource -confirm-license -nomake examples -fontconfig -skip qtwayland -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip canvas3d
                        -skip qtgamepad -skip qtlocation -skip qtmacextras -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtdatavis3d -skip qtconnectivity
                        -no-openssl -skip qtdeclarative -qreal float -skip qttools

                        Error :

                        Project ERROR: Unknown module(s) in QT: bootstrap-private
                        make[1]: *** [Makefile:114: sub-rcc-make_first] Error 3
                        make[1]: *** Waiting for unfinished jobs....
                        Project ERROR: Unknown module(s) in QT: bootstrap-private
                        make[1]: *** [Makefile:89: sub-moc-make_first] Error 3

                        Any help?

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

                        @ananomous
                        Since you are compiling static [I think that is relevant, but anyway] did you look at https://bugreports.qt.io/browse/QTBUG-71540 ? Is that somehow relevant to your 5.7? Actually I'm not sure it is, I don't you're using -prefix, but worth a look anyway, maybe you need to?

                        A 1 Reply Last reply
                        0
                        • JonBJ JonB

                          @ananomous
                          Since you are compiling static [I think that is relevant, but anyway] did you look at https://bugreports.qt.io/browse/QTBUG-71540 ? Is that somehow relevant to your 5.7? Actually I'm not sure it is, I don't you're using -prefix, but worth a look anyway, maybe you need to?

                          A Offline
                          A Offline
                          ananomous
                          wrote on last edited by
                          #13

                          @JonB
                          I try without prefix but having same results.

                          JonBJ C 2 Replies Last reply
                          0
                          • A ananomous

                            @JonB
                            I try without prefix but having same results.

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

                            @ananomous
                            If you say so. It seems to me that post says you do need it, just set to something different. But you probably know best.

                            1 Reply Last reply
                            0
                            • A ananomous

                              @JonB
                              I try without prefix but having same results.

                              C Offline
                              C Offline
                              chchwy
                              wrote on last edited by chchwy
                              #15

                              @ananomous

                              1. Do Not run configure directly in the src directory (e.g., run ./configure), run it in a separate build directory.
                              2. Make sure your -prefix "install/path" is different from your build directory, otherwise you will encounter this issue.

                              The typical steps to build Qt

                              $ mkdir build
                              $ cd build
                              $ ~/your/qt/src/configure -prefix "~/your/qt/install/path" -other-options...
                              $ make
                              $ make install
                              

                              Your

                              1. source directory
                              2. build directory (your pwd)
                              3. install directory (assigned with -prefix)

                              must be 3 different directories.

                              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