Unsolved Need help building qt from source
-
I am trying to build Qt from source on a brand new ubuntu installation following these build instructions, but I am running into dependency issues. I reported this bug and was hoping to track down the issue there, but I realized this forum might be a better place to ask for help for issues like this.
Basically
qmake
runs without error but when I try to runmake
I get this error after a while:make[3]: Entering directory '/home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtpurchasing/examples/purchasing' cd qthangman/ && ( test -e Makefile || /home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtbase/bin/qmake /home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtpurchasing/examples/purchasing/qthangman/qthangman.pro -qtconf /home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile Project ERROR: Unknown module(s) in QT: quick Makefile:42: recipe for target 'sub-qthangman-make_first' failed make[3]: *** [sub-qthangman-make_first] Error 3 make[3]: Leaving directory '/home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtpurchasing/examples/purchasing' Makefile:42: recipe for target 'sub-purchasing-make_first' failed make[2]: *** [sub-purchasing-make_first] Error 2 make[2]: Leaving directory '/home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtpurchasing/examples' Makefile:69: recipe for target 'sub-examples-make_first' failed make[1]: *** [sub-examples-make_first] Error 2 make[1]: Leaving directory '/home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtpurchasing' Makefile:381: recipe for target 'module-qtpurchasing-make_first' failed make: *** [module-qtpurchasing-make_first] Error 2
To me it looks like Qt is looking for Qt-Quick module but that is not build. I assume that quick would be built as a dependency along with qt. What am I missing here?
-
Hi,
You should add
-nomake tests -nomake examples
. As implied this will avoid building both the tests and examples which will result in a nice gain of time and hard drive space.As for the example currently failing to build, it's likely that it should be updated to use QtQuick 2. If you need to run it, then you have to first build the old QtQuick 1 module.
In any case, adding the
-nomake examples
option will allow you to end the build and add the missing piece before trying to build that example again.