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
Forum Updated to NodeBB v4.3 + New Features

Static compile error Qt5.12.0: bootstrap-private

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 7 Posters 6.2k 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.
  • D Offline
    D Offline
    dalishi
    wrote on 14 Jan 2019, 10:04 last edited by
    #1

    Hi, I try to compile Qt5.12.0 into static lib using the following commands:

    $ mkdir qt5.12.0-static-build
    $ cd qt5.12.0-static-build
    $ ~/Qt/5.12.0/Src/configure -static -prefix ~/qt5.12.0-static-build -fontconfig -nomake tests -nomake examples
    $ make 
    

    Error:

    make[3]: Leaving directory '/home/desaysv-zq/qt5.12.0-static-build/qtbase/src/tools/bootstrap'
    cd tools/moc/ && ( test -e Makefile || /home/desaysv-zq/qt5.12.0-static-build/qtbase/bin/qmake -o Makefile /home/desaysv-zq/Qt/5.12.0/Src/qtbase/src/tools/moc/moc.pro ) && make -f Makefile 
    Project ERROR: Unknown module(s) in QT: bootstrap-private
    Makefile:94: recipe for target 'sub-moc-make_first' failed
    make[2]: *** [sub-moc-make_first] Error 3
    make[2]: Leaving directory '/home/desaysv-zq/qt5.12.0-static-build/qtbase/src'
    Makefile:48: recipe for target 'sub-src-make_first' failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/desaysv-zq/qt5.12.0-static-build/qtbase'
    Makefile:83: recipe for target 'module-qtbase-make_first' failed
    make: *** [module-qtbase-make_first] Error 2
    

    I'm running on Ubuntu16.04.

    Any help?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 14 Jan 2019, 22:49 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 15 Jan 2019, 02:48 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 29 Jan 2019, 22:27
        0
        • D dalishi
          15 Jan 2019, 02:48

          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 29 Jan 2019, 22:27 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
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 29 Jan 2019, 22:28 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 29 Jan 2019, 23:07
            0
            • S SGaist
              29 Jan 2019, 22:28

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

              T Offline
              T Offline
              Taytoo
              wrote on 29 Jan 2019, 23:07 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 15 Apr 2019, 09:51
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 29 Jan 2019, 23:32 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 15 Apr 2019, 09:52
                0
                • T Taytoo
                  29 Jan 2019, 23:07

                  @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 15 Apr 2019, 09:51 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
                  • S SGaist
                    29 Jan 2019, 23:32

                    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 15 Apr 2019, 09:52 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 29 Apr 2021, 07:51 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 21 Feb 2023, 10:19 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 21 Feb 2023, 10:45
                        0
                        • A ananomous
                          21 Feb 2023, 10:19

                          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 Online
                          JonBJ Online
                          JonB
                          wrote on 21 Feb 2023, 10:45 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 21 Feb 2023, 12:17
                          0
                          • JonBJ JonB
                            21 Feb 2023, 10:45

                            @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 21 Feb 2023, 12:17 last edited by
                            #13

                            @JonB
                            I try without prefix but having same results.

                            JonBJ C 2 Replies Last reply 21 Feb 2023, 12:33
                            0
                            • A ananomous
                              21 Feb 2023, 12:17

                              @JonB
                              I try without prefix but having same results.

                              JonBJ Online
                              JonBJ Online
                              JonB
                              wrote on 21 Feb 2023, 12:33 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
                                21 Feb 2023, 12:17

                                @JonB
                                I try without prefix but having same results.

                                C Offline
                                C Offline
                                chchwy
                                wrote on 3 Mar 2023, 06:09 last edited by chchwy 3 Mar 2023, 06:11
                                #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