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. Need help building qt from source
Forum Updated to NodeBB v4.3 + New Features

Need help building qt from source

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.5k Views 1 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.
  • ArasA Offline
    ArasA Offline
    Aras
    wrote on last edited by Aras
    #1

    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 run make 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?

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

      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.

      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

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved