[ Qt 5.6 ] Examples compilation error 'QCoreApplication'
-
Hello,
While trying compile qt 5.6 examples for embedded platform I got this error message:mainwindow.cpp:180:14: error: 'QCoreApplication' has not been declared
if (!QCoreApplication::arguments().contains(QStringLi teral("--no_render_alpha")))My configuration looks as follows :
./configure -prefix /home/marek/TDIR \ -extprefix /home/marek/INSTDIR \ -hostprefix /home/marek/TOOLSDIR \ -release \ -qpa \ -eglfs \ -opengl es2 \ -no-wayland \ -no-accessibility \ -device linux-imx53qsb-g++ -device-option CROSS_COMPILE=arm-guf-linux-gnueabi- -sysroot /projects/Amuse/guf.sdk/sysroots/armv7a-vfp-neon-guf-linux-gnueabi \ -opensource -confirm-license \ -make libs \ -skip qtwebengine \ -make examples \ -no-cups -no-dbus -no-glib \ -no-pch -no-nis -no-accessibility -no-gtkstyle \ -no-xcb -v
Error context and configure output you can find in attachments http://s000.tinyupload.com/?file_id=16192592158108091085
Could please give me any hint what is missing ? -
Hi and welcome to devnet,
You should rather cross-compile/install Qt without the examples and only after that build the examples that interests you.
That will make thing simpler and reduce compile time.
-
Hello,
Thank you for your answer.
I did as you suggested and managed to compile an example that I previously made for QT 5.3.1.
When I try to run it on embedded platform I get a following message :qrc:/main.qml:2:1: module "QtQuick.Controls" is not installed
I guess the reason of that is a missing lib: libqtquickcontrolsplugin.so that should be found inside qml/QtQuick/Controls...
This is what I see while compiling Qtquickcontrols
marek@marek-VirtualBox:~/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols$ make -j4 -k cd src/ && ( test -e Makefile || /home/marek/TOOLSDIR/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/src.pro -o Makefile ) && make -f Makefile make[1]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src' cd controls/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/controls/controls.pro -o Makefile ) && make -f Makefile cd layouts/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/layouts/layouts.pro -o Makefile ) && make -f Makefile cd extras/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/extras.pro -o Makefile ) && make -f Makefile cd extras/Styles/ && ( test -e Makefile.styles || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/Styles/styles.pro -o Makefile.styles ) && make -f Makefile.styles make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/controls' Some of the required modules (contains(QT_CONFIG, accessibility)) are not available. Skipped. make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/controls' cd dialogs/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/dialogs/dialogs.pro -o Makefile ) && make -f Makefile make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras' Some of the required modules (contains(QT_CONFIG, accessibility)) are not available. make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/Styles' cd Flat/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/Styles/Flat/Flat.pro -o Makefile ) && make -f Makefile Skipped. make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras' cd dialogs/Private/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/dialogs/Private/Private.pro -o Makefile ) && make -f Makefile make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/layouts' make[2]: Nothing to be done for `first'. make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/layouts' cd widgets/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/widgets/widgets.pro -o Makefile ) && make -f Makefile make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/dialogs' Some of the required modules (contains(QT_CONFIG, accessibility)) are not available. Skipped. make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/dialogs' make[3]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/Styles/Flat' make[3]: Nothing to be done for `first'. make[3]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/Styles/Flat' make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/Styles' make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/dialogs/Private' make[2]: Nothing to be done for `first'. make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/dialogs/Private' make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/widgets' Some of the required modules (contains(QT_CONFIG, accessibility)) are not available. Skipped. make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/widgets' make[1]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src'
Could you please explain me where I can find a name of not available modules ? :
Some of the required modules (contains(QT_CONFIG, accessibility)) are not available.
Many thanks,
Marek -
You disabled accessibility when calling configure
-
I didn't notice it ... silly mistake.
Many thanks for the hint and best regards,
Marek