I compile Qt from source without gui. That is, the configuration indicated the -no-gui flag. No flag like -no-qml found, all that is -no-qml-debug . Here is the complete configuration list:

./configure -prefix /home/asianirish/Qt-custom/qt-embedded-5.7 -debug -static -xplatform linux-arm-gnueabihf-g ++ -qt-zlib -c ++ std c ++ 11 -no-libpng - no-libjpeg -no-sql-sqlite2 -no-sql-psql -no-sql-mysql -no-sql-odbc -no-sql-oci -no-sql-ibase -no-sql-db2 -no-qml- debug -no-widgets -no-gui -no-opengl -no-openssl -opensource -confirm-license -v

At the run level, make pours:

 Project ERROR: Unknown module(s) in QT: gui Makefile:49: recipe for target 'sub-calculator-qml-make_first' failed make[3]: *** [sub-calculator-qml-make_first] Error 3 make[3]: Leaving directory '/home/asianirish/Install/qt-everywhere-opensource-src-5.7.1/qtscxml/examples/scxml' Makefile:42: recipe for target 'sub-scxml-make_first' failed make[2]: *** [sub-scxml-make_first] Error 2 make[2]: Leaving directory '/home/asianirish/Install/qt-everywhere-opensource-src-5.7.1/qtscxml/examples' Makefile:96: recipe for target 'sub-examples-make_first' failed make[1]: *** [sub-examples-make_first] Error 2 make[1]: Leaving directory '/home/asianirish/Install/qt-everywhere-opensource-src-5.7.1/qtscxml' Makefile:355: recipe for target 'module-qtscxml-make_first' failed make: *** [module-qtscxml-make_first] Error 2 

That is, he threw out the gui module, but he left qml and now qml requires gui for his own work. It is clear that this examples/scxml did not give up, but still the subject .

  • Whether it is solved as it is simple, like QT -= quick ? - isnullxbh
  • @isnullxbh where does this quick enter / specify? - asianirish
  • In your .pro file. - isnullxbh
  • And where / what do you collect? - isnullxbh
  • one
    And why exclude modules from the assembly? Just do not connect in your code those that are not needed. How to deal with this bunch of dependencies, it seems to me, it is easier to use the full version. - ixSci

1 answer 1

Achieved success with the following configuration:

./configure -prefix /home/asianirish/Qt-custom/qt-embedded-openssl-5.7 -debug -static -xplatform linux-arm-gnueabihf-g ++ -skip qtconnectivity -skip qtdeclarative -skip qtlocation -skip qtmultimedia-of-skip qtdeclarative -skip qtlocation -skip qtmultimedia-of-apip-skip qtdeclarative skip qtsensors -skip qttools -skip qtwebsockets -skip qtwinextras -skip qtwebchannel -skip qtwebengine -nomake examples -qt-zlib -c ++ std c ++ 11 -no-sql-sqlite2 -no-sql-psql -no-sql- mysql -no-sql-odbc -no-sql-oci -no-sql-ibase -no-sql-db2 -no-opengl -sysroot / home / asianirish / olimex / -opensource -confirm-license -v

That is, added gui (it also took libjpeg and libpng to be enabled). Thank you so much @ixSci for your valuable advice!

Also included the -sysroot flag for the availability of some libraries.

Everything compiles with Qt and runs on Armagh. Thanks to everyone who commented on the question!