Static compile error Qt5.12.0: bootstrap-private
-
Hi,
Did you download the sources using the MaintenanceTool ?
-
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.
-
@SGaist But then it will install Qt to "C:\Qt\Qt-5.12.0", instead of my preference "C:\Qt\Static\5.12.0"?
@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.
- Install Qt from online installer in the standard way. Now you have your Qt in a home folder.
- 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
- 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.
-
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.
-
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 theconfigure
from. After separating build and install directories the error didn't show up anymore. -
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 qttoolsError :
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 3Any help?
-
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 qttoolsError :
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 3Any help?
@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? -
@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? -
@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. -
- Do Not run configure directly in the src directory (e.g., run ./configure), run it in a separate build directory.
- 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
- source directory
- build directory (your pwd)
- install directory (assigned with -prefix)
must be 3 different directories.