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.
qmakeruns without error but when I try to run
makeI get this error after a while:
make: 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: *** [sub-qthangman-make_first] Error 3 make: 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: *** [sub-purchasing-make_first] Error 2 make: 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: *** [sub-examples-make_first] Error 2 make: 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?
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 examplesoption will allow you to end the build and add the missing piece before trying to build that example again.